Sign in to follow this  
Followers 0
Rasmus

Click on selected color, how ?

3 posts in this topic

hi, im making a bot, dont worry not an E-mail spam F**ker bot. just a game bot. but the game (java)screen is moving so i cant just click same spot all the time, cus the wanted stop moves. the spot haves a color, and i knew that i can make it clicking on a wanted color i just cant found out how it will be in the script plz help me.

this is the script (UNTIL NOW)

;====== Main Body =======================

While 1

$SwitchOne = HotKeySet ( "{F1}", "SwitchOne" )

$SwitchLogin = HotKeySet ( "{F2}", "SwitchLogin" )

Select

Case $SwitchOne = 0

SwitchOne ()

Case $SwitchLogin = 0

SwitchLogin ()

; Case WinWaitClose ("RuneScape - the massive online adventure game by Jagex Ltd")

; IamDone ()

EndSelect

WEnd

; =========== Subroutines ===============

; ----------- First switch key ------------

Func SwitchOne ()

WinActivate ("RuneScape - the massive online adventure game by Jagex Ltd" )

MsgBox(262208,"RLP92's MineBot","You are going to Automatical Mine" & @CRLF & "have fun" & @CRLF & " - Razwuz (RLP92). ")

While 1

Sleep(900)

Mouseclick("left",231,238,1,3)

Sleep(10000)

Mouseclick("left",282,206,1,3)

Sleep(10000)

Mouseclick("left",231,238,1,3)

Sleep(10000)

Mouseclick("left",282,206,1,3)

Sleep(10000)

Mouseclick("left",231,238,1,3)

Sleep(10000)

Mouseclick("left",282,206,1,3)

Sleep(10000)

Mouseclick("left",231,238,1,3)

Sleep(10000)

Mouseclick("left",282,206,1,3)

Sleep(10000)

Mouseclick("left",231,238,1,3)

Sleep(10000)

Mouseclick("left",282,206,1,3)

Sleep(10000)

Mouseclick("left",231,238,1,3)

Sleep(10000)

Mouseclick("left",282,206,1,3)

Sleep(10000)

Mouseclick("left",231,238,1,3)

Sleep(10000)

Mouseclick("left",282,206,1,3)

Sleep(10000)

Mouseclick("left",231,238,1,3)

Sleep(10000)

Mouseclick("left",282,206,1,3)

Sleep(10000)

Mouseclick("left",231,238,1,3)

Sleep(10000)

Mouseclick("left",282,206,1,3)

Sleep(10000)

Mouseclick("left",231,238,1,3)

Sleep(10000)

Mouseclick("left",282,206,1,3)

Sleep(10000)

Mouseclick("left",231,238,1,3)

Sleep(10000)

Mouseclick("left",282,206,1,3)

Sleep(10000)

Mouseclick("left",231,238,1,3)

Sleep(10000)

Mouseclick("left",282,206,1,3)

Sleep(2000)

;--------drop items---------

Mouseclick("Right",592,289,1,3)

Sleep(200)

Mouseclick("left",577,332,1,3)

Sleep(200)

Mouseclick("Right",635,289,1,3)

Sleep(200)

Mouseclick("left",597,332,1,3)

Sleep(200)

Mouseclick("Right",677,289,1,3)

Sleep(200)

Mouseclick("left",639,332,1,3)

Sleep(200)

Mouseclick("Right",719,289,1,3)

Sleep(200)

Mouseclick("left",658,332,1,3)

Sleep(200)

Mouseclick("Right",592,326,1,3)

Sleep(200)

Mouseclick("left",577,369,1,3)

Sleep(200)

Mouseclick("Right",635,326,1,3)

Sleep(200)

Mouseclick("left",597,369,1,3)

Sleep(200)

Mouseclick("Right",677,326,1,3)

Sleep(200)

Mouseclick("left",639,369,1,3)

Sleep(200)

Mouseclick("Right",719,326,1,3)

Sleep(200)

Mouseclick("left",658,369,1,3)

