Click here to Skip to main content
15,793,452 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I'm trying to send the escape key by SendInput to an application called Screenpresso (Image capturing tool). The escape key cancels the action.

What i don't understand is that it only works if i press the escape key on my keyboard (german) or the virtual keyboard in Windows 10.

(When i'm testing SendInput within the CMD console it works and removes the entered letters.)

What could it be that i can't do it by code and is there a solution that it could be done?


What I have tried:

Both is working in CMD console (Virtual Key Code and Scancode).
Updated 2-Dec-20 5:23am
huhuhhuhuh 2-Dec-20 10:55am    
The support answered this but it's not the case ( It's installed in Program Files so it's not a Security Problem?!
Richard MacCutchan 2-Dec-20 10:59am    
You need to ask Screenpresso, they are the only people who know how their application works.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900