Sign in to follow this  
Followers 0
Akton

My problem with WinWaitActive in new autoit

8 posts in this topic

Hi,

I was using version 3.2.8.1 - and thought that perhaps i should upgrade to 3.3.0.0.

I got the zip version, so i could check out scripts before committing, and I'm suddenly seeing a problem with WinWaitActive

In 3.2.8.1 it returns true as soon as the window appears and goes active, but in 3.3.0.0 it returns 0 always.

What could I have overlooked? I saw something about all strings now being unicode, could that be it? (Not that I actually understand the difference between the unicode and ascii in this context)

I never changed the default match mode, so that should still be "Matches partial titles from the start" right?

Share this post


Link to post
Share on other sites



This is to vague. Post a replication script showing your issue.

Jos

Seems either the syntax changed or you can't have [title] and [class] at the same time, one or the other is fine. Both fails.

if WinWaitActive("[TITLE:name][CLASS:Afx:400000:3:10011:0:0]", "",20)=0 then
        MsgBox(0,"","Failed")
endif

Share this post


Link to post
Share on other sites

Have you checked the helpfile?

It contains all information about release chnages and the proper syntax:

WinWaitActive("[TITLE:My Window; CLASS:My Class; INSTANCE:2]", "")


Visit the SciTE4AutoIt3 Download page for the latest versions  - Beta files                                How to post scriptsource        Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites

Have you checked the helpfile?

Yes, then I came here.

Share this post


Link to post
Share on other sites

Yes, then I came here.

Guess the one I should have extrapolated from was: "Fixed #562: Specifying the TITLE property caused all other properties to be lost "

Share this post


Link to post
Share on other sites

Guess the one I should have extrapolated from was: "Fixed #562: Specifying the TITLE property caused all other properties to be lost "

The proper syntax is clearly listed in the Helpfile ... agree? (That is what I quoted in my reply)

Jos


Visit the SciTE4AutoIt3 Download page for the latest versions  - Beta files                                How to post scriptsource        Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites

Sure, but since it has always been working I didn't think there was something wrong there and had syntax blindess. So quoting didn't really help as much as "your syntax is wrong" would have.

But this answers my questions.

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  
Followers 0