11-05-2009, 11:07 PM
This is amazing but I don't think I know how to use it to its full potential. I can get out the return of the function as a keycode or mousebutton code but I don't know how to get the ks or ms info out. I have tried something like this:
Macro Macro23
Trigger C' 0x4
for the function value which works but when I try:
Macro Macro23
Trigger C' 0x4
I keep on getting the same numbers for ks and ms 53673752 and 53673772. Not sure how to interpret them. I know I am screwing up something with the hookstructures but don't know how to figure it out.
Did find this on msdn but couldn't figure it out:
http://msdn.microsoft.com/en-us/library/ms645616(VS.85).aspx
Thanks for any help or simple code examples using this function (which I know will be awesome once I figure it out!!!)
Stuart
Macro Macro23
Trigger C' 0x4

for the function value which works but when I try:
Macro Macro23
Trigger C' 0x4

KBDLLHOOKSTRUCT ks1
MSLLHOOKSTRUCT ms1
3.0
int h = WaitForKeyOrMouse(10)
out h
out &ks1
out &ms1I keep on getting the same numbers for ks and ms 53673752 and 53673772. Not sure how to interpret them. I know I am screwing up something with the hookstructures but don't know how to figure it out.
Did find this on msdn but couldn't figure it out:
http://msdn.microsoft.com/en-us/library/ms645616(VS.85).aspx
Thanks for any help or simple code examples using this function (which I know will be awesome once I figure it out!!!)
Stuart
