pezo89 Posted April 21, 2009 Posted April 21, 2009 anyone know, managed to write this, however how can i get it to search in X & Y cords? $coord = PixelSearch( 0, 0, 0, 0, 4210849,50 )
weaponx Posted April 21, 2009 Posted April 21, 2009 What do you think the first four parameters are for PixelSearch?
MrMitchell Posted April 21, 2009 Posted April 21, 2009 Are you trying to get it to search a specific place on the screen? It looks like you've got it searching nothing right now, all those zeroes specify your rectangle to search. PixelSearch(left, top, right, bottom, color). I'm no PixelSearch expert or anything so maybe I'm way off, but that's just what it looks like to me...
pezo89 Posted April 21, 2009 Author Posted April 21, 2009 Are you trying to get it to search a specific place on the screen? It looks like you've got it searching nothing right now, all those zeroes specify your rectangle to search.PixelSearch(left, top, right, bottom, color). I'm no PixelSearch expert or anything so maybe I'm way off, but that's just what it looks like to me...true, but then again, to set a point on the screen u need X and Y right?. so how do u get those 4 points?. -> 0, 0, 0, 0
MrMitchell Posted April 21, 2009 Posted April 21, 2009 (edited) AutoIt Window Info Tool? Add: The executable is Au3Info.exe. Open it up and go to either the Mouse Tab or Summary Tab when then move your mouse to where you want to get the coords. 0,0 by default is the top left corner of the screen if I'm not mistaken. Left to right goes from X = 0 to @DesktopWidth and top to bottom is y = 0 To @DesktopHeight. I hope that's right and hope it helps Edited April 21, 2009 by MrMitchell
Valuater Posted April 21, 2009 Posted April 21, 2009 Where did you find the command?? Help says PixelSearch ( left, top, right, bottom... 8)
Qousio Posted April 21, 2009 Posted April 21, 2009 The top left corner of your screen is 0,0 and the bottom right is whatever resolution the current application is using. So if you're using a program that enitiates 1280x1024 pixel resolution and you would need to search for a pixel in the middle of your screen, it would be pixelsearch(640, 512, 640, 512 .....). If you need to find a certain pixel try using MouseGetPos().
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