helpers - Autohotkey: I'm unable to make a script for pressing 2 keys with a delay beteween them -


well want make script objetive:

3{down} key, , later hold or press z x3, , loop that.

i have been trying work loop command can't, im new autohotkey , english it's not native languague it's been pretty hard.

here code tried didn't work expect, since press z before 3 {down} keys.

#persistent settimer, code, 150 return  code: send, z{down} return 

if know anyway improve i'm doing like, add toggle f8 turn on/off, aweosome.

thanks help. helena.

helena, script right following. script starts start send [z] , [arrow down] every 150 mili seconds. independent of application running @ time. write want loop sending codes , want toggle on/off.

here example comes closer goal.

#persistent  f8:: ; [f8] toggle hotkey if toggle:=!toggle ; here "test" value of variable "toggle" , after testing switch opposite (true/false)     settimer, trigger, -1 ; create separate thread loop. -1 means start in 1 ms 1 time, not every 1 ms's. return  trigger: while (toggle) {     send, +z{down} ; + shift key, +z makes captial z     sleep, 500 ; wait 500 ms (1/2 second)     send, +{z down} ; press shift z down. not start repeat zzzzzzzzzzzzzzzz     sleep, 500 ; wait 500 ms (1/2 second)     send, +{z up} ; lift shift z     sleep, 1 ; required. without f8 keypress toggle off can not read anymore } return 

Comments

Popular posts from this blog

python - How to create a legend for 3D bar in matplotlib? -

java - Multi-Label Document Classification -

php - Dynamic url re-writing using htaccess -