jrb1400
2007-09-03 01:36:02 UTC
Hi all,
I am using Windows XP Pro. I have no directly connected keyboard and mouse
on my computer, but I do have devices that provide keyboard input. I have
written software to take the keycodes from the keyboard device and call
SendInput() to enter the keycodes into the Windows OS. This program is
running as a service, so it should have system-level privileges.
This keyboard simulation program works except for when I try to use the
Remote Desktop Client. My SendInput calls have no effect in the Remote
Desktop Window. The keystrokes do not appear. I can start the On-screen
keyboard and use it. The on-screen keyboard apparently is able to send
simulated keycodes (as generated by clicking on the virtual keyboard) to
Remote Desktop.
Even after I log in with the on-screen keyboard, the keyboard simulation
program still does not work.
I figured it was a problem with the selected desktop, etc so I ran a piece
of code that enumerates the Window Stations, Desktops and Windows. I
expected to see an additional Winlogon desktop but did not. Even when the
logon screen for the Remote connection weas active, the Remote Desktop
appeared in the lists as just another window beneath Station: <WinSta0> /
Desktop: <Default>. There was only one Winlogon desktop whether or not the
Remote Desktop client was active.
I have also tried keyboard_event instead of SendInput().
Are there any ideas on this ? What is the On-screen keybard program doing
that I am missing ?
Thanks in advance for your help,
Jay
I am using Windows XP Pro. I have no directly connected keyboard and mouse
on my computer, but I do have devices that provide keyboard input. I have
written software to take the keycodes from the keyboard device and call
SendInput() to enter the keycodes into the Windows OS. This program is
running as a service, so it should have system-level privileges.
This keyboard simulation program works except for when I try to use the
Remote Desktop Client. My SendInput calls have no effect in the Remote
Desktop Window. The keystrokes do not appear. I can start the On-screen
keyboard and use it. The on-screen keyboard apparently is able to send
simulated keycodes (as generated by clicking on the virtual keyboard) to
Remote Desktop.
Even after I log in with the on-screen keyboard, the keyboard simulation
program still does not work.
I figured it was a problem with the selected desktop, etc so I ran a piece
of code that enumerates the Window Stations, Desktops and Windows. I
expected to see an additional Winlogon desktop but did not. Even when the
logon screen for the Remote connection weas active, the Remote Desktop
appeared in the lists as just another window beneath Station: <WinSta0> /
Desktop: <Default>. There was only one Winlogon desktop whether or not the
Remote Desktop client was active.
I have also tried keyboard_event instead of SendInput().
Are there any ideas on this ? What is the On-screen keybard program doing
that I am missing ?
Thanks in advance for your help,
Jay