Quantcast
Channel: AutoIt v3 - General Help and Support
Viewing all articles
Browse latest Browse all 12506

Help with a disabling function.

$
0
0
 
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.

Viewing all articles
Browse latest Browse all 12506

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>