I'm trying to send key sequences to a remote session (actually I want to logoff by sending keys), so for testing purpose I created a key sequence like this and sent it to a remote server:
{LWIN}{WAIT:500}cmd.exe{WAIT:500}{ENTER}
(Windows key redirection is enabled). So basically it's somewhat working: the Windows key is presse,d but instead of "cmd.exe" it searches for "emd.exe" (so it opens search). Same thing happens with
{LWIN}{WAIT:500}powershell.exe{ENTER}
Command gets modified to "eowershell.exe"
So for whatever reason the first character is replaced by an "e".
It works perfectly fine if the key sequence gets executed on the local computer.
you're right, this is very weird. It seems that the Microsoft RDP ActiveX control which ships with Windows has some weird issues when we send a Windows key press to the remote session. As you figured it out already, we are actually sending the "c" character to the remote session because locally we see that the "c" key is pressed. I was able to workaround it with a hack like this:
1 Comment
Stefan Koell
said
almost 6 years ago
Answer
Hi Martin,
you're right, this is very weird. It seems that the Microsoft RDP ActiveX control which ships with Windows has some weird issues when we send a Windows key press to the remote session. As you figured it out already, we are actually sending the "c" character to the remote session because locally we see that the "c" key is pressed. I was able to workaround it with a hack like this:
Martin Preishuber
Hi,
I'm trying to send key sequences to a remote session (actually I want to logoff by sending keys), so for testing purpose I created a key sequence like this and sent it to a remote server:
{LWIN}{WAIT:500}cmd.exe{WAIT:500}{ENTER}
(Windows key redirection is enabled). So basically it's somewhat working: the Windows key is presse,d but instead of "cmd.exe" it searches for "emd.exe" (so it opens search). Same thing happens with
{LWIN}{WAIT:500}powershell.exe{ENTER}
Command gets modified to "eowershell.exe"
So for whatever reason the first character is replaced by an "e".
It works perfectly fine if the key sequence gets executed on the local computer.
I assume I'm not doing anything wrong?
BR,
Martin
Hi Martin,
you're right, this is very weird. It seems that the Microsoft RDP ActiveX control which ships with Windows has some weird issues when we send a Windows key press to the remote session. As you figured it out already, we are actually sending the "c" character to the remote session because locally we see that the "c" key is pressed. I was able to workaround it with a hack like this:
Stefan Koell
Hi Martin,
you're right, this is very weird. It seems that the Microsoft RDP ActiveX control which ships with Windows has some weird issues when we send a Windows key press to the remote session. As you figured it out already, we are actually sending the "c" character to the remote session because locally we see that the "c" key is pressed. I was able to workaround it with a hack like this:
1 person likes this
-
What happened to the forum?
-
About this Forum
-
Security Information
-
Supported Secure Gateway (SSH) ciphers
-
Why is no remote file browser in SCP available?
-
What encryption is used in the rtsz files when enabled?
-
Royal TS V4 License File
-
How to resolve RDP resolution issues in Windows 7 with high resolution screen
-
Auto Fill in web page connection
-
How to reference custom properties in tasks and templates?
See all 276 topics