I've found out that the code below doesn't work for some reason on any E61 devices. A focused window contains wrong characters.
SendKeyEvent( 'z' );
SendKeyEvent( 'Z' );
SendKeyEvent( 'y' );
SendKeyEvent( 'Y' );
void CHelloWorldBasicAppUi::SendKeyEvent( TChar aChar )
{
TInt focussedWindowGroupId = CEikonEnv::Static()->WsSession().GetFocusWindowGroup();
TKeyEvent keyEvent;
keyEvent.iCode = aChar;
keyEvent.iScanCode = aChar;
keyEvent.iRepeats = 0;
keyEvent.iModifiers = 0;
TWsEvent event;
*event.Key() = keyEvent;
event.SetTimeNow();
event.SetType(EEventKey);
CEikonEnv::Static()->WsSession().SendEventToWindowGroup(focussedWindowGroupId,event);
}
E61 ROMs versions 3.0633.09.04 and 2.0618.06.05 results:
Send -> Result
z -> @
Z -> z
y -> /
Y -> y
E61 ( Russian variant ) ROM version 3.0633.09.04 results
Send -> Result
z -> nothing
Z -> Z
y -> nothing
Y -> Y
I've been used the Remote Device Access Service.



