This repository contains Python scripts to manage Chrome profiles and play MP3 files automatically on Windows startup.
Usage
-
Install Python if not already installed. You can download it from Python's official website.
-
Open the
getProfiles.pyscript in a text editor and update theCHROME_USER_DATA_DIRvariable to your Chrome user data directory. -
Run the script using the following command in your command prompt or terminal:
This script will display a list of Chrome profiles and their corresponding names as seen in the Chrome UI.
Usage
-
Open the
start.pyscript in a text editor. -
Update the
profileslist with the names of the Chrome profiles you want to launch. -
Run the script using the following command:
This script will launch Chrome with the specified profiles.
Usage
-
Install the
playsoundmodule by running the following command: -
Place your MP3 files in the same directory as
mechStart.py. -
Open the
mechStart.pyscript in a text editor. -
Update the
mp3_fileslist with the names of the MP3 files you want to play on startup. -
Run the script using the following command:
This script will play the specified MP3 files.
To run any of the above scripts on Windows startup:
-
Create a batch file (e.g.,
startup_play_mp3.bat) in the same directory as your Python script. -
Open the batch file in a text editor and add the following lines, replacing
"path_to_script_directory"with the full path to the directory containing your Python script:
For example, to run mechStart.py, replace script_name.py with mechStart.py.
-
Save the batch file.
-
Press
Win + Rto open the Run dialog, typeshell:startup, and press Enter. This opens the Startup folder. -
Move the batch file (
startup_play_mp3.bat) into the Startup folder.
Now, when you log in to your Windows account, the batch file will run automatically, executing the associated Python script.
Feel free to customize the scripts and batch files to suit your specific needs.