This is All You Need
Code:
'[API]-Pixel
Public Declare Function GetDC Lib "user32" (ByVal hwnd As Long) As Long
Public Declare Function ReleaseDC Lib "user32" (ByVal hwnd As Long, ByVal hdc As Long) As Long
Public Declare Function GetPixel Lib "gdi32" (ByVal hdc As Long, ByVal x As Long, ByVal y As Long) As Long
'[API]-MOUSE
Public Declare Function SetCursorPos Lib "user32" (ByVal x As Long, ByVal y As Long) As Long
Public Declare Function GetCursorPos Lib "user32" (lpPoint As Point) As Long
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)
'[API]-KeyState
Public Declare Function GetAsyncKeyState Lib "user32" (ByVal vKey As Long) As Integer
Public Declare Function GetKeyPress Lib "user32" Alias "GetAsyncKeyState" (ByVal key As Long) As Integer
'[Mouse Constants]
Public Const MOUSEEVENTF_LEFTDOWN = &H2 'Mouse 1 Down
Public Const MOUSEEVENTF_LEFTUP = &H4 'Mouse 1 Up
Public Const MOUSEEVENTF_RIGHTDOWN = &H8 'Mouse 2 Down
Public Const MOUSEEVENTF_RIGHTUP = &H10 'Mouse 2 Up
Public Const MOUSEEVENTF_MIDDLEDOWN = &H20 'Mouse Wheel Down
Public Const MOUSEEVENTF_MIDDLEUP = &H40 'Mouse Wheel Up
Public Const MOUSEEVENTF_MOVE = &H1 'Move
'[Mouse Point]
Public Type Point
x As Long
y As Long
End Type
Enjoy ;*