d2jsp
Log InRegister
d2jsp Forums > Off-Topic > Computers & IT > Programming & Development > Peekmessage @ Specific Keyboard Touch
Add Reply New Topic New Poll
Member
Posts: 27,086
Joined: Mar 7 2008
Gold: 685.00
Nov 4 2013 09:19pm
I'm trying to get the message # using PeekMessage Api of a the keyboard and the key pressed. I think it's 0x100 for a keyboard touch, but idk about the # of the key pressed.
Member
Posts: 27,086
Joined: Mar 7 2008
Gold: 685.00
Nov 5 2013 05:00pm
lol anyone?
Member
Posts: 4,688
Joined: Jun 20 2009
Gold: 12,590.00
Nov 5 2013 06:17pm
can give more details? I have no idea what you're trying to ask
Member
Posts: 237
Joined: Aug 6 2011
Gold: 6,026.00
Nov 7 2013 02:53pm
You mean the WinAPI PeekMessage function? In that case you need to use the regular window procedure calls:

if(PeekMessage(&Msg,NULL,0,0))
{
TranslateMessage(&Msg);
DispatchMessage(&Msg);
}

Then catch the message in the your WndPrc or whatever you called it
Member
Posts: 27,086
Joined: Mar 7 2008
Gold: 685.00
Nov 8 2013 10:46am
Quote (flyinggoat @ 7 Nov 2013 15:53)
You mean the WinAPI PeekMessage function? In that case you need to use the regular window procedure calls:

  if(PeekMessage(&Msg,NULL,0,0))
  {
    TranslateMessage(&Msg);
    DispatchMessage(&Msg);
  }

Then catch the message in the your WndPrc or whatever you called it


ok ty but I just find out using Msg.wParam :P
Go Back To Programming & Development Topic List
Add Reply New Topic New Poll