Sign in to follow this  
Followers 0
lbrtdy

Winwait ("[Class:]") noob question

3 posts in this topic

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.

Share this post


Link to post
Share on other sites



search for this in the help file: Window Titles and Text (Advanced)

Window Titles and Text (Advanced)


[font="Verdana"] [size="2"]"[/size][/font]Failure is not an option -- it comes packaged with Windows"[font="Verdana"][size="2"] Gecko Web Browser[/size][/font][font="Verdana"][size="2"], [/size][/font][font="Verdana"][size="2"]Yahtzee![/size][/font][font="Verdana"][size="2"], Toolbar Launcher (like RocketDock)[/size][/font][font="Verdana"][size="2"]Internet Blocker, Simple Calculator, Local Weather, Easy GDI+ GUI [/size][/font][font="Verdana"][size="2"]Triangle Solver, TCP File Transfer, [/size][/font][font="Verdana"][size="2"]Valuater's Autoit Wrappers[/size][/font][font="Verdana"][size="3"][size="2"][size="2"]OOP In AutoIt[/size][/size][/size][/font][font="Verdana"][size="2"][size="1"]Using Windows XP SP3, 1GB RAM, AMD Athlon Processor @ 2.1 GHzCheck me out at gadgets.freehostrocket.com[/size][/size][/font]

Share this post


Link to post
Share on other sites

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

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