Difference between revisions of "WEL Hook"
m |
|||
Line 1: | Line 1: | ||
[[Category:WEL]] | [[Category:WEL]] | ||
− | ==There 3 different kinds of hooks now. Which one is better?== | + | ==There are 3 different kinds of hooks now. Which one is better?== |
Line 7: | Line 7: | ||
Problems: | Problems: | ||
− | 1. | + | 1. Does not work with pointer button pressed and when pointer moves outside the same process. |
− | 2. Cursor will changed outside the same process. | + | 2. Cursor will be changed outside the same process. |
* 2.Wel hook with low level mouse hook (WH_MOUSE_LL) and normal hook (WH_MOUSE). | * 2.Wel hook with low level mouse hook (WH_MOUSE_LL) and normal hook (WH_MOUSE). | ||
Problems: | Problems: | ||
− | 1. Cursor will changed outside the same process. | + | 1. Cursor will be changed outside the same process. |
− | 2. Low level mouse hook not work on Windows 98. | + | 2. Low level mouse hook does not work on Windows 98. |
* 3.Wel hook with journal record hook (WH_JOURNALRECORD) and normal hook (WH_MOUSE). | * 3.Wel hook with journal record hook (WH_JOURNALRECORD) and normal hook (WH_MOUSE). | ||
Problems: | Problems: | ||
− | 1. Cursor will | + | 1. Cursor will change between our application's cursor and another processes cursor. |
− | 2. Low level mouse | + | 2. Low level mouse hooks do not work on Windows 98. |
* 4.Wel hook (heavy capture) and Windows setCapture (normal capture) working at the same time. | * 4.Wel hook (heavy capture) and Windows setCapture (normal capture) working at the same time. | ||
Problems: | Problems: | ||
− | 1. | + | 1. Does not work when pointer button pressed and pointer move outside the same process EXCEPT the first time. |
Advantage: | Advantage: | ||
− | 1. Actually most cases | + | 1. Actually, in most cases users only care about the first time when pointer button pressed. |
* Final words: | * Final words: | ||
− | If I can find a way to stop Windows | + | If I can find a way to stop Windows from changing mousr cursor, I think "2" is perfect. (But is still not supported by Windows98) |
Revision as of 10:08, 7 April 2006
There are 3 different kinds of hooks now. Which one is better?
- 1.Old one in svn. Use WM_MOUSE.
Problems: 1. Does not work with pointer button pressed and when pointer moves outside the same process. 2. Cursor will be changed outside the same process.
- 2.Wel hook with low level mouse hook (WH_MOUSE_LL) and normal hook (WH_MOUSE).
Problems: 1. Cursor will be changed outside the same process. 2. Low level mouse hook does not work on Windows 98.
- 3.Wel hook with journal record hook (WH_JOURNALRECORD) and normal hook (WH_MOUSE).
Problems: 1. Cursor will change between our application's cursor and another processes cursor. 2. Low level mouse hooks do not work on Windows 98.
- 4.Wel hook (heavy capture) and Windows setCapture (normal capture) working at the same time.
Problems: 1. Does not work when pointer button pressed and pointer move outside the same process EXCEPT the first time. Advantage: 1. Actually, in most cases users only care about the first time when pointer button pressed.
- Final words:
If I can find a way to stop Windows from changing mousr cursor, I think "2" is perfect. (But is still not supported by Windows98)