@sinisrus
I have to clarify that to send a
SELECTDOWN / SELECTUP on a Close gadget works well on
-
Qt window (tested with SMTube)
-
Reaction window (tested with Notepad and Ranger)
-
MUI window (tested with Odyssey and SysMon)
It seems that
it doesn't work only on Workbench drawer window.
For example, download BougeSouris on OS4Depot
1) open a drawer and precisely put it in the upper left of your screen.
2) in a Shell, type "BougeSouris X=18 Y=14 CLICK" to hit the Close gadget
3) the close gadget blink but the drawer window doesn't close
4) now, put the window of a program in the same place (for example YAM)
5) retype the same BougeSouris command
6) YAM will close it.
BougeSouris with sources available here :
http://www.os4depot.net/?function=sho ... lity/misc/bougesouris.lhaTo simulate a Click, BougeSouris send
FakeEvent->ie_EventAddress=NULL;
FakeEvent->ie_Class=IECLASS_RAWMOUSE;
FakeEvent->ie_Code=IECODE_LBUTTON ;
InputIO->io_Data = (APTR)FakeEvent;
InputIO->io_Length = sizeof(struct InputEvent);
InputIO->io_Command = IND_WRITEEVENT;
DoIO((struct IORequest *)InputIO);
FakeEvent->ie_EventAddress=NULL;
FakeEvent->ie_Class=IECLASS_RAWMOUSE;
FakeEvent->ie_Code=SELECTUP;
InputIO->io_Data = (APTR)FakeEvent;
InputIO->io_Length = sizeof(struct InputEvent);
InputIO->io_Command = IND_WRITEEVENT;
DoIO((struct IORequest *)InputIO);
As mentionned in the readme :
The move mouse pointer function is based on source find here :
http://www.theflatnet.de/pub/cbm/amig ... /dev_examples/set_mouse.cThank you