Sign in to follow this  
Followers 0
Skorn

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

3 posts in this topic

#1 ·  Posted (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 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  
Followers 0