Python script designed to automatically launch a set of programs when internet connectivity is detected. (for windows)
- Automatically launch programs when internet connectivity is available
- The script continuously checks for internet connectivity and will attempt to launch the programs as soon as connectivity is restored
-
Ensure you have Python 3.6 or higher installed on your system.
-
Install necessary Python libraries
-
Clone this repository:
git clone https://github.com/ExitedState/AutoStartProgram.git
-
CD to project directory:
cd AutoStartProgram
-
Configure the programs you want to launch in the code line 60-64. Here's an example:
os.environ['DISCORD_PATH'] = 'C:\\Users\\User\\AppData\\Local\\Discord\\Update.exe --processStart Discord.exe' approved_programs = { 'discord': os.environ['DISCORD_PATH'],}
-
Run
main.py
script:python ./main/main.py
The script will check for internet connectivity, and will launch the programs as soon as internet connectivity is detected.
This script was designed for Windows. Some features may not work on other OS.
You can create an executable for windows use pyinstaller
pyinstaller --onefile filename.py
and place inshell:startup