IMEssageFilter

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi All,

I am playing around with the message interception using the following code...

private bool MsgHandler(Message m)
{
if (m.Msg == WM_KEYDOWN)
{
Keys k = (Keys)m.WParam.ToInt32();
switch(k)
{
case Keys.E:
return true;
}
}
return false;
}

THe problem is that the k value is always the same and I cannot find the key
value.
Anyone suggest what I am doing wrong?

Cheers,
James
 
That would happen on some phones, like C500/SMT5600. It's the way they
implemented IME. Use WM_CHAR instead
 
It does not intercept that event.
I am using a Japanese language based PDA do you think that is an issue?

Cheers,
James.
 
I had a closer look and when I catch all the messages associated with a key
click the WParam is always the same for all clicks even though the buttons
clicked are different.
It is different for different events but the numbers in each event for
different button clicks do not differ.

Cheers,
James
 
Back
Top