Jump to content
Sign in to follow this  

After running script I can't type anything - looks like ctrl key is stuck somehow

Recommended Posts


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

Func RunScript()
    send ("!u")
    send ("username")
    send ("!p")
    send ("password")
    send ("{ENTER}")

Func Terminate()
    Exit 0
Edited by Skorn

Share this post

Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  


Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.