Altaris01 Posted August 16, 2012 Posted August 16, 2012 Iam a 2 year programing student and me and my friends make a game for the axn class the game work great now whe are trying to integrate a bot in it and i was like autoit is great to automate task but whe have a problem it dosent work the game recognize the pixel search but when is time use the keys it just flat out dont work and i dont know why what iam doing wrong. expandcollapse popup#include <ResFinder.au3> #include <Colors.au3> While 1 HotKeySet("{F1}", "Go") WEnd Func Go() While 1 For $i = 0 To 12 Step +1 $move = PixelSearch($res[0], $res[1], $res[2], $res[3], $colors[$i]) If @error <> 1 Then MouseMove($move[0], $move[1], 5) MouseDown("left") MouseUp("left") ; Call("clicked") ; MsgBox(0, " ", "Clicked Was Called") $clicked = 0 $clicolor = PixelGetColor($res[0] + 33, $res[1] + 51) ; 2244435 For $u = 0 To 100 Step +1 If $clicolor = PixelGetColor($res[0] + 33, $res[1] + 51) Then Sleep(100) Else $clicked = 1 ;MsgBox(0, " ", "Clicked = 1")w ExitLoop EndIf Next ; end click If $clicked = 1 Then MouseClick("left") Send( "{f2}" ) Send( "{f2}" ) Send( "{f3}" ) Send( "{f3}" ) EndIf $clicolor = 0 EndIf Next $i = 0 WEnd EndFunc any help the f2 and f3 key should use a beam like atack but it just stand there T.T. (the mouse work our ship target but dont atack) (srry for broken english not native)
MrMitchell Posted August 16, 2012 Posted August 16, 2012 Iam a 2 year programing student and me and my friends make a game for the axn class the game work great now whe are trying to integrate a bot in it and i was like autoit is great to automate task but whe have a problem it dosent work the game recognize the pixel search but when is time use the keys it just flat out dont work and i dont know why what iam doing wrong.Sorry Forum rules don't permit discussion of game bots. Please see rules here: http://www.autoitscript.com/forum/forum-2/announcement-13-forum-rules/
Altaris01 Posted August 16, 2012 Author Posted August 16, 2012 Sorry Forum rules don't permit discussion of game bots. Please see rules here: http://www.autoitscript.com/forum/forum-2/announcement-13-forum-rules/whe made the game so whe say that si allowed, and that whay whe dont break the forum rules "Scripts or programs that violate the license agreement for software. If a program explicitly says no automation, do not discuss automation of that software here." if is still breaking the rules then it will be no other way, whe will find alone then.
Altaris01 Posted August 16, 2012 Author Posted August 16, 2012 And to any moderetaor if whe are breaking the rules whe are srry whe just think that how whe made this it was 0 problem.
MrMitchell Posted August 16, 2012 Posted August 16, 2012 Sorry I didn't make the rules...but anyway you're looking at the wrong part of the rules, it's this: "Automating games or game servers. This rule is zero tolerance. Any discussion of using AutoIt to launch or interact with a game or game server violates our rules." Then it goes on with a whole other section about it.Anyway a mod will be along to make a decision so we'll see!
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