Awoken is a simple solution to prevent your Windows computer from entering sleep mode by keeping it awake and simulating user activity. The program consists of two scripts: a batch script to set up the environment and an executable that prevents sleep while simulating activity.
Before running the scripts, ensure your system meets the following requirements:
Make sure that Python 3.x is installed on your system. You can download it from the official website:
The Python script uses the pyautogui
library to simulate mouse movements. To install it, run the following command:
pip install pyautogui
You may need administrator privileges to execute certain commands, especially when modifying system settings like power configurations. Ensure you run the scripts with administrative rights if needed.
This project contains two main files:
prerequisite.bat
: A batch script to set up the necessary environment, disable sleep settings, and run the Python script.
awoken.exe
: An executable prevents the system from going to sleep and simulates activity.
Create the Folder for Scripts First, create a folder where the scripts will reside. You can use the batch script for this.
The folder will be created at C:\ProgramData\Awoken. This folder is where both scripts will be stored.
Download or Copy the Scripts
Copy both prerequisite.bat
and awoken.exe
into the folder C:\ProgramData\Awoken.
Install the Python Libraries Open a terminal (Command Prompt or PowerShell) and install the necessary Python library (pyautogui) by running:
pip install pyautogui
- Run the Batch File Right-click on the prerequisite.bat file and select Run as Administrator. This will initiate the following steps:
- It will check if the folder C:\ProgramData\Awoken exists and create it if necessary.
- It will disable the sleep and screen timeout settings.
- It will start the Python script (awoken.exe) that will prevent the system from going to sleep and simulate user activity.
Follow the Prompts
The batch script will prompt you to press Enter after each section. Press Enter to proceed to the next section:
- Checking/creating the folder.
- Disabling sleep settings.
- Running the Executable.
After the batch script has run, the executable will continue running in the background:
- Prevent Sleep: The executable uses the Windows API to prevent the system from entering sleep mode.
- Simulate Activity: Every 30 seconds, the executable simulates mouse movement to keep the system active and prevent idle timeouts.
- To stop the executable, simply terminate the awoken.exe process from the Task Manager.