Jump to content

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


Skorn
 Share

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
    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 by Skorn
Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...