PDA

Click to See Complete Forum and Search --> : A Api Q


Evan
Nov 7th, 1999, 01:17 AM
I was Using api call keyboardAsyncState

The Code was

While keyboardasyncstate(vbreturn)
wend
while keyboardasyncstate(vbReturn) = 0
wend

it was For a break for the person to push enter...

But I need one now that I Could use for the mouse.

I Tried this:

While mouse_event(0, 0, 0, 0, 0)
Wend

But I just dont know what Im Doing..
Can someone Help me out?

thanks.

ShadowCrawler
Nov 7th, 1999, 02:27 AM
You can use the GetAsyncKeyState function, and use the mouse button constants:

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: craigkovatch@compuserve.com
ICQ#: 9872708 (http://wwp.mirabilis.com/9872708)