Alright, looks like I've got something worked up. It's nothing amazing just yet, but I will expand and refine as necessary.
It is my ultimate goal to make a utility which can detect a connection, play an alarm to indicate connected to the internet, maintain a connection, and when a connection is lost for a specified amount of time, play a connection lost alarm.
Please test this and let me know if it works. Please do provide as much feedback as possible.
Connection Alarm by Kamel (written in python, transferred to exe via py2exe)
Usage: connected_alarm.exe [host] [port]
Default host is www.google.com, default port is 80.
A host can be an IP address or a DNS.
*Note: usage of this program may require Microsoft Visual C++ 2008 redistributable be installed on the user's computer.
v0.1 Beta:
*Attempts to make a connection to a specified host and port (default www.google.com port 80), if a connection is successful, a 2600hz tone is played for 500ms.
*If no connection is made, it will keep retrying until a connection is made or the program is terminated.
Future:
*Ability to specify a sound file to play and/or specify which tone frequency/length is desired.
*Ability to check multiple hosts for connectivity
*Ability to run constantly, and be alerted when internet connectivity isn't present and is.
*Ability to run a system command upon connection and/or disconnection (for instance, a batch file)