Re: wingettitle with process?
"valery_vi" <[email protected]>
| Newsgroups | gmane.comp.windows.autoit.user |
|---|---|
| Message-ID | <[email protected]> |
Carsten,
I know about other simple thing:
; Get process Id (pid) from hWnd:
#include <GUIConstants.au3>
Run("Notepad.exe", "")
Sleep(1000)
Opt("WinTitleMatchMode", 4)
$hWnd = WinGetHandle('classname=Notepad')
;get pid from window handle
$pid = DllCall
("user32.dll", "int", "GetWindowThreadProcessId", "hwnd",
$hWnd, "int_ptr", 0)
If IsArray($pid) Then MsgBox(0,'','$pid = ' & $pid[2])
WinClose('classname=Notepad')
It's more useful, I think.
Valery
--- In [email protected], "Lüth, Carsten" <c.lueth@...>
wrote:
>
> Hello,
>
> is it possible to get the windowstitle if you only know the name of
the
> process ?
>
> e.g.:
> wingettitle (process = notepad.exe) ????
>
>
>
> Mit freundlichem Gruß / With kind regards
>
> Fielmann AG
>
> Carsten Lüth
> IT - Desktop Services
> Weidestraße 118a
> 22083 Hamburg
> Telefon: +49 - (0) 40 - 2 70 76 - 199
> mailto:c.lueth@... <mailto:c.lueth@...>
>
>
>
>
>
> [Non-text portions of this message have been removed]
>