| View previous topic :: View next topic |
| Author |
Message |
skyne6
Joined: 14 May 2008 Posts: 2
|
Posted: Wed May 14, 2008 8:59 am Post subject: Repeat a key until any key is pressed |
|
|
hi,
i would like to auto-repeat the keystroke 3 until any keystroke/mouseclick happen.
i am new to autohotkey and my code so far looks like this:
| Code: |
$3::
abort := false
Loop
{
if abort
break
Send 3
Sleep 2400
}
return
$1::
Send 1
abort := true
return
|
in my test-code i am using "1" to stop the loop. i want to stop it with any keystroke/mouseclick. is there a "catchall" trigger for this?
thx 4 help |
|
| Back to top |
|
 |
YoYoWazzup Guest
|
Posted: Wed May 14, 2008 12:59 pm Post subject: |
|
|
| look up "Input" in AutoHotKey readme file! |
|
| Back to top |
|
 |
skyne6
Joined: 14 May 2008 Posts: 2
|
Posted: Thu May 15, 2008 2:00 am Post subject: |
|
|
hi,
thx for your help, but how do i trigger all keys with input at anytime? |
|
| Back to top |
|
 |
interiot
Joined: 06 Nov 2005 Posts: 64
|
Posted: Thu May 15, 2008 2:16 am Post subject: |
|
|
| Keep going until you see %A_TimeIdlePhysical% change. |
|
| Back to top |
|
 |
|