|
You last visited: Today at 09:56
Advertisement
[Autoit]how to code a macro like this?
Discussion on [Autoit]how to code a macro like this? within the AutoIt forum part of the Coders Den category.
01/23/2016, 18:52
|
#1
|
elite*gold: 0
Join Date: Jan 2016
Posts: 4
Received Thanks: 0
|
[Autoit]how to code a macro like this?
can any one please help me with coding this macro in autoit?
i want a series of keyboard and mouse buttons to be sent with like a 0.15-1 sec delays while holding down Rclick
and i want it to stop when i release the Rclick button, and i want it to start from the begining after i hold Rclick again
i know i can use "send" and "sleep" for the keys and the delay but dunno how to do the holding Rclick button thing
would really appreciate the help
thnx in advance
|
|
|
01/23/2016, 19:30
|
#2
|
elite*gold: 138
Join Date: Apr 2012
Posts: 3,495
Received Thanks: 1,769
|
|
|
|
01/23/2016, 19:54
|
#3
|
elite*gold: 0
Join Date: Jan 2016
Posts: 4
Received Thanks: 0
|
Quote:
Originally Posted by Moneypulation
|
so is this good?
While 1
* * * **
* * * * While _IsPressed("02")
** *** * * Send{a}
** *** * * *Sleep(250)
** *** * * Send{w}
** *** * * *Sleep(250)
** *** * * Send{s}
** *** * * *Sleep(250)
** *** * * Send{d}
** *** * * *Sleep(250)
** *** * * Send{1}
** *** * * *Sleep(250)
** *** * * Send{2}
** *** * * *Sleep(250)
** *** * * Send{3}
* * * * * * Sleep(250)
* * * * WEnd
* * **
WEnd
or this?
While 1
If _IsPressed("02") Then
Send{a}
Sleep(250)
Send{w}
Sleep(250)
Send{s}
Sleep(250)
Send{d}
Sleep(250)
Send{1}
Sleep(250)
Send{2}
Sleep(250)
Send{3}
Sleep(250)
While _IsPressed("02")
Sleep(250)
WEnd
WEnd
|
|
|
01/23/2016, 20:35
|
#4
|
elite*gold: 60
Join Date: Aug 2009
Posts: 2,256
Received Thanks: 815
|
Holy **** that code looks disgusting. Do you even kno what you're doing?
|
|
|
01/23/2016, 21:16
|
#5
|
elite*gold: 0
Join Date: Jan 2016
Posts: 4
Received Thanks: 0
|
Quote:
Originally Posted by alpines
Holy **** that code looks disgusting. Do you even kno what you're doing?
|
no
but im trying
|
|
|
01/26/2016, 00:23
|
#6
|
elite*gold: 0
Join Date: Sep 2010
Posts: 473
Received Thanks: 104
|
Maybe like this ?
Code:
#include <Misc.au3>
Global $hDLL = DllOpen("user32.dll"), $time = 500
Global $keys[8] = ["a", "b", "c", "d", "1", "2", "3", "4"]
While 1
If _IsPressed("02", $hDLL) Then
While _IsPressed("02", $hDLL)
For $i = 0 To UBound($keys) -1
Send($keys[$i])
Sleep($time)
Next
WEnd
EndIf
Sleep(250)
WEnd
DllClose($hDLL)
|
|
|
01/26/2016, 15:16
|
#7
|
elite*gold: 0
Join Date: Jan 2016
Posts: 4
Received Thanks: 0
|
Quote:
Originally Posted by mlukac89
Maybe like this ?
Code:
#include <Misc.au3>
Global $hDLL = DllOpen("user32.dll"), $time = 500
Global $keys[8] = ["a", "b", "c", "d", "1", "2", "3", "4"]
While 1
If _IsPressed("02", $hDLL) Then
While _IsPressed("02", $hDLL)
For $i = 0 To UBound($keys) -1
Send($keys[$i])
Sleep($time)
Next
WEnd
EndIf
Sleep(250)
WEnd
DllClose($hDLL)
|
wow, THANK YOU !!!!!
|
|
|
|
Similar Threads
|
Autoit BG macro
09/05/2010 - World of Warcraft - 0 Replies
Looking for a new autoit bg join/leave macro the old 1 that i have doesnt work anymore instead of pressing the join bg button now it opens the bags :).
|
Macro/AutoIT für 40/40 set
07/05/2008 - Guild Wars - 13 Replies
Hey,
kann man n script schreiben das der jeweile char vor jedem casten (1-8) Z.B. auf F2 in sein 40/40 set wechselt?wenn das gehen würde könntet ihr bitte sowas erstellen...ich denke für euch is das nich wirklich ein problem...aber ich kenn mich damit halt gar nich aus...
danke im vorraus :)
mfg
|
macro autoit
06/19/2008 - Cabal Online - 10 Replies
Hi. I'm french.Sorry for my bad english. My version of cabal is europea.
I tried to make myself a macro but it is only 2 days that I practice autoit.
I therefore know quite limited. I like to share with you my program. I've tested but has no effect on the game like most other programs of the forum that I tested. I'd like to know why.it's really a simple program you will not hurt to understand?:confused:
$x = 1
$y = 1
WinWaitActive("CABAL") ;activation of the window cabal...
|
All times are GMT +2. The time now is 09:56.
|
|