about HandleWsEvent method
hi
i have implemented the HandleWsEvent method for my application to get the notification, as soon as a new application gets started.
it is working fine if the application is in focus. But, if the application is running but is not in focus, it does not get any notification.
can anyone suggest what could be the problem?
Re: about HandleWsEvent method
You mean that when non-gui app started you don't receive notification? That's because it don't create window group.
In this case you can try to monitor active processes and then if you have a new one - handle this event.
Re: about HandleWsEvent method
Background applications generally do not need HandleWsEvent's, so could you tell us what it is that you would want to catch ?
Re: about HandleWsEvent method
no no not a non-gui application
a GUI application should be notified to my application
Re: about HandleWsEvent method
not a non-gui application
a GUI application should be notified to my application
Re: about HandleWsEvent method
did you want to known a new gui app started event, and maybe the new gui app not is focused gui, if yes, it maybe not in HandleWsEevnt, it seems not api for the purpose, or monitor TApaTaskList.
Re: about HandleWsEvent method
no sir
that is want notification about a just started GUI application is right.
but i want it even if my application is not in focus...
i hope now u got me
Re: about HandleWsEvent method
See [url]http://wiki.forum.nokia.com/index.php/Capturing_foreground_events[/url]
Re: about HandleWsEvent method
still u ppl didn't get me
my application which i want to get notification is also a GUI application(not a background process).
and the application of which i want notification, is also a GUI application
Re: about HandleWsEvent method
Suppose there are Two apps A and B.And both are GUI application.
You want to notify your "A" Appliacation that "B" is in foreground or background and vice verse.Is that is the case ..
Re: about HandleWsEvent method
Re: about HandleWsEvent method
can i ask u a question why there is a reason to implement to two gui application .." A" and "B"
wht you can do is:
1:IPC mechanism between two application so that you are notified which one is the foreground and background.
IPC can be
1:Client Server.
2:Publish and subscribe.
this is one way i can see.
Re: about HandleWsEvent method
Or simply do monitor foreground app as Paul.Todd mentioned above - [URL="http://wiki.forum.nokia.com/index.php/Capturing_foreground_events"]Capturing foreground events[/URL]
Re: about HandleWsEvent method
Exactly, if any other application is coming in to focus then that would mean your Application B is in Background.