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

_IsPressed Help?

$
0
0
Well, lately i have been having this problem with _IsPressed
everytime i hold down the button that i set with _Ispressed, it would spam.
What i need help with, is how would i go to make it so it will
execute the function ONE TIME when i press the button?

-Heres a set up of "_Ispressed" and the button is set to
"CTRL" and when "CTRL" is pressed it will execute the function called "lol"... but it spams it.-


[ autoit ]      
#include Local $hDLL = DllOpen("user32.dll") While 1 If _IsPressed("11", $hDLL) Then lol() endif ;;;; WEnd Func lol() MouseClick("Left",987,702,1,1) endfunc

Viewing all articles
Browse latest Browse all 12506

Trending Articles



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