xZZTx Posted April 23, 2008 Share Posted April 23, 2008 Hi im new here and i have been trying to make a bot but before i can finish it i need help with PixelSearch i have tryed to get it to work but i can't find it out.. so can some one just write me a script to use?! I need it to search for 0x252610 and give me the X and Y coord's thank you very much for your help Sorry For Any Spelling / Grammar Errors I May Make.... I Failed English Wayyyy To Many Times.. Link to comment Share on other sites More sharing options...
d4rk Posted April 23, 2008 Share Posted April 23, 2008 Hi im new here and i have been trying to make a bot but before i can finish it i need help with PixelSearchi have tryed to get it to work but i can't find it out..so can some one just write me a script to use?!I need it to search for 0x252610and give me the X and Y coord'sthank you very much for your helpHave you even give a try ? [quote]Don't expect for a perfect life ... Expect a least troubles ones[/quote]Contact me : ass@kiss.toWhat I Have Done :Favorites Manager Mangage your favorite's folder, that's coolPC Waker For those who want to save stickersWebScipts Supporter For those who've just started with Web and WebScriptsTemporary Looker Simple but powerful to manage your Temporary folder, you know what you downloaded[UDF] _NumberFormat() Better performance on number display[UDF] _DirGet() What a folder contain [how many (hidden,normal,...) files], with one line of code[UDF] _IsPressEs() Just like _IsPress() but for a group of keys Link to comment Share on other sites More sharing options...
xZZTx Posted April 23, 2008 Author Share Posted April 23, 2008 I tryed this MsgBox(0,"Mouse","Move Mouse To Top Left Of Window") sleep(2000) $topleft = mousegetpos() MsgBox(0,"Mouse","Move Mouse To Bottom Right Of Window") sleep(2000) $bottomright = mousegetpos() $coord = PixelSearch(0,1280,0,1280,0x252610,200,1);0x252610 0xEEF2FB If Not @error Then MsgBox(0, "X and Y are:", $coord[0] & "," & $coord[1]) MouseMove($coord[0],$coord[1]) EndIf If @error Then MsgBox(0,"Fail","It Failed To Find The Pixel") EndIf It no Work... Sorry For Any Spelling / Grammar Errors I May Make.... I Failed English Wayyyy To Many Times.. Link to comment Share on other sites More sharing options...
xZZTx Posted April 23, 2008 Author Share Posted April 23, 2008 Sorry To Double Post But I Messed up The Code Is MsgBox(0,"Mouse","Move Mouse To Top Left Of Window") sleep(2000) $topleft = mousegetpos() MsgBox(0,"Mouse","Move Mouse To Bottom Right Of Window") sleep(2000) $bottomright = mousegetpos() $coord = PixelSearch($topleft[0],$topleft[1],$bottomright[0],$bottomright[1],0x252610,200,1);0x252610 0xEEF2FB If Not @error Then MsgBox(0, "X and Y are:", $coord[0] & "," & $coord[1]) MouseMove($coord[0],$coord[1]) EndIf If @error Then MsgBox(0,"Fail","It Failed To Find The Pixel") EndIf Sorry For Any Spelling / Grammar Errors I May Make.... I Failed English Wayyyy To Many Times.. 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