I made this program for my IGCSE exams
No external libraries is used
- It kills the process specified in the blocked_apps.txt
- Logs the program that has been killed into Focuser_log.csv
- Full the blocked_apps.txt or use the gui script to full it with the title name or the executable name of the application in it
- Use a #executable name or #title name to make it persistent through the session (the program will get killed even if it is removed from the wordlist)
python appblocker.py
python gui.py
- Type in the applications to be blocked in the textbox
- Click "Start Focuser" button
Using Nuitka
nuitka --onefile --windows-console-mode=disable --nofollow-imports --clean-cache=all --output-dir="exe" --remove-output .\src\appblocker.py
Using Pyinstaller
pyinstaller --onefile --noconsole --distpath "exe/" .\src\appblocker.py
reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Run" /v Appblocker /t REG_SZ /d "exe\appblocker.exe"
Recommended: Create a shortcut of appblocker.exe and place it in the startup folder
To open the startup folder
1. WIN + R
2. Type "shell:startup" and click enter
Note: if the commands or program didn't work. Try giving the complete file path and put the folder into an exclusion file
- Make a better GUI
- Create a build script with the command to place it in the startup
Make the files more organized- Make an option to allow users to use custom scripts for different purposes (some applications while studying or some while working)