<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Brauche hilfe bei multimedia hotkeys !!]]></title><description><![CDATA[<p>Hi<br />
hab probleme beim verständniss von den WM_Input. Wollte für eine Multimediatastatur<br />
bzw Fehrnbedinung von Microsoft die Tasten abfragen nur komm ich nicht dahinter wie das Klappen soll mit dem Borland Builder kann mir einer helfen ?</p>
<p><a href="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnwmt/html/remote_control.asp" rel="nofollow">http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnwmt/html/remote_control.asp</a></p>
<pre><code class="language-cpp">RAWINPUTDEVICE Rid[1];

Rid[0].usUsagePage = 0xFFBC;
Rid[0].usUsage = 0x88; 
Rid[0].dwFlags = 0;

if (RegisterRawInputDevices(Rid, 1, sizeof(Rid[0])) == FALSE) 
{
    ErrorExit();  // Add error-handling code here.
}
</code></pre>
<pre><code class="language-cpp">using System.Windows.Forms;
.
.
.
class Form1Window : NativeWindow
{ 
  private const int WM_KEYDOWN = 0x0100;
  private int iChar;
  public Form1 form;

  protected override void WndProc(ref Message message)
  {
    // Handle the navigation and numeric buttons.

    if (message.Msg == WM_KEYDOWN)
    {
      iChar = message.WParam.ToInt32();

      switch(iChar)
      {
        case (int)Keys.D0:
          // Handle 0 key here.  
          break;
       // Insert more cases here.
.
.
.
      }  // End switch.
    }    // End key messages.
    base.WndProc(ref message);
  }      // End WndProc
}        // End class.
</code></pre>
<pre><code class="language-cpp">public Form1()
{
  InitializeComponent();
  Form1Window win = new Form1Window();
  win.form = this;
  win.AssignHandle(this.Handle);
}
</code></pre>
<p>Was muß ich hierbei schreiben was muß ich includieren und wie frag ich jetzt play ab???</p>
<p>danke für die hilfe !!!!</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/129646/brauche-hilfe-bei-multimedia-hotkeys</link><generator>RSS for Node</generator><lastBuildDate>Fri, 10 Jul 2026 06:59:13 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/129646.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 15 Dec 2005 12:25:04 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Brauche hilfe bei multimedia hotkeys !! on Thu, 15 Dec 2005 12:25:04 GMT]]></title><description><![CDATA[<p>Hi<br />
hab probleme beim verständniss von den WM_Input. Wollte für eine Multimediatastatur<br />
bzw Fehrnbedinung von Microsoft die Tasten abfragen nur komm ich nicht dahinter wie das Klappen soll mit dem Borland Builder kann mir einer helfen ?</p>
<p><a href="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnwmt/html/remote_control.asp" rel="nofollow">http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnwmt/html/remote_control.asp</a></p>
<pre><code class="language-cpp">RAWINPUTDEVICE Rid[1];

Rid[0].usUsagePage = 0xFFBC;
Rid[0].usUsage = 0x88; 
Rid[0].dwFlags = 0;

if (RegisterRawInputDevices(Rid, 1, sizeof(Rid[0])) == FALSE) 
{
    ErrorExit();  // Add error-handling code here.
}
</code></pre>
<pre><code class="language-cpp">using System.Windows.Forms;
.
.
.
class Form1Window : NativeWindow
{ 
  private const int WM_KEYDOWN = 0x0100;
  private int iChar;
  public Form1 form;

  protected override void WndProc(ref Message message)
  {
    // Handle the navigation and numeric buttons.

    if (message.Msg == WM_KEYDOWN)
    {
      iChar = message.WParam.ToInt32();

      switch(iChar)
      {
        case (int)Keys.D0:
          // Handle 0 key here.  
          break;
       // Insert more cases here.
.
.
.
      }  // End switch.
    }    // End key messages.
    base.WndProc(ref message);
  }      // End WndProc
}        // End class.
</code></pre>
<pre><code class="language-cpp">public Form1()
{
  InitializeComponent();
  Form1Window win = new Form1Window();
  win.form = this;
  win.AssignHandle(this.Handle);
}
</code></pre>
<p>Was muß ich hierbei schreiben was muß ich includieren und wie frag ich jetzt play ab???</p>
<p>danke für die hilfe !!!!</p>
]]></description><link>https://www.c-plusplus.net/forum/post/942780</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/942780</guid><dc:creator><![CDATA[com-cat]]></dc:creator><pubDate>Thu, 15 Dec 2005 12:25:04 GMT</pubDate></item></channel></rss>