|
-
Mar 24th, 2000, 11:39 PM
#1
Thread Starter
Junior Member
Ok, i'm looking for a way to send a mouse click to either some X,Y coord, or to the place where the mouse is.
Example: say there's a little box at 192,303 (X,Y) and i want to click on it. I could move the mouse there, and then send a click to that place? or just send a click there directly (i think the first is more likely possible). I know how to move the mouse, and even you just have an idea, pls reply. I've been trying to do this for a long while now.
-----
Inxil
-
Mar 25th, 2000, 02:41 AM
#2
Lively Member
Hello,
I believe you can use an API call that will help you out, but I beleive it won't send mouse clicks outside of your program.
API Call,
Code:
Private Declare Sub mouse_event Lib "user32" (ByVal dwFlags As Long, ByVal dx As Long, ByVal dy As Long, ByVal cButtons As Long, ByVal dwExtraInfo As Long)
Mouse Button Constants,
Code:
Private Const VK_LBUTTON = &H1
Private Const VK_RBUTTON = &H2
Private Const VK_MBUTTON = &H4
Hope it helps,
Desire
-
Mar 25th, 2000, 02:49 AM
#3
Thread Starter
Junior Member
uhm
yeah, that doesn't work outside of your own program =( i need to send it anywhere on the screen.
-
Mar 25th, 2000, 03:20 AM
#4
Lively Member
Sorry
Hello,
I can't get it to send mouse clicks outside of the form without my program going crazy and clicking everything under the mouse.
Hope you solve it soon,
Desire.
-
Mar 27th, 2000, 01:09 AM
#5
New Member
Yes mouse_events click anywhere
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
|