AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Repeat a key until any key is pressed

 
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Ask for Help
View previous topic :: View next topic  
Author Message
skyne6



Joined: 14 May 2008
Posts: 2

PostPosted: Wed May 14, 2008 8:59 am    Post subject: Repeat a key until any key is pressed Reply with quote

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
View user's profile Send private message
YoYoWazzup
Guest





PostPosted: Wed May 14, 2008 12:59 pm    Post subject: Reply with quote

look up "Input" in AutoHotKey readme file!
Back to top
skyne6



Joined: 14 May 2008
Posts: 2

PostPosted: Thu May 15, 2008 2:00 am    Post subject: Reply with quote

hi,

thx for your help, but how do i trigger all keys with input at anytime?
Back to top
View user's profile Send private message
interiot



Joined: 06 Nov 2005
Posts: 64

PostPosted: Thu May 15, 2008 2:16 am    Post subject: Reply with quote

Keep going until you see %A_TimeIdlePhysical% change.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Ask for Help All times are GMT
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group