Jump to content

Recommended Posts

hello everybody, i'm new to AutoIt, it's only been about 2 weeks since i started, but i understand most of the basics

so i was trying to create a script to play this armorgame called Podz. it involves clicking on all the green balls before the time runs out without clicking on any of the red ones. my biggest problem with the game is that once you click on a green ball, it doesn't disappear right away and the next time the cursor comes by, it clicks on the already clicked green ball, and i lose the level because of the red ball below it.

here is the program, it works for the first few levels that don't have any red balls:

Func podz()

sleep(100)

while $ycor < 593

If _IsPressed("45") Then ExitLoop

While $xcor < 727

MouseMove( $xcor, $ycor,0)

If PixelGetColor($xcor,$ycor) = 10870552 Then MouseClick("left")

$xcor += 2

WEnd

$ycor+=3

mousemove(0, $ycor,0)

$xcor = 0

WEnd

EndFunc

While 1

if _IsPressed("53") then

$xcor = 259

$ycor = 200

podz()

EndIf

if _IsPressed("54") Then

exit

EndIf

WEnd

PodzArmorGames.au3

Link to post
Share on other sites
Guest
This topic is now closed to further replies.
  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...