Hi all
I am not a programmer/scripter - I am just a mac user that performs a daily connection procedure which I think can be very easily scripted.
This is my internet procedure which I need a script for:
1- Launch ‘Vodafone Connect’ application (this connects my HSDPA USB modem to 3G mobile network)
2- After about 7 seconds the 3G network is found and then I have to click the “Activate” button (which is greyed out, until network is available)
3- I then have to Authenticate (enter username and password)
4- Another dialog box pops up (which says, network activated & ready to go online) and I have to click OK.
5- I then have to launch ‘Internet Connection’ application and click ‘connect’
that’s it!
The short version is:
Launch App - Click Activate button - Authenticate - Click OK button - Launch App - Click connect button
I have tried doing it myself but can get much further than opening the first app.
Any help will be hugely appreciated.
TIA
Marco
Model: iMac G5
Browser: Safari 419.3
Operating System: Mac OS X (10.4)
hi marco
this is a complete shot in the dark, cause i don’t have you apps but something along these lines is how you should be going i guess:)
i assume that vodafone connect isn’t scriptable so this way is called gui scripting and it can be a bit problematic ,
feel free to add more delays etc… where needed to fine tune.
apologies for working blind on this i can’t test!
see how you get on.
tell app "Vodafone Connect" to activate
tell application "System Events"
tell process "Vodafone Connect"
set frontmost to true
delay 10 -- it takes 7 secs but 10 to make sure
keystroke tab --to highlight first field if not highlited already but might not work
keystroke "username"
keystroke tab
keystroke "password"
keystroke return
delay 1
keystroke return
tell app "internet connect" to activate
end tell
end tell
thanks pidge1
I’ll give it a try on my machine at home this evening.
Will keep you posted on my progress tomorrow -
Marco
Hi Pidge1
I made a few minor tweaks to your script, but I still can’t get the Authentication to work.
The actual Authenticate Dialog box does not get selected, is there a way to somehow select it first or make it active, then try the
keystroke tab
keystroke “username”
etc
tell app "Vodafone Connect" to activate
tell application "System Events"
tell process "Vodafone Connect"
set frontmost to true
delay 10 -- it takes 7 secs but 10 to make sure
keystroke return
keystroke tab --to highlight first field if not highlited already but might not work
keystroke "username"
keystroke tab
keystroke "password"
keystroke return
delay 1
keystroke return
tell app "internet connect" to activate
end tell
end tell
Thanks
Marco