From: "Gutek" <gut@op.pl>
Subject: Re: simulate mouse click - windows
Date: 23 Dec 2005 17:54:47 -0800
Date: 2005-12-23T17:54:47-08:00 [thread overview]
Message-ID: <1135389287.139845.57280@g47g2000cwa.googlegroups.com> (raw)
In-Reply-To: 1135302476.367605.172030@g14g2000cwa.googlegroups.com
Hi,
I have found the solution with your help:
Most of widnows API functions are implemented in win32-xxx.adb modules,
which were binded to GNAT.
Simulating mouse clicks and movement were very easy with them :)
-- (...)
with Win32.Winuser;
-- (...)
-- click:
Win32.Winuser.Mouse_Event(Win32.Winuser.Mouseeventf_Leftdown,0,0,0,0);
Win32.Winuser.Mouse_Event(Win32.Winuser.Mouseeventf_Leftup,0,0,0,0);
-- (...)
-- mouse movement:
Win32.Winuser.Mouse_Event(Win32.Winuser.Mouseeventf_Move,20,20,0,0);
---:/~
next prev parent reply other threads:[~2005-12-24 1:54 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-12-23 1:47 simulate mouse click - windows Gutek
2005-12-23 2:51 ` Steve
2005-12-23 6:07 ` tmoran
2005-12-23 11:13 ` bubble
2005-12-23 12:47 ` Adrien Plisson
2005-12-24 1:54 ` Gutek [this message]
2005-12-24 2:59 ` Stephen Leake
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox