Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Simulate a mouse down?
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00101955
Message ID:
00101995
Vues:
27
>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform