DEV Community

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

Posted on

1

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

Heroku

This site is built on Heroku

Join the ranks of developers at Salesforce, Airbase, DEV, and more who deploy their mission critical applications on Heroku. Sign up today and launch your first app!

Get Started

Top comments (0)

Postmark Image

Speedy emails, satisfied customers

Are delayed transactional emails costing you user satisfaction? Postmark delivers your emails almost instantly, keeping your customers happy and connected.

Sign up

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay