Mouse Control
I wrote a simple java program that can randomly move and click the mouse on any computer it is run on. User can input the desired number of auto clicks, the wait time between clicks, and the delay before the program starts clicking and moving the mouse.
Added an if statement that makes the clicker double click every few clicks. Also adds a print statement to display the coordinates of each click to the console (for troubleshooting).
|
I made a helper class for experimentation and for help figuring out the coordinates of certain locations on your screen. Additionally I found that the bot cannot instantly move to your desired location and requires multiple calls in order to be precise. I added a for loop that calls each move 10 times.
|
Several Uses and Specializations:
The Art of Random
I changed the wait time in between clicks to 1-3 milliseconds and increased the number or clicks. I also added extra constraints so that it only clicks within the drawing area of MSPaint. Additionally, I added added in a color switch in the middle of the drawing. I also found that clicking before moving the mouse created lines instead of dots.
paintbot.java | |
File Size: | 2 kb |
File Type: | java |
Mouse Prank |
Farming Bot (for games) |
You can run this program on a friend's computer and leave it running. One possible thing thing to do is have the mouse not click, but rather just move to a random location every few minutes or seconds. This will confuse/frustrate them but won't throw any immediate red flags. Another option is to go all out and make the mouse move really fast and click and double click everywhere. But be careful, this can cause loss of any unsaved work so use this responsibly. Currently the program is set to have a 10 minute starting delay and a 20 millisecond wait between clicks. It should also double click every 3 clicks. The program terminates after 1500 clicks so it should run for about 10 minutes (delay) + 30 seconds (clicking). Have fun!
|
Another possible use for this is if you wanted to create an auto-clicker for a game. Use the tests.java file to get the coordinates of where you want to click, enter them into the program, and adjust the timing. This can also be used in conjunction with a program like GhostMouse, which can play prerecorded mouse movements and clicks. It should be fairly easy to tweak my code and make a great autoclicker for when you are away from your computer.
|