Multimedia Key Codes

What are the sendkey multimedia key sendkey like stop , play , add sound , turn down , mute ?

+4
source share
3 answers

See this link.

+5
source

Look at Keys Enum, play is OR, for example: Play = Exsel | OemBackslash, Play = Exsel | OemBackslash,

0
source

I do not have such a keyboard, but I would have thought:

  • they differ from manufacturer to manufacturer.
  • some of these keys will be received by the keyboard manufacturer's driver and will create some action directly without their distribution to the OS as a regular key event.

To get a hint for your specific keyboard, you need to make a small test application containing the form, set KeyPreview to true and just sign up for this KeyDown . You put them, maybe the code is this:

 private void FormMain_KeyDown(object sender, KeyEventArgs e) { System.Diagnostics.Debug.Print(e.KeyData.ToString()); } 

So, you get to the Visual Studio output window visualized the pressed key.

0
source

Source: https://habr.com/ru/post/1392671/


All Articles