Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Problem Implementing mouse hook
#1
Is there a way to make a hook?

I am trying to make a window follows the pointer all the time, i have found a way to do that making a thread that starts with that dialog, for example using this:


Code:
Copy      Help
spe -1

rep
    if (moving=1)
        int px(xm) py(ym)
        mov (xm-30) (ym-95) act
    else
        break;

But there is a problem because it is running all the time, i've tried to use the variable 'moving' to start this thread and when that variable changes it stop with the break statement, however it reduces the performance of the computer by running all the time. So my question is that is there a way to implement a mouse movement hook?, i have seen a lot of information to do that with MFC, but it's still complicated making a library and so on.

I know that there are a lot of triggers but that triggers on QM detects only when i do a click(right or left) i just want to catch mose move event all the time (where is the cursor) on the screen, is there a way to do that without reducing performance? (maybe it is very closely asociated with the way QuickMacros detects 'screen' mouse coordinates at status bar all the time)

Thanks.


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)