flat assembler
Message board for the users of flat assembler.
Index
> Windows > compare fails? |
Author |
|
coconut 30 Mar 2005, 23:35
based on my file here http://board.flatassembler.net/topic.php?t=1670 im trying to determine when a user presses VK_F5 through my hook. simply changing the lines:
Code: mov eax, [lp] ;KBDLLHOOKSTRUCT cmp dword [eax+4],VK_RIGHTWINKEY ;kbdllhookstruct.vkCode je disable to: Code: mov eax, [lp] ;KBDLLHOOKSTRUCT cmp dword [eax+4],VK_F5 ;kbdllhookstruct.vkCode je disable fails. for that matter all VK_ keycodes i tested failed also, i could only get VK_RWIN AND VK_LWIN to work. am i missing something here? attached is the same file as the link
|
|||||||||||
30 Mar 2005, 23:35 |
|
coconut 31 Mar 2005, 00:33
does it work for you mike, doesnt for me. and why would it have previously worked with _RWIN and _LWIN anyways?
|
|||
31 Mar 2005, 00:33 |
|
coconut 31 Mar 2005, 00:35
ok, WH_KEYBOARD_LL doesnt work, WH_KEYBOARD does. why is this?
|
|||
31 Mar 2005, 00:35 |
|
mike.dld 31 Mar 2005, 01:05
In case of WH_KEYBOARD_LL you need a VIRTUAL key-code, not a SCAN-code, so you need to use [eax] instead of [eax+4]
|
|||
31 Mar 2005, 01:05 |
|
coconut 31 Mar 2005, 01:15
interesting coincidence then my old example worked with _RWIN and _LWIN, virtual keycode must be +4 of scan code for them
|
|||
31 Mar 2005, 01:15 |
|
mike.dld 31 Mar 2005, 01:23
VK_LWIN & VK_RWIN are working fine for me with [eax].
|
|||
31 Mar 2005, 01:23 |
|
coconut 31 Mar 2005, 01:46
works like a charm now, thanks mike
|
|||
31 Mar 2005, 01:46 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.