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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top