Sleep(200)

Mouseclick("Right",592,364,1,3)

Sleep(200)

Mouseclick("left",577,402,1,3)

Sleep(200)

Mouseclick("Right",635,364,1,3)

Sleep(200)

Mouseclick("left",597,402,1,3)

Sleep(200)

Mouseclick("Right",677,364,1,3)

Sleep(200)

Mouseclick("left",639,402,1,3)

Sleep(200)

Mouseclick("Right",719,364,1,3)

Sleep(200)

Mouseclick("left",658,402,1,3)

Sleep(200)

Mouseclick("Right",592,400,1,3)

Sleep(200)

Mouseclick("left",577,441,1,3)

Sleep(200)

Mouseclick("Right",635,400,1,3)

Sleep(200)

Mouseclick("left",597,441,1,3)

Sleep(200)

Mouseclick("Right",677,400,1,3)

Sleep(200)

Mouseclick("left",639,441,1,3)

Sleep(200)

Mouseclick("Right",719,400,1,3)

Sleep(200)

Mouseclick("left",658,441,1,3)

Sleep(200)

Mouseclick("Right",592,435,1,3)

Sleep(200)

Mouseclick("left",577,475,1,3)

Sleep(200)

Mouseclick("Right",635,435,1,3)

Sleep(200)

Mouseclick("left",597,475,1,3)

Sleep(200)

Mouseclick("Right",677,435,1,3)

Sleep(200)

Mouseclick("left",639,475,1,3)

Sleep(200)

Mouseclick("Right",719,435,1,3)

Sleep(200)

Mouseclick("left",658,475,1,3)

Sleep(200)

Mouseclick("Right",592,470,1,3)

Sleep(200)

Mouseclick("left",577,490,1,3)

Sleep(200)

Mouseclick("Right",635,470,1,3)

Sleep(200)

Mouseclick("left",597,490,1,3)

Sleep(200)

Mouseclick("Right",677,470,1,3)

Sleep(200)

Mouseclick("left",639,490,1,3)

Sleep(200)

Mouseclick("Right",719,470,1,3)

Sleep(200)

Mouseclick("left",658,490,1,3)

Sleep(200)

Mouseclick("Right",592,506,1,3)

Sleep(200)

Mouseclick("left",577,489,1,3)

Sleep(200)

Mouseclick("Right",635,506,1,3)

Sleep(200)

Mouseclick("left",597,489,1,3)

Sleep(200)

Mouseclick("Right",677,506,1,3)

Sleep(200)

Mouseclick("left",639,489,1,3)

Sleep(200)

Mouseclick("Right",719,506,1,3)

Sleep(200)

Mouseclick("left",658,489,1,3)

Sleep(200)

Wend

EndFunc

; ----------- Second switch key -----------

Func SwitchLogin ()

Mouseclick("left",0,0,1,3)

SplashOff ()

EndFunc

; ----------- Exit Program --------------

Func IamDone ()

Exit

EndFunc

Share this post


Link to post
Share on other sites



Hey, to do what you want, use pixelSearch. You give it a color to search for, an area of the screen to do it in, and how often to do it. Or, you could use the program i attached.

NOTE: I DID NOT MAKE THIS PROGRAM! I found it on the forum here and now forget where i got it...

Miner.zip


Share this post


Link to post
Share on other sites

Autominer I assume. First advice, don't play runescape. But, if you must... Gcommer is right, pixelsearch is the way to go, I don't know very much about scripts myself, I have made a crude aimbot though (essentially the same thing as an auto miner). Might want to search Aimbot and see how they did it. (most people have the same issue as you, the screen moves so the spot on the screen moves, this is easy to fix because in runescape the mine points are large, so you can pixelsearch, step toward the color, pixelsearch, step toward, pixelsearch, step toward, until you get the little pickaxe icon.

Another way do it is just keep your mouse centered, and have a pixelsearch around 500,500 (center screen) and then if it sees the pixels it will start mining.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0