Sign in to follow this  
Followers 0
Poilu

Answering The Security Warnings On .asp Page...

2 posts in this topic

I am a system administrator for an insurance agency. I have been playing with AutoIt now for a couple of weeks, and I love it. It has really helped me automate my PC installations.

There is one thing I can't figure out how to do:

We need to load a bunch of ActiveX controls in order to make our insurance management software to work. In order to load these, we load an .asp page that loads them for us. What I want to do is call the page, which will load the controls, and then have the script answer the Security Warning dialog boxes, and then finally close the page.

What is currently happening is that I get the page - it starts installing the controls, and then a big fat nothing. The Security Warning dialog box is not answered. Maybe RunWait isn't the right command to start the page. What am I doing wrong?

; start the .asp page that loads ActiveX controls

RunWait("C:\Program Files\Internet Explorer\iexplore.exe http://ntsagitta/sagitta/active/loadctls_outlook.asp")

WinWaitActive("Security Warning","Asynchtree")

Send("!a"); Always

Send("!y"); Yes

WinWaitActive("Security Warning","Microsoft Internet Transfer")

Send("!a")

Send("!y")

; and so forth...

Share this post


Link to post
Share on other sites



Yep, Run works. Now . Now that Larry the genius tells to run it. Uh uh. Plain ol' dumb Run.

I swear I tried to that before and it didn't work! :whistle:

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