Monday, September 19, 2022

Online status when working from home !! with Python Script

Run this program and your cursor will move regularly enough to keep your online status when working from home!



//install PIP, you need to type into the terminal

curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py
python get-pip.py

pip --version

// Is used to control the mouse and keyboard.

pip install pyautogui


//Code to move mouse every 2 second of sleep.. moveRel(x,y) -- move by pixel

import pyautogui;

import time;


while True:

    pyautogui.moveRel(0, 10)

    time.sleep(2)

No comments:

Post a Comment

Your feedback is always appreciated. I will try to reply to your queries as soon as time allows.Please don't spam,spam comments will be deleted upon reviews.