First time poster, so anyway I've been mucking around with some macros to try and download a VPN client and install it. My script goes all the way and download loadoads the vpn client. It starts to run the EXE install it then I get stuck on a UAC Yes No question.
So I did some research and allot of forums are saying that you dont have permissions to run within UAC window unless you do a run as. Any way I think my issue is with focus not permission as I do a run as administrator or a local admin and i still cannot focus the UAC window.
Ive tried set focus
Wait window open
but nothing seems to work.
Can someone please give me an exmple how they would Wait until the window is open called User Account Control.
Then set its focus. Then Submit the ALT + Y to the User Account Control Box to select YES.
I spent about 4 hrs on it over the weekend and thru my hands up so your help would greatley be appreciated.
Code: Select all
Label>InstallWG
Message>now installing
wait>2
RunProgram>C:\Program Files (x86)\Internet Explorer\iexplore.exe https://mail.****:943/sslvpn.html
wait>5
IETagEventByAttrib>{"https://mail.***corp.com.au:943/sslvpn.html"},A,innertext=Continue to this website (not recommended).,click,
wait>4
IETagEventByAttrib>{"https://mail.***corp.com.au:943/sslvpn_logon.shtml"},INPUT,name=fw_username,,*****
wait>0.5
IETagEventByAttrib>{"https://mail.***.com.au:943/sslvpn_logon.shtml"},INPUT,name=fw_password,,******
wait>0.5
Press Tab *2
Wait>0.25
Press Enter
wait>5
SetFocus>User Authentication - Internet Explorer
CapsOff
wait>3
Press Tab
wait>1
Press Tab
wait>1
Press Tab
wait>1
Press Tab
wait>1
Press Tab
wait>1
Press Tab
wait>1
Press Tab
wait>1
Press Tab
wait>1
Press Tab
wait>1
Press Enter
wait>10
SetFocus>
CapsOff
Press ALT
Send>r
Wait>0.265
Release ALT
//put an if windows open hear later on
WaitWindowOpen>User Account Control
wait>0.5
Message>Script Does not have access to UAC so Press Yes
WaitWindowClosed>User Account Control
SetFocus>Setup - Mobile VPN with SSL client
Press Enter
Wait>0.5
Send>n
Wait>0.5
Release ALT