You can use the GetAsyncKeyState function, and use the mouse button constants:
Code:
Private Const VK_LBUTTON = &H1
Private Const VK_MBUTTON = &H4             
Private Const VK_RBUTTON = &H2

------------------
(¯`·.¸¸.·´¯`·->ShadowCrawler<-·´¯`·.¸¸.·´¯)
Teenage Programmer
Visual Basic, HTML, C++, JavaScript

http://welcome.to/X12Tech
Email: [email protected]
ICQ#: 9872708