Have connection to a remove server, want to invoke the Run command and paste a command to the remote server and hit Enter to invoke. The following works with windows 2008 R2 connection, but not with window server 2012 r2 the {ENTER} command gets redirected and invoke the "narrator settings" GUI. Any ideas?
Code: Select all
; Yes am using the SciTE4 editor to test this
IfWinActive, ahk_exe SciTE.exe
WinMinimize
; this assumes I have an active connection to server which I have and am logged in
WinActivate, ahk_exe RDCMan.exe
MouseClick, left, 200, 200 ; this is bad but does focus the Remote Desktop Session
SendInput, #r ; Run Command invoke on the Desktop manager GOOD
Sleep, 5000
SendInput, {BackSpace} ; Clear out any content in remote session run command GOOD
Clipboard="" ; clear it
Clipboard=\\tsclient\c\ps\something.exe ; this is what I want to do
Sleep, 5000
SendInput, ^v ; YES, have the item in the command line GOOD
Sleep, 2000
SendInput, {Enter} ; NOTHING DOING BRINGS UP NARATOR SETTINGS