简体   繁体   中英

Autohotkey continuous macro

since I have to give away my macro keyboard I found autohotkey to be reliable. Sadly I didn't really find out how to make continuous macros..

what I mean is: (pseudo code)

^!c:: 
while ^!c is not pressed again -> send keystrokes c

spamm infinite c keystrokes until I press the combination above again

How do I approach this?

 toggle = 0   ; timer is off because toggle isn't yet initialized
 return

 ^!c::        ; toggle timer
 if toggle := !toggle       
   SetTimer, Send_c, 0    
 else 
   SetTimer, Send_c, off 
 return

  Send_c:
 Send c
 Sleep, 300
 return

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM