[VB.NET] Click Mouse menu

Shout-Out

User Tag List

Results 1 to 3 of 3
  1. #1
    leaderdark's Avatar Member
    Reputation
    1
    Join Date
    Dec 2008
    Posts
    5
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    [VB.NET] Click Mouse

    Hello. I am currently working on a pvpbot and need help clicking the mouse to queue for a battleground. Right now I am trying to use this
    Code:
    Dim test As New MouseEventArgs(Windows.Forms.MouseButtons.Left, 1, 1, 1, 0)
    OnMouseClick(test)
    It doesn't seem to click the mouse. Can somebody please show me how to successfully click the left mouse button? :wave:

    [VB.NET] Click Mouse
  2. #2
    Neer's Avatar Trend Rider Authenticator enabled
    Reputation
    1460
    Join Date
    Apr 2007
    Posts
    751
    Thanks G/R
    183/834
    Trade Feedback
    6 (100%)
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

  3. #3
    abuckau907's Avatar Active Member
    Reputation
    49
    Join Date
    May 2009
    Posts
    225
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Code:
       
     Public Enum MouseFlags As Int32
            LEFTDOWN = &H2
            LEFTUP = &H4
            MIDDLEDOWN = &H20   'not used
            MIDDLEUP = &H40     'not used
            MOVE = &H1          'used the most :)
            ABSOLUTE = &H8000   'not used
            RIGHTDOWN = &H8
            RIGHTUP = &H10
        End Enum
    Code:
    API
        Public Declare Sub mouse_event Lib "user32.dll" (ByVal dwflags As Integer, ByVal dx As Integer, ByVal dy As Integer, ByVal dwData As Integer, ByVal dwExtraInfo As Integer)
    Exampel:
    Code:
    mouseEvent(mouseFlags.MouseDown,0,0,0,0)
    threading.Thread.sleep(100)
    mouseEvent(MouseFlags.MouseUp,0,0,0,0)
    The code just left clicks the mouse (pretty basic) check the api documentation, the 0,0,0,0 are just the location you want to click (0,0 = current location) and the rest is...you won't use it..it's generally mouse_event(MouseFlags.Something,0,0,0,0)
    BUT, this takes NO consideration to what program you want to send the mouse click to...(ie. if you want to send it to WoW, minimized to the tray bar, this won't work)

Similar Threads

  1. C++ How to send left click Mouse to a Game
    By caosmen in forum Programming
    Replies: 2
    Last Post: 09-25-2012, 05:32 AM
  2. Replies: 0
    Last Post: 06-08-2012, 10:26 PM
  3. Fast clicking without mouse or program
    By wootpeng in forum World of Warcraft Exploits
    Replies: 8
    Last Post: 10-24-2008, 07:14 PM
  4. Talk to NPC without Mouse clicks
    By _duracell in forum World of Warcraft General
    Replies: 0
    Last Post: 07-01-2007, 02:27 PM
  5. Convert any file type in 4 mouse clicks !!!
    By Flying Piggy in forum Community Chat
    Replies: 4
    Last Post: 03-29-2007, 08:43 PM
All times are GMT -5. The time now is 12:42 PM. Powered by vBulletin® Version 4.2.3
Copyright © 2025 vBulletin Solutions, Inc. All rights reserved. User Alert System provided by Advanced User Tagging (Pro) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
Google Authenticator verification provided by Two-Factor Authentication (Free) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
Digital Point modules: Sphinx-based search