|Mar 21, 2008, 10:26 PM||#1|
New to Programming - is this possible?
Hi all! I'm looking for a script either through Automator or Apple Script - but I'm not sure if the following script is too complex:
Essentially, my wireless connection requires me to enter a numeric password (lets say its 665544) to get on the internet. When I launch Safari, it redirects me to a welcome page. On the page I click a link that says "Enter password" and then enter the password in a textbox.
So, in English terms, I want to run the following:
Click "Enter Password"
Click "Enter" (or just press return)
Ideally, I'd like to run this at start-up, but I'm fairly certain I can just throw it into "Log-in items."
Is it possible? And, if its not too difficult, could someone write it for me?
(I'm running 10.5.2 if that matters)
Thanks so much!
|Mar 22, 2008, 05:14 AM||#2|
If your router is using a simple post for the password screen, then you will be able to use Automator. All you need to do is set up an action that passes an url to Safari which is the same as the one generated from clicking enter on the router's password screen. For example it might be something like this:- http://192.168.2.1/login?password=665544. Have a look at the html source and look for a form element to see what attribute names it uses.
Hope this helps!
b e n
|Mar 22, 2008, 09:20 AM||#3|
As lazydog said, it's really all in how it works. If you can figure out what GET/POST string is sent, it should be trivial. You should even be able to make a shell script that runs on startup that's a one liner, such as:
|Thread Tools||Search this Thread|
|thread||Thread Starter||Forum||Replies||Last Post|
|Mac programming should be more like iOS programming.||moonman239||Mac Programming||13||Feb 17, 2014 01:37 PM|
|Help with C programming.||Meitou||Mac Programming||2||Sep 21, 2012 01:36 PM|
|C++ programming||jmfel1926||Mac Programming||4||Sep 14, 2012 07:21 PM|
All times are GMT -5. The time now is 12:43 PM.