Total noob here. How do I toggle a script on/off with a key? Topic is solved
Total noob here. How do I toggle a script on/off with a key?
How do I toggle a script on/off with a key? (e.g. 'insert' or 'alt+q') I searched these forums for answers, but couldn't find anything with step-by-step help. I have no idea what I'm doing, tell me what to do?
-
- Posts: 143
- Joined: 22 Apr 2016, 06:50
Re: Total noob here. How do I toggle a script on/off with a key?
I just want to know HOW i activate and deactivate the script on the same button.need4speed wrote: ↑17 Dec 2019, 17:54https www.youtube.com /watch?v=B5lwtRp69Xo Broken Link for safety
I want to start and restart the macro from zero on the same button. Can you help me?
Re: Total noob here. How do I toggle a script on/off with a key?
Code: Select all
key_pressed:=0
Home::
if(key_pressed = 1){
Msgbox, Start
key_pressed:=0
}else
if(key_pressed = 0){
Msgbox, Stop
key_pressed:=1
}
return
Who is online
Users browsing this forum: Chunjee and 124 guests