DEV Community

Cover image for Python to ease your life !!
Ansari
Ansari

Posted on

Python to ease your life !!

Many people are still out there working from home, there is no denying that you never procrastinate while working from home. Surely you will do and mostly you just move the mouse pointer just for the sake of keeping alive of your work status.

Some people do them manually and I wondered whether there are any device for this particular job and I also doubted who's gonna buy these types of devices. So I did a random search amazon and came across these surprising results.

Image1 description

Image2 description

Image3 description

I was shocked to see that lot of people are really buying these devices when you can do it by simply writing few lines of code and running it.

So here is a simple guide for people to make their own mouse jiggler.

Requirements :

  1. Install python3 — https://www.python.org/downloads/
  2. Install pip — use this doc https://pip.pypa.io/en/stable/installation/
  3. After that install the package pyautoguipip install pyautogui

That’s it, this will do the job

Open any text editor of your choice and just copy paste the code and save as jiggler.py

Image4 description

Now run python jiggler.py

This will automatically move your mouse every 3 second.

You can tweak and play with the code.

If you like this article consider following.

Twitter Handle — AmSorry

Top comments (0)