Keep your mouse moving to avoid going away on Microsoft Teams

Photo by Ryan Putra on Unsplash


In the below code we are using the Robot java library to keep the mouse moving. We are generating random x and y values between 640 * 480 resolution and moving the mouse. we have added a minute delay between the each move, yes but you can always change according to your needs.

java -jar Keep-mouse-moving.jar



Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Abhijit Jadhav

Abhijit Jadhav


Full Stack Java Developer and AI Enthusiast loves to build scalable application with latest tech stack