Hi, I'm playing hard with my FEP, and when I decided to implement new feathure I've got a trouble:
In standard FEP Virtual Keyboard (p800) there are two buttons in floating window - Up and Down - thay allow user to switch captions in target application.
Any ideas about ways to implement this?
I find key on emulator that switch focus from one control to another - EKeyDevice4(63558), EKeyDevice5(63559) with modifier set to 1.
I used next code in my FEP
TApaTask task(iCoeEnv->WsSession());
task.SetWgId(iCoeEnv->WsSession().GetFocusWindowGroup());
task.SendKey(63558, 1);
thats don't work... Only work with keys such EKeySpace and etc.
TWsEvent wsEvent;
TKeyEvent event;
event.iCode = 63559;
event.iModifiers = 1;
event.iRepeats = 0;
event.iScanCode = 169;
*(wsEvent.Key())=event;
wsEvent.SetType(EEventKey);
wsEvent.SetTimeNow();
iCoeEnv->WsSession().SendEventToWindowGroup(iCoeEnv->RootWin().Identifier(), wsEvent);
don't work too...
May be I'm on wrong way :redface: and there is more easily way to switch focus in target application 🙄 ?
P.S. I have access to CCoeEnv from target app, and my window created (I think) in the same windows group as target app window.
Thanks for any ideas! 🙄