- Joined
- Feb 19, 2009
- Messages
- 3
- Reaction score
- 0
Hi All,
I am trying to make QASetWindowsJournalHook() work in c#, my code is done but it has problem.
I checked this thread before:
https://www.pcreview.co.uk/forums/thread-3378726-2.php
Now, I can receive the message type ( mouse move, click ...etc ) and also the x and y cursor, however, as long as I do something as below, the wince will hang down.
1. Run my c# about QASetWindowsJournalHook, working fine.
2. Click [Start]
3. Still working, message received well.
4. Click [Today] or [Setup] or [IE] ... whatever the next program is .... the while system will hang down....
I don't know why, I checked another win32 version it is working fine but can't figure out why c# version can't work as well.
p.s I ever try to return all message I received but result is the same.
ex:
public static int MouseHookProc(int nCode, IntPtr wParam, IntPtr lParam)
{
return CallNextHookEx(hHook, nCode, wParam, lParam);
}
Thanks!
Michael.
I am trying to make QASetWindowsJournalHook() work in c#, my code is done but it has problem.
I checked this thread before:
https://www.pcreview.co.uk/forums/thread-3378726-2.php
Now, I can receive the message type ( mouse move, click ...etc ) and also the x and y cursor, however, as long as I do something as below, the wince will hang down.
1. Run my c# about QASetWindowsJournalHook, working fine.
2. Click [Start]
3. Still working, message received well.
4. Click [Today] or [Setup] or [IE] ... whatever the next program is .... the while system will hang down....
I don't know why, I checked another win32 version it is working fine but can't figure out why c# version can't work as well.
p.s I ever try to return all message I received but result is the same.
ex:
public static int MouseHookProc(int nCode, IntPtr wParam, IntPtr lParam)
{
return CallNextHookEx(hHook, nCode, wParam, lParam);
}
Thanks!
Michael.