While True $color = PixelGetColor(@DesktopWidth / 2, @DesktopHeight / 2) If $color = 16711680 Or $color = 16646144 Then MouseClick ("middle") Sleep(10) EndIf Wend
This is my current script, however I'd like to make it where if I press the number "4" It'll activate the script (have it active) and if I press "5" it'll deactivate it. I don't want a temporary pause of some sort, I want it to physically have a start/stop function. I've tried looking at the hotkeypress examples of pausing the script however it does not work. I'm using this script on a full screen application hence I need it to disable/enable via those hotkeys, 4/5
Could someone help me out with this code ;/ kinda new to all this.
Thanks.