Re: simulate mouse click - windows



>> How could I simulate clicks?
>If the you want the device to appear as a mouse to window, you'll need to
>look into writing device drivers.
That's surely the Right Way. IIRC there's a function "mouse_event"
to which you can pass position and action. There may be gotchas about

type Mouse_Actions is new Dword;

MOUSEEVENTF_MOVE : constant Mouse_Actions := 16#0001#; -- mouse move
MOUSEEVENTF_LEFTDOWN : constant Mouse_Actions := 16#0002#; -- left button down
MOUSEEVENTF_LEFTUP : constant Mouse_Actions := 16#0004#; -- left button up
MOUSEEVENTF_RIGHTDOWN : constant Mouse_Actions := 16#0008#; -- right button down
MOUSEEVENTF_RIGHTUP : constant Mouse_Actions := 16#0010#; -- right button up
MOUSEEVENTF_MIDDLEDOWN : constant Mouse_Actions := 16#0020#; -- middle button down
MOUSEEVENTF_MIDDLEUP : constant Mouse_Actions := 16#0040#; -- middle button up
MOUSEEVENTF_WHEEL : constant Mouse_Actions := 16#0800#; -- wheel button rolled
MOUSEEVENTF_ABSOLUTE : constant Mouse_Actions := 16#8000#; -- absolute move

procedure mouse_event(Action : in Mouse_Actions;
Dx, Dy : in Dword;
Data : in Dword;
Extra_Info : in Dword);
pragma Import(StdCall, mouse_event, "mouse_event");

That may be obsolete, and I don't recall what the requirements are on
who owns what window,
.



Relevant Pages

  • Re: Anybody been to an ALMOND in Barbados???
    ... The bread being sold out of a window. ... ALWAYS rent a car is because we like to take in the neighborhood feel ... I do recall many little 4 ... BUT, beofre that, the trip to the Tortola local clinic, as well as the ...
    (rec.travel.caribbean)
  • Re: Hes back
    ... That's what I recall. ... janitor/doorman, so he climbed up and listened through a window ... when it was extremely cold out. ...
    (soc.culture.jewish.moderated)
  • Re: When will there be good news?
    ... It's interesting to read these accounts, and recall the vehement denials ... the window of a shop in Bath along the lines, 'no dogs, French or ...
    (uk.rec.motorcycles)
  • Re: tcp_syncookie question
    ... my memory is that there is a threshold for switching to syn cookies. ... said I also kind of recall it impacting some other tcp options (window ... the penalty for small window size goes up as well. ... To unsubscribe or change subscription options: ...
    (Fedora)
  • Re: Selection table
    ... Anne Troy ... >I need to be able to recall a list of information in a window that can ... Prev by Date: ...
    (microsoft.public.excel.misc)