OberonPlace.com Forums  

Go Back   OberonPlace.com Forums > Developer Forums > VBA > CorelDRAW/Corel DESIGNER VBA

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 24-07-2007, 09:06
Rick Randall
Guest
 
Posts: n/a
Default 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!
Reply With Quote
  #2  
Old 24-07-2007, 10:09
wOxxOm's Avatar
wOxxOm wOxxOm is offline
Senior Member
 
Join Date: Mar 2005
Posts: 836
Default

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
..................
Reply With Quote
  #3  
Old 24-07-2007, 12:30
Rick Randall
Guest
 
Posts: n/a
Smile whoa!

dude! you are clearly the man. Thanks so much! maybe i can help you with...uh....well, graphics?
Reply With Quote
  #4  
Old 24-07-2007, 12:38
wOxxOm's Avatar
wOxxOm wOxxOm is offline
Senior Member
 
Join Date: Mar 2005
Posts: 836
Default

:-) oneway flow is a good flow too
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
having to dbl click in X3 for tools to work bloodgroove General 3 16-06-2006 13:46
Click and Drag Scaling similar to CAD applications JSC Feature requests/wishlist 2 31-10-2005 11:27
Undo several steps with one click... dungbtl CorelDRAW/Corel DESIGNER VBA 1 13-12-2004 13:21
Corel Capture 8 and Corel Script Helix CorelDRAW CS 0 13-12-2002 18:10


All times are GMT -5. The time now is 20:45.


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