You are not logged in.
Hello,
how can i get the PID or the ID Window from the terminal of the windows that is on top or that have the focus?
sincerely, Giancarlo
Last edited by giancarlogiesa (2012-09-22 13:16:04)
Offline
You can use the xdotool utility to get the pid of the active window like this:
xdotool getactivewindow getwindowpid
or the currently focused window like this:
xdotool getwindowfocus getwindowpid
Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki | Community | Contribute ---
Offline
thank you very much!
Offline
[ Generated in 0.007 seconds, 7 queries executed - Memory usage: 522.58 KiB (Peak: 531.17 KiB) ]