Sign in to follow this  
Followers 0
ioliver

Scriping Webex Player Installation

9 posts in this topic

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

Share this post


Link to post
Share on other sites



maybe replace this

Sleep(500)

WinWait("Browser List")

with

While WinWait("Browser List") <> 1

Sleep(10)

WEnd

Just an idea

8)


NEWHeader1.png

Share this post


Link to post
Share on other sites

Thanks for the suggestions, I'm fairly sure it is a child window. Here's my new code:

CODE
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(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

Share this post


Link to post
Share on other sites

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)


NEWHeader1.png

Share this post


Link to post
Share on other sites

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)

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

Share this post


Link to post
Share on other sites

#7 ·  Posted (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 by Valuater

NEWHeader1.png

Share this post


Link to post
Share on other sites

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")

Visit the SciTE4AutoIt3 Download page for the latest versions        Beta files                                                          Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites

#9 ·  Posted (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 by ioliver

"Blessed be the name of the Lord" - Job 1:21Check out Search IMF

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