Click here to Skip to main content
15,888,803 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello,
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?

Regards

What I have tried:

Both is working in CMD console (Virtual Key Code and Scancode).
Posted
Updated 2-Dec-20 4:23am
v2
Comments
huhuhhuhuh 2-Dec-20 10:55am    
The support answered this but it's not the case (https://www.screenpresso.com/de/support/hot-keys/). 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)

  Print Answers RSS
Top Experts
Last 24hrsThis month


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