PC Review


Reply
Thread Tools Rate Thread

How to Change Lparam before calling CallNextHookEx()?

 
 
nash
Guest
Posts: n/a
 
      29th Jan 2007

Thanks all for reply.. one thing is sure we cant modify by using
WH_KEYBOARD/WH_KEYBOARD_LL hook...
I am using WH_GETMESAGE hhok to capture and modify the character.By
Using wParam definitely we can modify keystrokes. By I wan to keenly
observe it using lParam. I am trying to do like this.


MSg *msg = (MSG*)lParam
if(msg->lParam == xx1Exxxx) // 1E is the scancode of character 'A'
and bit 16-23 of lParam contains scancode
{
msg->wParam ='S' // It works fine.
msg->lParam +=xx01xxxx; // It doesnot work
}
so my doubt is here I have modified character 'A' to character 'S' by
using wParam.
Afterthat I tried to modify it using lParam so simply I have
incremented it by 1, (since '1F' is scancode of S).. but its not
working..
~Nash



--
nash
------------------------------------------------------------------------
Posted via http://www.codecomments.com
------------------------------------------------------------------------

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to Change Lparam before calling CallNextHookEx()? nash Microsoft VC .NET 5 5th Jun 2012 06:27 PM
Accessing lParam in WndProc in c# joe_g99@yahoo.co.uk Microsoft C# .NET 1 14th Aug 2005 10:42 AM
Problems extracting Mouse position from LParam in WndProc crafuse Microsoft VB .NET 4 13th Jul 2005 09:29 PM
Handling WM_DEVICECHANGE message in C#; how to handle LPARAM? Jason Seeley Microsoft Dot NET Framework Forms 6 8th Mar 2004 09:22 PM
Returning data in LParam to Unmanaged Code BruceR Microsoft C# .NET 3 17th Nov 2003 05:54 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 02:44 PM.