Newbie: Handle help

  • Thread starter Thread starter Dean Redmond
  • Start date Start date
D

Dean Redmond

i'm having trouble assigning a value to a handle.

basically i need to perform a mouseclick, wherever the cursor is, on the
screen at that time, and i have code that does this using the user32.dll
WM_LBUTTONDOWN/UP messages.

However, when i run my code, i think these messages are sent, but not to the
right place.
I've figured this is because i'm not assigning the handle properly.

any ideas?


Cheers!
 
Dean,

Instead of doing this, you should make a call to the SendInput API call
in order to send a mouse click. This way, the OS will handle where the
click message should be sent.

Hope this helps.
 
Back
Top