Jump to content

Recommended Posts

Posted

I know that when for example WinWait("[Class:TMainWindow]") Would work, but how do I do it if the window spy said that the class is #32770, WinWait("[Class:#32770]") doesn't seem to work. :S I know this is a noob question.

Posted

I know that when for example WinWait("[Class:TMainWindow]") Would work, but how do I do it if the window spy said that the class is #32770, WinWait("[Class:#32770]") doesn't seem to work. :S I know this is a noob question.

I'm curious what you mean by "doesn't seem to work"? Can you post a short demo script that fails?

The "[Class:#32770]" string is one of the most common dialog window classes and works fine. The problem is there are so many different #32770 windows that it's not specific enough. You may be getting matches to other windows, causing unreliable results.

You might try this:

#include <Array.au3>

$avWinList = WinList("[Class:#32770]")
_ArrayDisplay($avWinList, "#32770")

:)

Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law

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
×
×
  • Create New...