For instance.
My code:
Code: Select all
NumpadAdd::
Loop
{
If A_Index = 1
Sleep, 500
GetKeyState, State, NumpadAdd, down
If State = up
Break
MouseClick, right
Send {Down}
Sleep 10
Send {Down}
Sleep 10
Send {Enter}
Sleep 10
Send {Enter}
}
Sleep, 500
Return
Removing the NumpadAdd:: and removing the key state, leaving just the loop for sending mouseclick, etc. Works. What am I doing wrong?