OberonPlace.com Forums

OberonPlace.com Forums (http://forum.oberonplace.com/index.php)
-   CorelDRAW/Corel DESIGNER VBA (http://forum.oberonplace.com/forumdisplay.php?f=16)
-   -   winAPI to capture a left-click? (http://forum.oberonplace.com/showthread.php?t=3766)

Rick Randall 24-07-2007 09:06

winAPI to capture a left-click?
 
is there a winAPI function that will return a Boolean when the user left-clicks on their mouse. I know there is a GetUserClick in Corel but I need to use a winAPI fro my specific macro.

thanks!

wOxxOm 24-07-2007 10:09

Code:

private Declare Function GetAsyncKeyState& Lib "user32" (ByVal vKey&)
..............
..............
if (GetAsyncKeyState(vbKeyLButton) and 1)<>0 then 'Button key was pressed since last check
..................
if (GetAsyncKeyState(vbKeyLButton) and &hFFFF8000)<>0 then 'Button key IS held right now
..................


Rick Randall 24-07-2007 12:30

whoa!
 
dude! you are clearly the man. Thanks so much! maybe i can help you with...uh....well, graphics?

wOxxOm 24-07-2007 12:38

:-) oneway flow is a good flow too


All times are GMT -5. The time now is 19:56.

Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2021, Jelsoft Enterprises Ltd.
Copyright © 2011, Oberonplace.com