I would like to emulate a press on a displayed button.
I have obtained the information regarding the button, filled an EventType
structure and sent it.
However, nothing happens. Is there something wrong/missing in the following
snippet ? Is there a better way to accomplish this ?
(Note: I am NOT the application running at the time).
FrmGetObjectBounds (frmP, objIndex, &Rect);
myEvent.eType = penDownEvent;
myEvent.penDown = true;
myEvent.tapCount = 1;
myEvent.screenX = Rect.topLeft.x+1; // just to make sure within
limits
myEvent.screenY = Rect.topLeft.y+1; // just to make sure within
limits
EvtAddEventToQueue(myEvent);
-- Eli Mandel
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/