Jump to content

PixelSearch Help Needed


 Share

Recommended Posts

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

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

Have 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

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

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...