Hi,
I need a way to get the window id from pid of a process. And the reverse too, ie from the window id I need to get the pid of the process. I have the exepath and from the /proc i get the pid and from the pid I need to get the window Id( or a list of window ids).
I am trying to write an app which will check if a particular process is currently running or not. If it is running then get its main window and make it active and set focus to it. If it is not running then start it and make it the active window.
I can go platform specific on this. It need not be cross platform or qt. I am looking for code on KDE, X and gnome.
Thank you.
Bookmarks