Message-Id: <200801031452.m03Eq5Ai017006@delorie.com> X-Recipient: archive-cygwin AT delorie DOT com X-Spam-Check-By: sourceware.org Content-Disposition: inline Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 From: =?UTF-8?B?VEFKVEhZIFRhbcOhcw==?= To: cygwin AT cygwin DOT com Subject: PID -> WindowHandle (stop/restart processes) Reply-To: tajthy AT mailbox DOT hu X-Origin: 217.79.137.254 Date: Thu, 03 Jan 2008 14:09:11 +0100 X-Uidl: 119936575127385 AT mailboxhu X-Mailer: VizslaMail 4.11 X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id m03Eq5Ai017006 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/) 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/