Masterphilly Posted November 1, 2010 Share Posted November 1, 2010 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 WEndPodzArmorGames.au3 Link to comment Share on other sites More sharing options...
AlmarM Posted November 2, 2010 Share Posted November 2, 2010 This is about botting a game? http://www.autoitscript.com/forum/index.php?showannouncement=12&f=2 Minesweeper A minesweeper game created in autoit, source available. _Mouse_UDF An UDF for registering functions to mouse events, made in pure autoit. 2D Hitbox Editor A 2D hitbox editor for quick creation of 2D sphere and rectangle hitboxes. Link to comment Share on other sites More sharing options...
Masterphilly Posted November 2, 2010 Author Share Posted November 2, 2010 i'm sorry, i didn't realize that, i everywhere i looked about automating games pointed me to AutoIt, but it would also be a very practical ability to know how to do, so maybe if you know how to create multiple cursors.... Link to comment Share on other sites More sharing options...
Recommended Posts