|
-
Jan 28th, 2000, 02:29 AM
#1
Thread Starter
Member
This is worthless to me ...
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)
Private Const MOUSEEVENTF_LEFTDOWN = &H2
Private Const MOUSEEVENTF_LEFTUP = &H4
Private Sub Command1_Click()
mouse_event MOUSEEVENTF_LEFTDOWN Or MOUSEEVENTF_LEFTUP, 0, 0, 0, 0
End Sub
I do not know where and how to put all that in my program. Can you be more specific?
-
Jan 28th, 2000, 02:51 AM
#2
It's pretty self explanitory..
You place the Declaration and Constants in either a Module, (As Public), or a Specific Form, depending on how many places you want to use it.
Then you call the line:
mouse_event MOUSEEVENTF_LEFTDOWN Or MOUSEEVENTF_LEFTUP, 0, 0, 0, 0
Where Ever you want to Initiate a Mouse Click over the Current Mouse Location.
------------------
Aaron Young
Analyst Programmer
[email protected]
[email protected]
-
Jan 28th, 2000, 02:59 AM
#3
Thread Starter
Member
Thank you very much, It works now =)
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
|