1
Vote

issue in firing key stroke on remote machine

description

I have been facing issue in firing key stroke on remote machine (remote machine connected using mstsc) using the InputSimulator.SimulateKeyPress. I need to imitate the left or right or down or up key press on an application running on the remote machine. I tired:

WindowsInput.InputSimulator.SimulateKeyPress(WindowsInput.VirtualKeyCode.LEFT);

but this is not having any effect on the target application. The text area where this needs to be fired is selected and when doing key press on the physical keyboard then is working but through the API.

Is this a know issue? Please suggest a workaround for this.

thanks,
Rahul

comments