Skip to content

This script will move the mouse cursor by 1 pixel every 4 minutes to simulate activity.

License

Notifications You must be signed in to change notification settings

virtualox/StayActive.ps1

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 

Repository files navigation

StayActive PowerShell Script

Disclaimer: Using a script that simulates activity to avoid being marked as "away" or "AFK" on your computer may be against the policies of your organization or the services you're using. It is important to adhere to the rules and guidelines set by your employer or the platform you're using.

If you are looking to prevent your computer from entering sleep mode or locking the screen due to inactivity, you can simply adjust the power and sleep settings in Windows.

However, if you still want a simple PowerShell script to move the mouse cursor periodically, here it is. Please use it responsibly and only for legitimate purposes.

How to Use

  1. Open a text editor, such as Notepad.
  2. Copy and paste the provided code into the text editor.
  3. Save the file with the ".ps1" extension, for example, "StayActive.ps1".
  4. Right-click on the saved file and select "Run with PowerShell".

The script will move the mouse cursor by 1 pixel every 4 minutes to simulate activity. To stop the script, close the PowerShell window or press Ctrl+C in the PowerShell console.

Reminder

Use this script responsibly and within the boundaries of the rules set by your organization or the services you are using.