Skorn 0 Posted December 2, 2010 (edited) Hey all, newb issue but it's annoying nonetheless. I just want a script with a hotkey so i can log into other systems over RDP. When i run this the hotkey works and sends the correct data. But after I run it I can't type anything and when I do other windows functions happen, which looks like the ctrl key is stuck in software (not physically). I basically copied the template script included with autoit for creating a hotkey, I'm looking at the while/wend/sleep(100) as a potential issue but I'm not sure if it is or not. I'm running it on Win7Pro x64. Thanks in advance. HotKeySet("!.", "RunScript") HotKeySet("{ESC}", "Terminate") While 1 Sleep(100) WEnd Func RunScript() send ("!u") Sleep(75) send ("username") Sleep(75) send ("!p") Sleep(75) send ("password") Sleep(75) send ("{ENTER}") EndFunc Func Terminate() Exit 0 EndFunc Edited December 2, 2010 by Skorn Share this post Link to post Share on other sites
somdcomputerguy 103 Posted December 3, 2010 Does this help? 19 Why does the Ctrl key get stuck down after I run my script? - Bruce /*somdcomputerguy */ If you change the way you look at things, the things you look at change. Share this post Link to post Share on other sites
Skorn 0 Posted December 3, 2010 That did fix the problem thanksDoes this help? 19 Why does the Ctrl key get stuck down after I run my script? Share this post Link to post Share on other sites