Chaos Project

Game Development => Sea of Code => Development Tools => Topic started by: ForeverZer0 on March 22, 2014, 05:00:15 pm

Title: [C#] MouseBot
Post by: ForeverZer0 on March 22, 2014, 05:00:15 pm
MouseBot
Authors: ForeverZer0
Version: 1.1
Type: Input Simulator



Introduction

Recently I found need for a utility to automate mouse/input on my PC while I was away, and I employed the use of GhostMouse.  Unfortunately, this program is not free to use, and is only a limited trial unless purchased.  Although this can be bypassed easily, it inspired me to create my own application to do the same, so I introduce to you: MouseBot!

MouseBot is a very lightweight and simple program that comes packed with features to automate mouse movement, clicking, keystrokes, and text input. Simply build a list of commands with the user-friendly interface, and start the system to have them execute without your need to perform them. The possibilities are endless, and can be used for whatever you may require, such as automatically level-grinding in a game, fooling a web server to think that someone is still present to prevent a timeout, or whatever you can think of.


Features




Screenshots

Main Interface: ShowHide
(https://dl.dropboxusercontent.com/u/20787370/Applications/MouseBot/Screens/Main.png)

Options Window: ShowHide
(https://dl.dropboxusercontent.com/u/20787370/Applications/MouseBot/Screens/Options.png)

Command Window: ShowHide
(https://dl.dropboxusercontent.com/u/20787370/Applications/MouseBot/Screens/Command.png)

Tray Icon: ShowHide
(https://dl.dropboxusercontent.com/u/20787370/Applications/MouseBot/Screens/Notification.png)



Download

Application (https://sourceforge.net/projects/mousebotnet/)
Source Code (https://sourceforge.net/p/mousebotnet/code/HEAD/tree/)


Compatibility

Requires Microsoft .NET Framework 4.0 (http://www.microsoft.com/en-us/download/details.aspx?id=17851) or higher.

Any suggestions or bug reports are greatly appreciated!


License

Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International (CC BY-NC-ND 4.0) (http://creativecommons.org/licenses/by-nc-nd/4.0/)
Title: Re: [C#] MouseBot
Post by: Zexion on March 22, 2014, 05:07:28 pm
Ah, thanks for this F0. I've used ghostmouse before, and I hated that it wasn't free. None of the others seemed to stack up, or had way complicated interfaces. Nice job!
I like to use this to play things on multiplayer piano that I otherwise couldn't play with just two hands XD
Title: Re: [C#] MouseBot
Post by: winkio on March 22, 2014, 05:53:21 pm
Well done.  Nice and streamlined, but perfect for automating tedious tasks.  Also, the icon is hilarious XD
Title: Re: [C#] MouseBot
Post by: Blizzard on March 22, 2014, 06:35:20 pm
My boss mentioned a few times that he'd like to automate UI testing. Since I know this is really difficult to make work on a general basis, I usually told him to forget that idea. But this tool is a step in that direction, lol!
Title: Re: [C#] MouseBot
Post by: ForeverZer0 on March 23, 2014, 08:43:35 pm
Thank you guys, I am glad you like it.
It's actually very simple, but given the right situation, it can come in very handy.
Title: Re: [C#] MouseBot
Post by: WhiteRose on April 02, 2014, 04:49:07 am
This looks awesome, F0! If you're looking for suggestions for a future version, maybe you could give the option to add some level of randomness to the mouse actions. (Nothing significant, but maybe changing the speed or movement path slightly, or moving the click by a tiny, tiny bit.) This would make it seem more like a real user was using the mouse. Though it wouldn't help with automating tedious processes, it would be useful for anyone using it for surveys, games, or other things that might be trying to detect users with automation programs.

Anyway, just a thought. All in all, definitely well done, and a great idea!
Title: Re: [C#] MouseBot
Post by: ForeverZer0 on April 13, 2014, 05:15:31 pm
Damaged my HDD, so all the source code (and many other things) is currently lost.  Have a new one coming, and afterwards I will see about recovering what I can from it.  :-(

I do like the idea of the adding some randomness to the movement, and I can definitely see some uses that could be made with that feature, so once that will be a feature I would like to include in the future, thank you for the feedback.
Title: Re: [C#] MouseBot
Post by: Ryex on April 14, 2014, 12:13:08 am
you should use a source control site. bitbucket gives you free repos I think.
Title: Re: [C#] MouseBot
Post by: ForeverZer0 on April 14, 2014, 07:04:51 am
Quote from: Ryex on April 14, 2014, 12:13:08 am
you should use a source control site. bitbucket gives you free repos I think.


I do for some of my larger projects I work on, but not everything.  This particular project was just something I made for personal use, and  just polished up a little bit before sharing, so I never got around to placing it under any SVN control.
Title: Re: [C#] MouseBot
Post by: ForeverZer0 on May 25, 2014, 10:48:34 am
Alright, so I decided to rewrite the application from scratch.
I kept the basic GUI design, with only a few minor tweaks here and there. There are numerous tweaks done to the underlying system, but nothing that really effects the ender user too much. I did add a few little details, such as double-clicking to edit commands, a better copy/paste function, mouse tracking when using capture mode, and a couple more, but it is pretty much the same at this point. And now that I have the source code back, I am also releasing that if anyone should like to learn anything from it.

The hosting has also been moved from Dropbox to SourceForge, as will likely any future project I create. No more losing entire projects for me.

One last note, I changed the targeted framework from .NET 2.0 to .NET 4.0.  This shouldn't effect most people, but the link to the proper framework is given above if you don't already have it installed.
Title: Re: [C#] MouseBot
Post by: orochii on May 25, 2014, 02:49:48 pm
Yes! Now I can make my RPG Maker games while away from the keyboard! Mwahahahahaha!

My vengeance against humanity will be fulfilled...