question

CaptainNoodles-5197 avatar image
0 Votes"
CaptainNoodles-5197 asked Castorix31 commented

Code for pressing the escape key

Hi all I have really no knowledge on C# but I was just wondering if there is a quick code for pressing the escape key. that is all thank you for any help you can provide

windows-hardware-code-general
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

Castorix31 avatar image
0 Votes"
Castorix31 answered Castorix31 commented
  SendKeys.Send("{ESC}");
· 4
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

can't seem to get this to work

0 Votes 0 ·
Castorix31 avatar image Castorix31 CaptainNoodles-5197 ·

Just add a ProcessCmdKey to the main Form by testing Keys.Escape and you will see it works
Sending Escape alone on a standard window just does nothing, I don't see why you want to do that..

0 Votes 0 ·

i'm trying to get an application called streamer.bot to press escape but it doesn't have an option so i need a script.

0 Votes 0 ·
Show more comments