|
-
Jun 29th, 2005, 11:11 PM
#1
Thread Starter
New Member
What is the command for....
Whats the command for Left Click on VB 6.0?
-
Jun 29th, 2005, 11:12 PM
#2
Re: What is the command for....
Code:
Private Const VK_LEFT = &H25
SendMessage Hwnd, WM_KEYDOWN, VK_LEFT, 0
SendMessage Hwnd, WM_KEYUP, VK_LEFT, 0
-
Jun 29th, 2005, 11:15 PM
#3
Thread Starter
New Member
Re: What is the command for....
Does that Click in the spot the mouse is?
-
Jun 29th, 2005, 11:22 PM
#4
Re: What is the command for....
no, that will click on a hwnd
-
Jun 29th, 2005, 11:23 PM
#5
Thread Starter
New Member
Re: What is the command for....
-
Jun 29th, 2005, 11:30 PM
#6
Re: What is the command for....
-
Jun 29th, 2005, 11:38 PM
#7
Thread Starter
New Member
Re: What is the command for....
I dont want anything fancy all i want is click, if its not hard to say press z by sayingf SendKeys "z" it shouldnt b hard to do LeftClick...............................
-
Jun 29th, 2005, 11:40 PM
#8
Thread Starter
New Member
Re: What is the command for....
If you dont knwo what i want, i want my MOUSE to click its LEFT button...
-
Jun 30th, 2005, 01:00 AM
#9
Fanatic Member
Re: What is the command for....
 Originally Posted by SlipKnot
If you dont knwo what i want, i want my MOUSE to click its LEFT button...
You can simulate mouse left click with mouse_event API
VB Code:
Private Declare Sub mouse_event Lib "user32.dll" (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
When you want left click just call it like this:
VB Code:
mouse_event MOUSEEVENTF_LEFTDOWN, 0, 0, 0, 0
mouse_event MOUSEEVENTF_LEFTUP, 0, 0, 0, 0
-
Jun 30th, 2005, 01:05 AM
#10
Fanatic Member
Re: What is the command for....
BTW "yes" that will left click in the spot the mouse is.
-
Jun 30th, 2005, 01:17 AM
#11
Re: What is the command for....
edit **copywrite
same exact thing...
Last edited by |2eM!x; Jun 30th, 2005 at 02:57 AM.
-
Jun 30th, 2005, 01:46 AM
#12
Fanatic Member
Re: What is the command for....
|2eM!x, I don't see constants for cButt and dwEI ?
Should'nt it be:
VB Code:
mouse_event MOUSEEVENTF_LEFTDOWN Or MOUSEEVENTF_LEFTUP, 0&, 0&, 0&, 0&
-
Jun 30th, 2005, 02:01 AM
#13
Re: What is the command for....
yeah ***...stupid allapi-always lying to me
-
Jun 30th, 2005, 02:24 AM
#14
Fanatic Member
Re: What is the command for....
 Originally Posted by |2eM!x
yeah ***...stupid allapi-always lying to me
LOL... actually not a bad site.
n'fact I felt a bit sad to hear that they'll be shutting it down.
-
Jun 30th, 2005, 02:33 AM
#15
Re: What is the command for....
When will that be? I couldn't find a date, but I did see this.
All other software, source code, tips & tricks, tutorials or information may not be redistributed without written permission of the respective author(s).
-
Jun 30th, 2005, 02:44 AM
#16
Fanatic Member
Re: What is the command for....
http://www.mentalis.org/goodbye/
I checked out this link but couldn’t find a date there either
-
Jun 30th, 2005, 02:58 AM
#17
Re: What is the command for....
how do i get your code to click on a specific x,y?
wouldnt it be:
mouse_event MOUSEEVENTF_LEFTDOWN, x, y, 0, 0
mouse_event MOUSEEVENTF_LEFTUP, x, y, 0, 0
?
because that isnt working
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
|