Article View: fr.comp.os.ms-windows.programmation
Article #83Re: Help avec la fonction mouse_event
From: Yves Gaeremynck
Date: Wed, 29 Nov 2000 00:00
Date: Wed, 29 Nov 2000 00:00
21 lines
1636 bytes
1636 bytes
>Je suppose donc que la fonction mouse_event est la plus appropri�e.
Oui, voici ce que j'ai et qui, ma foi, marche bien :
Private Declare Sub mouse_event Lib "user32" _
(ByVal dwFlags As Long, ByVal dx As Long, _
ByVal dy As Long, ByVal cButtons As Long, _
ByVal dwExtraInfo As Long)
Private Const MOUSEEVENTF_LEFTDOWN = &H2 ' bouton gauche enfonc�
Private Const MOUSEEVENTF_LEFTUP = &H4 ' bouton gauche relach�
Private Const MOUSEEVENTF_RIGHTDOWN = &H8 ' bouton droit enfonc�
Private Const MOUSEEVENTF_RIGHTUP = &H10 ' bouton droit relach�
'Pour simuler un clic gauche :
mouse_event MOUSEEVENTF_LEFTDOWN, 0, 0, 0, 0
mouse_event MOUSEEVENTF_LEFTUP, 0, 0, 0, 0
' apr�s avoir positionn� le curseur au bon endroit
--
Yves Gaeremynck
Technical Details
Message-ID:
<903fe3$7f6$1@smilodon.ecp.fr>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<slrn929ajm.gir.xav@zen.via.ecp.fr>Show Full Headers
Complete Article Headers
X-Google-Language: FRENCH,ASCII X-Google-Thread: f7646,944f4029eb82674f X-Google-Attributes: gidf7646,public X-Google-Thread: 1053e6,944f4029eb82674f X-Google-Attributes: gid1053e6,public From: "Yves Gaeremynck" <yves_g_@caramail.com> Subject: Re: Help avec la fonction mouse_event Date: 2000/11/29 Message-ID: <903fe3$7f6$1@smilodon.ecp.fr> X-Deja-AN: 699185811 References: <slrn929ajm.gir.xav@zen.via.ecp.fr> X-Priority: 3 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300 X-Complaints-To: ingesys@cti.ecp.fr X-Trace: smilodon.ecp.fr 975520003 7654 138.195.138.140 (29 Nov 2000 17:46:43 GMT) Organization: Ecole Centrale Paris : Grde Voie des Vignes, 92295 Chatenay-Malabry Cdx X-MSMail-Priority: Normal NNTP-Posting-Date: 29 Nov 2000 17:46:43 GMT Newsgroups: fr.comp.os.ms-windows.programmation,fr.comp.lang.basic