Skorn Posted December 2, 2010 Share 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 Link to comment Share on other sites More sharing options...
somdcomputerguy Posted December 3, 2010 Share 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. Link to comment Share on other sites More sharing options...
Skorn Posted December 3, 2010 Author Share 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? Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now