Some of you may remember the big hubla about runescape right? Well, for those who don't, it's a graphical mud pretty much.
Well, one of the things you can do is mine for different materials so that you can smith them into armor and all kinds of stuff. The problem with that is it takes forEVER to mine all the materials you need so that you can do more smithing and get better at it so that you can make better stuff... well, so one day somebody invented the 'autominer'. It's a fairly simple program where you tell it where to click and it will automate the clicking on rocks so that you can mine without actually being at the computer. Great time saver!
Only a slight problem. Runescape doesn't like people doing that. If you stand in one spot for over 5 min, you'll be disconnected. The first autominer was able to be configured to go back and forth between 2 rocks to mine - which solved that little issue. However, automining people are easy to spot because of it and a lot were banned... including my first character.
Now, there's an even trickier thing runescape set up. The entire screen shifts in random intervals in random directions by a single pixel. It's not enough to be that noticeable or annoying - but certainly enough to make your automining program start clicking on the wrong spot. YOu couldn't automine for 10 minutes before your guy would go running off someplace.
So this is what I'm faced with as I create a new character to be a miner/smith. Soon I got tired of click click clicking all the time, so I started to make a autominer program of my own. I figured the way to beat the system, I gotta make the program act like I would. So instead of running back and forth between rocks all the time, you can configure it to mine a single rock for 5 minutes before moving to another rock, and back and forth every 5 minutes. That's how I do it, so the program will to. Now that shifting is in my way. Well just recently I figured out how to beat that too. I just had to think - once again - to make the program act like I do. I see a rock, I click it. If the screen moves so that the rock is someplace else, I see that too and move my mouse to the rock and keep clicking. How do I know it's a rock? Cause of shape and color. Then it hit me. Color recognition! I gotta make the program recognize that it's clicking on a rock, and if the rock moves outta the way, then it will have to find the rock, and keep clicking.
So when I set my mouse coordinates, it saves the color underneath. before each time it clicks, it makes sure that the color where it's about to click is the same as the color it expects. If it is NOT the color, then it will search 10 pixels in every direction for the proper color - finds it, and clicks on the new position. Or if it doesn't find it, it will just keep clicking on the same spot (good for when somebody moves in your line of sight for a bit).
So now I get to watch my mouse moving around seeking out rocks to mine. I feel like a genius.