Sign in to follow this  
Followers 0
noab

WinWaitActive never comes back

3 posts in this topic

Hi,

I tryed AutoIt it for the 1. time but some of the demos do not work.

Reason seems to be the WinWaitActive() function, it does not come back.

in the notepad1.au3 demo

29:

WinWaitActive("[CLASS:Notepad]")

-> works

45:

WinWaitActive("Notepad")

-> doesn't come back

(System German Windows 7)

has it to do with the language?

thanks

noab

Share this post


Link to post
Share on other sites



(System German Windows 7)

has it to do with the language?

Yes. The first example looks for a window ofthe type notepad uses, while the second example looks for a window with a title starting with "notepad".

I know the title of notepad is localised, so I assume it's something like Notizblok in german. While the type of window is still correct, the title is different.

I try not to rely on win titles, but instead check anything I can be relatively sure of to be the same on different PC's.

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