This python script is going to make your mouse move automatically around a little box in the screen, the purpose of this is to make your pc always awake and make you look not AFK to other programs/websites who tries to control that.
This script is mainly invented for Windows/Linux machines since Mac already has an app called Amphetamine who does this work greatly. In any case anyone can use this script 😃
There are 2 version of the program:
- Amphetamine
- NightOWL
They all do the same job with small differences, if in doubt I suggest you to use Amphetamine 🚀
You will need the pyautogui library and the latest python version installed on you machine
- Install Python
- Install the pyautogui library by running this command in a terminal
python -m pip install pyautogui
- Clone this repo or the specific program you need wherever you want
- In the terminal, move to the folder where you downloaded this repo
- Run the program with the command
python Amphetamine.py
(or the program you prefer)
Note Eventually sobstitute the python keyword with the path where is python.exe installed, e.g. (in a Windows machine) C:\Users\admin\AppData\Local\Programs\Python\Python310\python.exe -m pip install pyautogui
You can always kill the script with these 3 alternatives:
- Moving the pointer on the UPPER-RIGHT corner, it will panic stop pyautogui
- Do
Ctrl+Tab
to find the console window and thenCtrl+C
to close the script - Spam
Alt+F4