SallesxD Posted October 24, 2010 Share Posted October 24, 2010 Ive done some simple code to test autoit with my game (FLYFF) it Sometimes Clicks And Sometimes Dont, but, all times PixelSearch Find the color that i want, Logical: / Search for Unique RED Name of Monster and Retrieve (x and y) Mouse uses x and y from search and Clicks on Founded Position. / like i said this dont work fine (finds Color, But Sometimes Dont Click,) (Used a MsgBox To check if it was finding color) Im Doing Something Wrong? ; Pixel BOT Flyff Global $COLOR, $FLYFFX1, $FLYFFY1, $FLYFFX2, $FLYFFY2, $Coord WinActivate ("FLYFF") WinWaitActive("FLYFF") ; Settings | Constants $COLOR = 0xFF0000; Pure RED $FLYFFX1 = 100 $FLYFFY1 = 100 $FLYFFX2 = 1111 $FLYFFY2 = 800 Sleep (1000) While 1 $SearchResult = PixelSearch($x1 + 35, $y1 + 35, $x2, $y2, $Color, 5, 2) If @error Then MsgBox(1, "WTF" , "No Pixel Found") Exit Else MouseMove ($Coord[0], $Coord[1]) ControlClick ("FLYFF","","", "left", 2) Sleep("200") EndIf WEnd Link to comment Share on other sites More sharing options...
MrMitchell Posted October 24, 2010 Share Posted October 24, 2010 Ive done some simple code to test autoit with my game (FLYFF)it Sometimes Clicks And Sometimes Dont, but, all times PixelSearch Find the color that i want,http://www.autoitscript.com/forum/index.php?showannouncement=12&f=2 Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now