|
-
Mar 12th, 2002, 07:43 PM
#1
Thread Starter
New Member
Clicking without the mouse
How do I make emulate the mouse clicking without actually using the mouse? I am looking for something similiar to the SetCursorPos function only I want to click the mouse. Both right and left click.
-
Mar 12th, 2002, 08:04 PM
#2
You can programmatically call click events, within the form, if thats what you want?
-
Mar 12th, 2002, 08:06 PM
#3
Thread Starter
New Member
No, I need to click the mouse somewhere else on the screen. It looks like Mouse_Event is what I want to use but I can't seem to get it to work.
-
Mar 12th, 2002, 08:18 PM
#4
Thread Starter
New Member
-
Mar 21st, 2002, 05:53 AM
#5
Frenzied Member
If you want to click on a particular window, get the get the handler to it, then use SendMessage API to send the Public Const WM_LBUTTONDOWN and WM_RBUTTONDOWN messages.
To find the Specific window use FindWindow, FindWindowEX or GetWindow API Function.
If you want to just click regardless of any window, use mouse_event API, see MSDN documenation of that function.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|