This is a hint for all those poor people out there who still have dial up at home, like me. This isn't much of anything just a little something for those lazy people. Using a key editor, I suggest iKey), create a script like this:
tell application "internet connect" (connect)/(disconnect) end tellUsing iKey, set the key to launch this script to whatever you want -- I used the Command-F13. When pushed, it automatically connects to the internet for you. The only problem I have found is that it opens the application Internet Connect. If you're like me, and don't like a bunch of applications open in the dock that are pretty useless, it's kind of irritating. Maybe someone could find the command for the little phone thingy in the status bar. That way it wouldn't open anyhting.
Mac OS X Hints
http://hints.macworld.com/article.php?story=20030520153327585