Hi! Is it possible to stop an application from inside another application? If it's possible, how can i achieve it? I know that we can start an application that way. if anybody knows it, please reply to me.
Thanks a lot!
Check out classes TApaTask and TApaTaskList from SDK Help. Using TApaTaskList you are able to get access to any applications in the system and with TApaTask you call EndTask() or KillTask() to stop an application.
Thank you for this useful information.
I need also another information:
i have two application, A and B.
A starts B.
Now i want to send some controls through the OK and EXIT key from the application A to the application B.
How can i do that??
Thanks a lot!!
can you also tell me the meaning of iCode and iModifiers?
i didn't understand them from the SDK's documentation.
Do you also know what i have to write in iCode and iModifiers to have the pressing of the left softkey(the option button generally)?
Thank you for your helpfull information.
But i can't find in struct TKeyCode the corrispondent of SoftKeyOK (the OPTION button).
Do you know which is?
probably EKeyEnter or EKeyYes...
and then Do have I to set aModifiers to '0'?
Thank you,you'll be my hero!!!
Hmm, don't know what's code of the navi keys (I think communicators use F1 - F4 for the display associated buttons) but I'm sure the joystick push (fire) is EKeyDevice3. So these 2 navikeys might be EKeyDevice1 and EKeyDevice2.
Otherwise implement function HandleKeyEventL in you AppUI class:
if (aType == EEventKeyDown)
Then every pressed key makes dialog showing the keycode.
Sorry to be late, I must have forgotten to set reply notification.
Unfortunately I don't know, my wits are at the end. I can advise you just to try something easier like sending letter characters. Or let the app in the front, perhaps it can't receive characters if it's not focused. Anyway let me know how you are going with the prob.