Pausing the script on holding a button Topic is solved
Pausing the script on holding a button
Hi! How to make a script that stops when you hold down a key, e.g. b, and if it is released, it will turn on again?
Re: Pausing the script on holding a button Topic is solved
Code: Select all
Gosub, b Up
Go:
Send x
b Up::SetTimer, Go, 50
b::SetTimer, Go, Off
Code: Select all
Loop {
Send x
Sleep, 50
}
b::Pause, On, 1
b Up::Pause, Off