VBcoders Browse New Submit Contact Sign In

No account? Register free

Forgot password?

A mouse module, FINALLY Move,click, +more

Arthur Chaparyan3  (2 Submissions)   Windows API Call/Explanation   Visual Basic 3.0   Unknown Difficulty   Wed 3rd February 2021

This module has the following functions (pretty self explanitory): GetX, GetY, LeftClick, LeftDown, LeftUp, RightClick, RightUp, RightDown, MiddleClick, MiddleDown, MiddleUp, MoveMouse, SetMousePos

Assumes
You should know how to create and use a module. If you have any questions, please submit a comment, thanX

API Declarations
Public 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)
Public Declare Function SetCursorPos Lib "user32" (ByVal x As Long, ByVal y As Long) As Long
Public Declare Function GetCursorPos Lib "user32" (lpPoint As POINTAPI) As Long
Public Const MOUSEEVENTF_LEFTDOWN = &H2
Public Const MOUSEEVENTF_LEFTUP = &H4
Public Const MOUSEEVENTF_MIDDLEDOWN = &H20
Public Const MOUSEEVENTF_MIDDLEUP = &H40
Public Const MOUSEEVENTF_RIGHTDOWN = &H8
Public Const MOUSEEVENTF_RIGHTUP = &H10
Public Const MOUSEEVENTF_MOVE = &H1
Public Type POINTAPI
x As Long
y As Long
End Type

Rate A mouse module, FINALLY Move,click, +more (33(33 Vote))
A mouse module, FINALLY Move,click, +more.bas

A mouse module, FINALLY Move,click, +more Comments

No comments yet — be the first to post one!

Post a Comment

0/1000 characters