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?