Skip to content

Latest commit

 

History

History
23 lines (20 loc) · 1.04 KB

README.md

File metadata and controls

23 lines (20 loc) · 1.04 KB

simulate-keys-windows-ce

How to simulate and send keys in Windows CE applications. This project simulates the key-pressed actions on Windows CE devices sending an hexadecimal code to the choosen process. This code uses Terranova.API

Previous requeriments

How it works

This example gets the name of the process we want to send a key (in this case, the Enter key), set it as foreground window and then send the key.

What I need to change?

You need to replace line 63 on Program.cs, MyProcess.exe by your own process name.

IntPtr myProcessPID = getMyProcessPID("MyProcess.exe");

And in line 60 of same file, you can select what key do you want to simulate. All the possible keys are in Keys.cs. Just replace that line by a key of your preference

byte key = Keys.ENTER;