Results 1 to 17 of 17

Thread: What is the command for....

Hybrid View

  1. #1

    Thread Starter
    New Member
    Join Date
    Jun 2005
    Posts
    15

    What is the command for....

    Whats the command for Left Click on VB 6.0?

  2. #2
    Admodistrator |2eM!x's Avatar
    Join Date
    Jan 2005
    Posts
    3,900

    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

  3. #3

    Thread Starter
    New Member
    Join Date
    Jun 2005
    Posts
    15

    Re: What is the command for....

    Does that Click in the spot the mouse is?

  4. #4
    Admodistrator |2eM!x's Avatar
    Join Date
    Jan 2005
    Posts
    3,900

    Re: What is the command for....

    no, that will click on a hwnd

  5. #5

    Thread Starter
    New Member
    Join Date
    Jun 2005
    Posts
    15

    Re: What is the command for....

    hwnd is?

  6. #6
    Admodistrator |2eM!x's Avatar
    Join Date
    Jan 2005
    Posts
    3,900

    Re: What is the command for....

    each form has a hwnd, you can send a message to a form to click. one of these will tell you:
    http://www.mentalis.org/apilist/807D...4D80FD3DD.html
    http://www.mentalis.org/apilist/5C95...C42DE3334.html

  7. #7

    Thread Starter
    New Member
    Join Date
    Jun 2005
    Posts
    15

    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...............................

  8. #8

    Thread Starter
    New Member
    Join Date
    Jun 2005
    Posts
    15

    Re: What is the command for....

    If you dont knwo what i want, i want my MOUSE to click its LEFT button...

  9. #9
    Fanatic Member daydee's Avatar
    Join Date
    Jun 2001
    Location
    Canada
    Posts
    560

    Re: What is the command for....

    Quote 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:
    1. 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)
    2.  
    3. Private Const MOUSEEVENTF_LEFTDOWN = &H2
    4. Private Const MOUSEEVENTF_LEFTUP = &H4
    When you want left click just call it like this:
    VB Code:
    1. mouse_event MOUSEEVENTF_LEFTDOWN, 0, 0, 0, 0
    2. mouse_event MOUSEEVENTF_LEFTUP, 0, 0, 0, 0
    Give your music collection a whole new life with PartyTime Jukebox

  10. #10
    Fanatic Member daydee's Avatar
    Join Date
    Jun 2001
    Location
    Canada
    Posts
    560

    Re: What is the command for....

    BTW "yes" that will left click in the spot the mouse is.
    Give your music collection a whole new life with PartyTime Jukebox

  11. #11
    Admodistrator |2eM!x's Avatar
    Join Date
    Jan 2005
    Posts
    3,900

    Re: What is the command for....

    edit **copywrite

    same exact thing...
    Last edited by |2eM!x; Jun 30th, 2005 at 02:57 AM.

  12. #12
    Fanatic Member daydee's Avatar
    Join Date
    Jun 2001
    Location
    Canada
    Posts
    560

    Question Re: What is the command for....

    |2eM!x, I don't see constants for cButt and dwEI ?

    Should'nt it be:
    VB Code:
    1. mouse_event MOUSEEVENTF_LEFTDOWN Or MOUSEEVENTF_LEFTUP, 0&, 0&, 0&, 0&
    Give your music collection a whole new life with PartyTime Jukebox

  13. #13
    Admodistrator |2eM!x's Avatar
    Join Date
    Jan 2005
    Posts
    3,900

    Re: What is the command for....

    yeah ***...stupid allapi-always lying to me

  14. #14
    Fanatic Member daydee's Avatar
    Join Date
    Jun 2001
    Location
    Canada
    Posts
    560

    Re: What is the command for....

    Quote 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.
    Give your music collection a whole new life with PartyTime Jukebox

  15. #15
    Banned dglienna's Avatar
    Join Date
    Jun 2004
    Location
    Center of it all
    Posts
    17,901

    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).

  16. #16
    Fanatic Member daydee's Avatar
    Join Date
    Jun 2001
    Location
    Canada
    Posts
    560

    Re: What is the command for....

    http://www.mentalis.org/goodbye/
    I checked out this link but couldn’t find a date there either
    Give your music collection a whole new life with PartyTime Jukebox

  17. #17
    Admodistrator |2eM!x's Avatar
    Join Date
    Jan 2005
    Posts
    3,900

    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
  •  



Click Here to Expand Forum to Full Width