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

HotKeySet() gets keys stuck

$
0
0
HotKeySet("^!l", "blah1") ;ctrl alt l
While 1
Sleep(100)
WEnd

Func blah1()
Send("poop en{ENTER}")
Send("poop en{ENTER}")
Send("poop en{ENTER}")
Send("poop en{ENTER}")
Send("poop en{ENTER}")
Send("poop en{ENTER}")
Send("poop en{ENTER}")
Send("poop en{ENTER}")
Send("poop en{ENTER}")
Send("poop en{ENTER}")
Send("poop en{ENTER}")
Send("poop en{ENTER}")
Send("poop en{ENTER}")
Send("poop en{ENTER}")
EndFunc


When I press CTRL+ALT+L to run this function, my CTRL and ALT keys get stuck on. I will hit TAB and the alt-tab window will pop up. I'll press "F" in notepad and the Find dialog comes up (because CTRL/ALT is stuck so it did CTRL + ALT + F).

I changed the hotkey to be "SHIFT+CTRL+L" and then SHIFT and CTRL get stuck.

The only way for me to un-stick the keys is by doing CTRL+ALT+CAPSLOCK or CTRL+ALT+SCRLOCK (the 2 stuck keys + CAPSLOCK/SCRLOCK)

If I put in a sleep between each of the "Send" functions, then I can sometimes run this hot key without getting the keys stuck. But the success rate is like 1 in 20 runs, which doesn't make it a solution.

Any ideas why?

Viewing all articles
Browse latest Browse all 12506

Trending Articles



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