tags:

views:

27

answers:

1

How can i get every cursor movement thats done by the user? even if its out of my form? on google i see getcursorpos but how to get that function? or is there something else?

THNX!

A: 

You have to create a hook using the windows API. For general information on hooks using windows api see this link and codeproject seems to have an explanation on global hooks here and some other random code example giving enable and disable hooks here. I have tested non of those last two though. So I suggest you dive a bit into the windows api hook information (first link) and write one yourself :).

bastijn