This is the mail archive of the
cygwin
mailing list for the Cygwin project.
PID -> WindowHandle (stop/restart processes)
- From: TAJTHY TamÃs <tajthy at mailbox dot hu>
- To: cygwin at cygwin dot com
- Date: Thu, 03 Jan 2008 14:09:11 +0100
- Subject: PID -> WindowHandle (stop/restart processes)
- Reply-to: tajthy at mailbox dot hu
Hi,
I wanted to stop and restart mencoder automatically under cygwin. I have read
that sending a STOP signal is not a proper solution and signal handling is not
perfectily solved (I tried and this does not work on mencoder :-( ). So as a
workaround I installed Win32::GutTest perl module which implements SendKeys
function which can send a ctrl+S/ctrl+Q to the window. This work.
I would like to find the window handle to the specific PID in cygwin. Is there a
way to do this? Now I use FindWindowLike function giving a list of window handle
having matching window title. But it is not "nice". With ps (or /proc/<PID>) I
can detect the windows PID of the process, but how can I find the window handle
belonging to this WPID? Is it stored somewhere in window local memory content
(GetWindowLong)?
TIA!
TT
_____________________________________________________________A legnagyobb TORRENT keresÅ napi 25000 Ãj letÃltÃs - www.warez.hu
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/