Code: Select all
loop
{
if (b>a)
{
send {c}
}
Sleep 5
}
Code: Select all
loop
{
if (b>a)
{
send {c}
}
Sleep 5
}
Code: Select all
a := 1, b := 2
F3::
If (b > a) ; Check only once
While GetKeyState(A_ThisHotkey, "P") {
Send c
Sleep, 15
}
Else KeyWait, %A_ThisHotkey%
SoundBeep, 1000
Return
Code: Select all
a := 1, b := 2
F3::
While GetKeyState(A_ThisHotkey, "P") {
Send % b > a ? "c" : "" ; Check with each iteration
Sleep, 15
}
SoundBeep, 1000
Return
Users browsing this forum: joedf and 43 guests