The Never-Sleeping Mouse: A Python Script to Keep Your Teams Status Active
For learning purpose i will share a Python code which can Keep your Google Meet or Microsoft teams status always active even when the system is Idle.
Below code can move your mouse periodically so that your Teams & Meet status shows active even when you are not there on the system. Here is the code:
import pyautogui
import time
import random
def move_mouse():
x, y = pyautogui.size()
pyautogui.moveTo(random.randint(0, x), random.randint(0, y))
while True:
move_mouse()
time.sleep(60)
This code uses the pyautogui
module to move the mouse pointer to a random position on the screen every 60 seconds. You can adjust the time interval to your liking.
To use this code, you will need to install the pyautogui
module. You can do this by running the following command in your terminal:
pip install pyautogui
Once the module is installed, you can save the code above as a .py
file and run it by typing the following command in your terminal:
python mouse_mover.py
This code will keep your mouse moving every 60 seconds, which will keep your Teams status active even when you are not there on the system.
Please note that this code is for educational purposes only. Using this code to avoid work or other responsibilities is not recommended.
Comments (0)
Post a Comment
Cancel