Re: IS there any examples about title-match-mode-4 on "regexp=REGEXP"
"valery_vi" <[email protected]>
| Newsgroups | gmane.comp.windows.autoit.user |
|---|---|
| Message-ID | <[email protected]> |
You are lucky man.
But there is method to get Title and Text of window founded in this
exotic (by RegExp) case:
Opt("WinTitleMatchMode", 4)
if WinExists('regexp=S(.*?)', '') then
$hWnd = WinGetHandle('regexp=S(.*?)', '')
Msgbox(0,'', 'Title = ' & WinGetTitle ($hWnd) & ' Text = ' &
WinGetText ($hWnd))
else
Msgbox(0,'', 'is not')
endif
--- In [email protected], p0etb0x <no_reply@...> wrote:
>
> --- In [email protected], "valery_vi" <shehrer1@> wrote:
> >
> >
> > Opt("WinTitleMatchMode", 4)
> >
> > if WinExists('regexp=S(.*?)', '') then
> > Msgbox(0,'', 'win exists')
> > else
> > Msgbox(0,'', 'is not')
> > endif
> >
> > --- In [email protected], p0etb0x <no_reply@> wrote:
> > >
> > > thank you.
> > >
> >
> thank you very much.It seems that "regexp" cannot be used in
Winclose
> ()
> To my surprise,I changed the replaced the letter 'S' in your code
> with any other single letter,the result is the same "win exists".
>