hesautoit Posted January 25, 2008 Share Posted January 25, 2008 (edited) hi,need help.pls take a look at the pic. both the window have the same title.. so how do i choose the top window?thanks in advance.CODEWinWaitActive("Installer Language")Send("{ENTER}")WinWaitActive("AxCrypt - Encrypt/Compress/Edit")Send("!a")WinWaitActive("AxCrypt - Encrypt/Compress/Edit")Send("{TAB}")Send("{DOWN}")Send("{DOWN}")SEND("!n")WinWaitActive("AxCrypt - Encrypt/Compress/Edit")Send("!n")WinWaitActive("AxCrypt - Encrypt/Compress/Edit", "&Install")Send("!i")WinWait("AxCrypt - Encrypt/Compress/Edit") ;the image shows here. same title.Send("!n")WinWait("AxCrypt - Encrypt/Compress/Edit") Send("!y")WinWaitActive("AxCrypt - Encrypt/Compress/Edit")Send("!n")WinWaitActive("AxCrypt - Encrypt/Compress/Edit")Send("{SPACE}")Send("!f") Edited January 25, 2008 by hesautoit Link to comment Share on other sites More sharing options...
PsaltyDS Posted January 25, 2008 Share Posted January 25, 2008 (edited) hi,need help.pls take a look at the pic. both the window have the same title.. so how do i choose the top window?thanks in advance.You can add text to make it more specific: WinWaitActive("Your Window Title", "Some window text")Since you are looking at it in AU3Info already, is the CLASS the same? Edited January 25, 2008 by PsaltyDS 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 Link to comment Share on other sites More sharing options...
slayerz Posted January 25, 2008 Share Posted January 25, 2008 I think using class is more effective..I always use it but sometimes, they had the same class...so, u need to make it more specific AUTOIT[sup] I'm lovin' it![/sup] Link to comment Share on other sites More sharing options...
hesautoit Posted January 25, 2008 Author Share Posted January 25, 2008 can direct me some link or samples to learn class? no clue wad is it.. hhaahaa.. thanks. Link to comment Share on other sites More sharing options...
hesautoit Posted January 25, 2008 Author Share Posted January 25, 2008 I think using class is more effective..I always use it but sometimes, they had the same class...so, u need to make it more specificif they have a same class, wad do u look out for? Link to comment Share on other sites More sharing options...
BrettF Posted January 25, 2008 Share Posted January 25, 2008 The class, and the instance. look for them or ClassNN... Vist my blog!UDFs: Opens The Default Mail Client | _LoginBox | Convert Reg to AU3 | BASS.au3 (BASS.dll) (Includes various BASS Libraries) | MultiLang.au3 (Multi-Language GUIs!)Example Scripts: Computer Info Telnet Server | "Secure" HTTP Server (Based on Manadar's Server)Software: AAMP- Advanced AutoIt Media Player | WorldCam | AYTU - Youtube Uploader Tutorials: Learning to Script with AutoIt V3Projects (Hardware + AutoIt): ArduinoUseful Links: AutoIt 1-2-3 | The AutoIt Downloads Section: | SciTE4AutoIt3 Full Version! Link to comment Share on other sites More sharing options...
hesautoit Posted January 25, 2008 Author Share Posted January 25, 2008 The class, and the instance. look for them or ClassNN... thanks but how do u put them together?WinWait("AxCrypt - Encrypt/Compress/Edit", "", "Class", "Instance") ??like tat? Link to comment Share on other sites More sharing options...
BrettF Posted January 25, 2008 Share Posted January 25, 2008 Helpfile is your friend... e.g. Wait for the 2nd instance of a window with title "My Window" and classname "My Class" WinWaitActive("[TITLE:My Window; CLASS:My Class; INSTANCE:2]", "") Vist my blog!UDFs: Opens The Default Mail Client | _LoginBox | Convert Reg to AU3 | BASS.au3 (BASS.dll) (Includes various BASS Libraries) | MultiLang.au3 (Multi-Language GUIs!)Example Scripts: Computer Info Telnet Server | "Secure" HTTP Server (Based on Manadar's Server)Software: AAMP- Advanced AutoIt Media Player | WorldCam | AYTU - Youtube Uploader Tutorials: Learning to Script with AutoIt V3Projects (Hardware + AutoIt): ArduinoUseful Links: AutoIt 1-2-3 | The AutoIt Downloads Section: | SciTE4AutoIt3 Full Version! Link to comment Share on other sites More sharing options...
Fossil Rock Posted January 25, 2008 Share Posted January 25, 2008 Helpfile is your friend... e.g. Wait for the 2nd instance of a window with title "My Window" and classname "My Class" WinWaitActive("[TITLE:My Window; CLASS:My Class; INSTANCE:2]", "")What's the point in having a help file if no one reads it? Agreement is not necessary - thinking for one's self is! Link to comment Share on other sites More sharing options...
BrettF Posted January 25, 2008 Share Posted January 25, 2008 Its there for the unmoronics (a person that is not a moron ) who read it. Vist my blog!UDFs: Opens The Default Mail Client | _LoginBox | Convert Reg to AU3 | BASS.au3 (BASS.dll) (Includes various BASS Libraries) | MultiLang.au3 (Multi-Language GUIs!)Example Scripts: Computer Info Telnet Server | "Secure" HTTP Server (Based on Manadar's Server)Software: AAMP- Advanced AutoIt Media Player | WorldCam | AYTU - Youtube Uploader Tutorials: Learning to Script with AutoIt V3Projects (Hardware + AutoIt): ArduinoUseful Links: AutoIt 1-2-3 | The AutoIt Downloads Section: | SciTE4AutoIt3 Full Version! Link to comment Share on other sites More sharing options...
hesautoit Posted January 25, 2008 Author Share Posted January 25, 2008 Its there for the unmoronics (a person that is not a moron ) who read it.haaahhaa.. thanks i go read it next time =) Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now