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

_IsPressed problems

$
0
0

Hy all i have a problem with this code 

While 1     If _IsPressed("64", $hDLL) Then         Sleep(100)           While _IsPressed("65", $hDLL) = 0            Sleep(3050)             Send ("{NUMPAD6}")             Sleep(100)             Send ("{NUMPAD4}")         WEnd         EndIf Sleep(100) WEnd

When i press numpad 5 the script doesn't exit from loop is the same if

While 1     If _IsPressed("64", $hDLL) Then         Sleep(100)         Do            Sleep(3050)             Send ("{NUMPAD6}")             Sleep(100)             Send ("{NUMPAD4}")         Until _IsPressed("65", $hDLL) = 1         EndIf Sleep(100) WEnd

Viewing all articles
Browse latest Browse all 12506

Trending Articles



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