delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2008/01/03/17:31:18

Message-Id: <200801032231.m03MV3wk015610@delorie.com>
X-Recipient: archive-cygwin AT delorie DOT com
X-Spam-Check-By: sourceware.org
MIME-Version: 1.0
From: =?UTF-8?B?VEFKVEhZIFRhbcOhcw==?= <tajthy AT mailbox DOT hu>
To: "'Dave Korn'" <dave DOT korn AT artimi DOT com>
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: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id m03MV3wk015610

Hi,

2008. 01. 03. cs. 17:03, "Dave Korn" <dave DOT korn AT artimi DOT com> í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/


- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019