I am afraid that 'if' commands isn't fast enough..
Maybe 'case' (I remember that once there was such a command) in a loop will be faster, (is it?) or maybe I can gather all the commands in strings and shoot them out in one sequence?
Is there another possibilities?
James
Code: Select all
Multi_Actions:
!F12:: ;<ALT><F12>
; This routine execute multiple commands in one continuance sequence actions (mouse movements, and clicks), triggered by an external event
counter:=0
; ===>> C, D, M, R ;the key_List: single_Click, Double_click, Move, Right_Click
While counter!=-1
{
if command%counter%=C
mouseClick, Left, xPosition%counter%, yPosition%counter%, 1,,,
if command%counter%=D
mouseClick, Left, xPosition%counter%, yPosition%counter%, 2,,,
if command%counter%=M
{
Xtemp:=counter+1
mouseClickDrag, left, xPosition%counter%, yPosition%counter% , xPosition%Xtemp%, yPosition%Xtemp%,,
counter++
}
if command%counter%=R
mouseClick, Right, xPosition%counter%, yPosition%counter%, 1,,,
counter++
command:=command%counter%
if command%counter%=End
counter:=-1
}
if (command0="C" and command1="End")
soundPlay, %A_WorkingDir%\Sounds\Button.wav, 1
else
soundPlay, %A_WorkingDir%\Sounds\M240 Bravo.wav, 1
xPosition0:=
yPosition0:=
command0=C ;reset to simple single click
command1=End
return