Message-Id: <200801032347.m03NkrXC024218@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: "'Dave Korn'" Subject: RE: PID -> WindowHandle (stop/restart processes) Reply-To: tajthy AT mailbox DOT hu X-Origin: 84.2.208.205 Date: Thu, 03 Jan 2008 22:56:10 +0100 Cc: cygwin AT cygwin DOT com X-Uidl: 119939737018455 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 m03NkrXC024218 Hi, 2008. 01. 03. cs. 17:03, "Dave Korn" írta: > I'd like to stop your mailserver going crazy and sending this post again and again and again! Is your sysadmin back from the christmas holiday yet? Sorry for that! This is a free webmail app... I have no infulence on it. :-( > Are you sure you're using a cygwin build of mencoder and not a win32/mingw > build? You are right. It is a mingw build. It seems I'm too lame for that. I tried to compile it from source but I got a lotta errors. I gave up... :-( > Signals *ought* to work between two cygwin apps, and if they don't it's > a bug that could be fixed. They certainly wouldn't be expected to work betwen a > cygwin and a win32 app. You are right. I'll try to compile it under cygwin... >> So as a workaround I installed Win32::GuiTest perl module >> which implements SendKeys function which can send a ctrl+S/ctrl+Q to the ... > I googled "HWND from pid" and found this advice: >http://mail.python.org/pipermail/python-list/2003-March/195226.html ... > This isn't the PID you're looking for I put a perl code using Win32::GuiTest into .bash_profile which gets the handle of the active window. This is written to a file with the PID. > If EnumWindows isn't convenient (for example if you don't want to or can't > conveniently use callbacks), you can write a loop that calls FindWindow(0, 0) at > the start to get the first window and uses GetWindow(old_hwnd, GW_HWNDNEXT) to > advance to the next one. In Win32::GuiTest there is a FindWindowLike function which searches thru the main windows and match against a given pattern. Thank You for Your help!!! Good byte! 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/