Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Wait for Mouse Movement OR Key/MB Up/Down?
#7
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     Help - how to add the trigger to the macro
Code:
Copy      Help
int h = WaitForKeyOrMouse(10)
out h

for the function value which works but when I try:

Macro Macro23
Trigger C' 0x4     Help - how to add the trigger to the macro
Code:
Copy      Help
KBDLLHOOKSTRUCT ks1
MSLLHOOKSTRUCT ms1
3.0
int h = WaitForKeyOrMouse(10)
out h

out &ks1
out &ms1

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


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)