Jump to content
Sign in to follow this  
JohnBailey

WinWait Problem

Recommended Posts

JohnBailey

Why won't this work?

$wait = WinWaitActive("Activity Detail - Windows Internet Explorer" or "Account List - Windows Internet Explorer" ,"",5)
;do action
Edited by JohnBailey

A decision is a powerful thing

Share this post


Link to post
Share on other sites
Zedna

Opt('WinTitleMatchMode',2) 
$wait = WinWaitActive("Windows Internet Explorer" ,"",5)
;do actionoÝ÷ Øêì¢g¦¢·vö§qçkz±¥ú+Z)ÓÙ^jëh×6Opt('WinTitleMatchMode',4) 
$wait = WinWaitActive("regexp=?" ,"",5)
;do action

I'm not regexp expert so somebody else can be more specific at this...

Share this post


Link to post
Share on other sites
JohnBailey

Zenda what is a RegXP?

I'm not sure this will totally work though. I only need it to look for those two windows and if something else then it generates the proper self-diagnostics.

Edited by JohnBailey

A decision is a powerful thing

Share this post


Link to post
Share on other sites
Zedna

Zenda what is a RegXP?

I'm not sure this will totally work though. I only need it to look for those two windows and if something else then it generates the proper self-diagnostics.

Look into HelpFile.

There is special section about Title special definition (link from all WinWaitxxx functions).

REGEXP = regular expressions

In HelpFile is also Tutorial about Regular Expressions

Share this post


Link to post
Share on other sites
JohnBailey

Zedna, yeah I read through that ... I don't really understand. Consequently I'm going to do some research in the forums. If you know of any additional information, that would be much appreciated. Thanks :)

Edited by JohnBailey

A decision is a powerful thing

Share this post


Link to post
Share on other sites
Zedna

Zedna, yeah I read through that ... I don't really understand. Consequently I'm going to do some research in the forums. If you know of any additional information, that would be much appreciated. Thanks :)

I suggest to search in forum for examples of use these functions:

StringRegExp()

StringRegExpReplace()

Share this post


Link to post
Share on other sites
JohnBailey

Oh! Thanks. I didn't realize it was string based! That makes WAY more sense now!


A decision is a powerful thing

Share this post


Link to post
Share on other sites
Zedna

Oh! Thanks. I didn't realize it was string based! That makes WAY more sense now!

String regular expressions was made primarily for these two functions but in latest version of AutoIt it's possible to use them also in Winxxx functions with Opt('WinTitleMatchMode',4).

Share this post


Link to post
Share on other sites
JohnBailey

Zedna, Thanks for the explanation


A decision is a powerful thing

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×