Recommended Posts

i know this script is not finished i need to put the x and y but is it working fine???(by juste putting some values)

i m not used to this language

Dim \$var = 1 dim \$color = PixelGetColor ( x'' , y'' )

while \$var > 32000 do MouseClick ( "left" [, x, y [, \$var [, 1 ]]] ) MouseClick ( "left" [, x', y' [, 1 [, 1 ]]] )

Sleep (5000) if PixelGetColor ( x'' , y'' )= \$color then \$var = \$var * 2 else \$var = 1 ifend wend

Share on other sites

i know this script is not finished i need to put the x and y but is it working fine???(by juste putting some values)

i m not used to this language

Dim \$var = 1 dim \$color = PixelGetColor ( x'' , y'' )

while \$var > 32000 do MouseClick ( "left" [, x, y [, \$var [, 1 ]]] ) MouseClick ( "left" [, x', y' [, 1 [, 1 ]]] )

Sleep (5000) if PixelGetColor ( x'' , y'' )= \$color then \$var = \$var * 2 else \$var = 1 ifend wend

CODE
Dim \$var = 1

Dim \$color = PixelGetColor(x, y)

While \$var > 32000 Do

MouseClick("left" [, x, y [, \$var [, 1 ]]])

MouseClick("left" [, x', y' [, 1 [, 1 ]]])

Sleep(5000)

If PixelGetColor(x, y) = \$color Then

\$var = \$var * 2

Else

\$var = 1

EndIf

WEnd

Cleaned it up a bit so I could Puzzle over it.

What exactly is it supposed to do? Share on other sites

Dim \$var = 1

Dim \$color = PixelGetColor(55, 55)

While \$var < 32000

Do

MouseClick("left" [, 555, 555 [, \$var [, 1 ]]])

MouseClick("left" [, 222, 222 [, 1 [, 1 ]]])

Sleep(5000)

If PixelGetColor(666, 666) = \$color Then

\$var = \$var * 2

Else

\$var = 1

EndIf

WEnd

i tried with some values and it didn t work first it didn t want the do at the same line and now i have wrong statements issues beween while and wend

Share on other sites

Dim \$var = 1

Dim \$color = PixelGetColor(55, 55)

While \$var < 32000

Do

MouseClick("left" [, 555, 555 [, \$var [, 1 ]]])

MouseClick("left" [, 222, 222 [, 1 [, 1 ]]])

Sleep(5000)

If PixelGetColor(666, 666) = \$color Then

\$var = \$var * 2

Else

\$var = 1

EndIf

WEnd

i tried with some values and it didn t work first it didn t want the do at the same line and now i have wrong statements issues beween while and wend

ok, first up, the square brackets '[' and ']' indicate optional parameters. You dont actualy put them in, they just indicate what you can leave out.

MouseClick("left" [, 555, 555 [, \$var [, 1 ]]])
MouseClick("left" [, 222, 222 [, 1 [, 1 ]]])oÝ÷ Û
.ÖÞrjëh×6MouseClick("left" , 555, 555 , \$var , 1 )
MouseClick("left" , 222, 222 , 1 , 1 )

This would instruct the script to click the left mouse button at posistion 555,555 \$var times at a speed of 1 and then click the left mouse button at posistion 222,222 1 times at a speed of 1

With \$var counting to 32000 or so, that is alot of clicks.

What are you trying to achieve with this script?

Share on other sites

some bot for some stupid games

well it worked out but it wont click as many time as i espected i mean when PixelGetColor(593, 729) = \$color the script will just click once

is there any ways i can see what the script is doing the descisions he is making ect??

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