DEV Community

Rakgowda
Rakgowda

Posted on

How to keep your Microsoft team online even if you're not using it !!!

Hello world, this is my first blog that I’m writing. In this blog, I will explain 2 ways to set Microsoft team application online even if you're not using it.
The key here is we need to move the mouse🖱️ because the Microsoft team application detects the mouse movement to show online or away.
Number one:-
Using external mouse
Requirement: — External mouse and any glass surface like watch or glass cup.
Connect the external mouse to our laptop.
Place mouse laser sensor on top of the watch ⌚.

3.That’s it. It will keep your Microsoft team application online.
Number Two:-
Requirement:- Download jar and bat file from the below link.
https://drive.google.com/drive/folders/1VaN95wsmUut_qgh67KrA5BFMjy0xsK8o?usp=sharing
Create a folder on your laptop as mouseJiggler.
Place the downloaded file into the folder.
Run mouseJigger.bat file.
That’s it. It will keep your Microsoft team application online.
Wonder how it works???
It’s a simple java code that will keep your mouse moving every 10 seconds. The source code for the above jar is available below. Can you play around with it.

import java.awt.Robot;
import java.util.Random;
public class Mouse {
// WAIT -> interval for mouse movement.
public static final int WAIT = 10000;
// Maximum X position mouse can move
public static final int Y = 400;
// Maximum Y position mouse can move
public static final int X = 400;
public static void main(String… args) throws Exception {
Robot robot = new Robot();
Random random = new Random();
while (true) {
// move mouse to random x and y position
int x = random.nextInt(X);
int y = random.nextInt(Y);
System.out.println(“Mouse move to x=”+x+” and y=”+y+” position.”);
robot.mouseMove(x,y);
Thread.sleep(WAIT);
}
}
}

Jar file moves the mouse every 10 seconds. You can increase the timing from 10 seconds to 1 minute to save energy ⚡.
That’s it, hope you like this blog 😊.

Top comments (1)

Collapse
 
riaand55 profile image
riaand55

Just use MouseJiggle. It cycles through your screens when away and keeps your Screens, Teams, Skype, Outlook active & green Mouse Jiggle It works perfectly