Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Simulate a mouse down?
Message
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00101955
Message ID:
00101995
Views:
26
>Anyone know of a way to programmatically do this? Something like Keyboard or Mouse Click...but I want only the first half of a click, not the entire event...

Yeah, you can Bruce. Here's what you need:
DECLARE mouse_event IN Win32API;
  INTEGER dwFlags, INTEGER dx,;
  INTEGER dy, INTEGER cButtons,;
  INTEGER dwExtraInfo
#define MOUSEEVENTF_MOVE        0x0001
#define MOUSEEVENTF_LEFTDOWN    0x0002
#define MOUSEEVENTF_LEFTUP      0x0004
#define MOUSEEVENTF_RIGHTDOWN   0x0008
#define MOUSEEVENTF_RIGHTUP     0x0010
#define MOUSEEVENTF_MIDDLEDOWN  0x0020
#define MOUSEEVENTF_MIDDLEUP    0x0040
#define MOUSEEVENTF_ABSOLUTE    0x8000
* The following fired the MouseDown event in a form
= mouse_event(MOUSEEVENTF_LEFTDOWN, 0, 0, 0, 0)
hth,
George

Ubi caritas et amor, deus ibi est
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform