ioliver Posted May 17, 2006 Share Posted May 17, 2006 Here's what I have: AutoItSetOption("WinTitleMatchMode", 2) AutoItSetOption("WinTextMatchMode", 2) Run("S:\WebEx_Player\atplay.exe") WinWait("File Open - Security Warning") WinActivate("File Open - Security Warning") Send("{TAB}") Send("{TAB}") Send("{TAB}") Send("{ENTER}") Sleep(500) WinWait("Browser List") WinActivate("Browser List") Send("{TAB}") Send("{ENTER}") WinWait("Question") WinActivate("Question") Send("{TAB}") Send("{ENTER}") WinWait("WebEx Player") WinActivate("WebEx Player") Sleep(500) Send("{ENTER}") I'm running into trouble with the WinWait("Browser List"). My script never seems to see this. I've used the AutoIt Window tool and I have the Window Name correct. Anyone have other suggestions of what I should look into? Thanks in advance, Ian "Blessed be the name of the Lord" - Job 1:21Check out Search IMF Link to comment Share on other sites More sharing options...
Valuater Posted May 17, 2006 Share Posted May 17, 2006 maybe replace this Sleep(500) WinWait("Browser List") with While WinWait("Browser List") <> 1 Sleep(10) WEnd Just an idea 8) Link to comment Share on other sites More sharing options...
Developers Jos Posted May 17, 2006 Developers Share Posted May 17, 2006 maybe its a child window ? Try adding: Opt("WinSearchChildren", 1) SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
ioliver Posted May 17, 2006 Author Share Posted May 17, 2006 Thanks for the suggestions, I'm fairly sure it is a child window. Here's my new code: CODEAutoItSetOption("WinTitleMatchMode", 2) AutoItSetOption("WinTextMatchMode", 2) AutoItSetOption("WinSearchChildren", 1) Run("S:\WebEx_Player\atplay.exe") WinWait("File Open - Security Warning") WinActivate("File Open - Security Warning") Send("{TAB}") Send("{TAB}") Send("{TAB}") Send("{ENTER}") While WinWait("Browser List", "OK") <> 1 Sleep(100) WEnd Send("{TAB}") Send("{ENTER}") WinWait("Question") WinActivate("Question") Send("{TAB}") Send("{ENTER}") WinWait("WebEx Player") WinActivate("WebEx Player") Sleep(500) Send("{ENTER}") But it still doesn't seem to work. Is there a different way to interact with child windows? Thanks again, Ian "Blessed be the name of the Lord" - Job 1:21Check out Search IMF Link to comment Share on other sites More sharing options...
Valuater Posted May 17, 2006 Share Posted May 17, 2006 1 does the script end or keep running is it stuck in the while/loop waiting for the window "Browser List" to appear 2 or is it more like a message box... i noticed the "OK" and the next lines of send tab & enter 8) Link to comment Share on other sites More sharing options...
ioliver Posted May 17, 2006 Author Share Posted May 17, 2006 1does the script end or keep runningis it stuck in the while/loop waiting for the window "Browser List" to appear2or is it more like a message box... i noticed the "OK" and the next lines of send tab & enter8)1 - It's stuck in the loop trying to find "Brower List" "Blessed be the name of the Lord" - Job 1:21Check out Search IMF Link to comment Share on other sites More sharing options...
Valuater Posted May 17, 2006 Share Posted May 17, 2006 (edited) try this AutoItSetOption("WinTitleMatchMode", 2) AutoItSetOption("WinTextMatchMode", 2) AutoItSetOption("WinSearchChildren", 1) Run("S:\WebEx_Player\atplay.exe") WinWait("File Open - Security Warning") WinActivate("File Open - Security Warning") Send("{TAB}") Send("{TAB}") Send("{TAB}") Send("{ENTER}") ;While WinWait("Browser List", "OK") <> 1 Sleep(1000) ;WEnd Send("{TAB}") Send("{ENTER}") WinWait("Question") WinActivate("Question") Send("{TAB}") Send("{ENTER}") WinWait("WebEx Player") WinActivate("WebEx Player") Sleep(500) Send("{ENTER}") 8) Edited May 17, 2006 by Valuater Link to comment Share on other sites More sharing options...
Developers Jos Posted May 17, 2006 Developers Share Posted May 17, 2006 Add Opt("TrayIconDebug", 1) in your script to see were it gets stuck.. Just tried it and works fine when skipping the first winwait() AutoItSetOption("WinTitleMatchMode", 2) AutoItSetOption("WinTextMatchMode", 2) Opt("TrayIconDebug", 1) Run("c:\temp\atplay.exe") ;~ WinWait("File Open - Security Warning",1) ;~ WinActivate("File Open - Security Warning",1) ;~ Send("{TAB}") ;~ Send("{TAB}") ;~ Send("{TAB}") ;~ Send("{ENTER}") ;~ Sleep(500) WinWait("Browser List") WinActivate("Browser List") MsgBox(0,"Ok","Ok") SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
ioliver Posted May 17, 2006 Author Share Posted May 17, 2006 (edited) Thanks for all the help. I've got it figured out. The first part of the script was the problem...The WinWait("File Open - Security Warning")Windows doesn't bring up this Security Warning when AutoIt calls the setup file, only when I open it by double-clicking. So my script was waiting for "File Open - Security Warning" and never found it.Thanks again for all the help,Ian@JdeB, just re-read your post. You're right, that's the solution. Thanks again. Edited May 17, 2006 by ioliver "Blessed be the name of the Lord" - Job 1:21Check out Search IMF 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