Hi,
My aim is to send some key events to an application that is using direct screen access (e.g. a game). I can send successful events to other non-DSA applications using code such as:
TApaTask task(iEikonEnv->WsSession());
task.SetWgId(WgId);
task.SendKey(EKeyRightArrow, 0);
or
TWsEvent wsEvent;
TKeyEvent event;
//event.iCode=EKeyLeftArrow;
event.iCode=aKeyEvent.iCode;*(wsEvent.Key())=event;
wsEvent.SetType(EEventKeyDown); // also tried EEventKey
wsEvent.SetTimeNow();
wsSession.SendEventToWindowGroup(WgId, wsEvent);
Why does this not work for DSA? For example, sending an EKeyRightArrow to a game to make some object move. What am I doing wrong?
(My test apps have included the SkyForce game demo - controlling movement programmatically in the bg, with no luck)
TIA