Nef Posted January 15, 2011 Posted January 15, 2011 (edited) Im trying to learn how to program in autoit, and I'm having some problems when I try to detect some advanced pixels.I want to know what function can I use to detect a pixel like this? Suppose I cant use PixelSearch cause have many colors in the screen similiar to this icon.Thanks Edited January 15, 2011 by Nef
smartee Posted January 15, 2011 Posted January 15, 2011 Im trying to learn how to program in autoit, and I'm having some problems when I try to detect some advanced pixels. I want to know what function can I use to detect a pixel like this? Suppose I cant use PixelSearch cause have many colors in the screen similiar to this icon. Thanks lol that ain't a pixel, thats a whole bunch of 'em. You can use PixelSearch but it'll be tedious I think. If you want to search for the existence of a shortcut, as it seems, a much simpler approach will be: If FileExists(@DesktopDir & "\Word.lnk") Then MsgBox(64, "Aha!!", "Aha!!, I found the shortcut to Word") Else MsgBox(64, "Aww :(", "Aww :(, I couldn't find the shortcut to Word") EndIf
anton23 Posted January 15, 2011 Posted January 15, 2011 lol that ain't a pixel, thats a whole bunch of 'em. You can use PixelSearch but it'll be tedious I think. If you want to search for the existence of a shortcut, as it seems, a much simpler approach will be: If FileExists(@DesktopDir & "\Word.lnk") Then MsgBox(64, "Aha!!", "Aha!!, I found the shortcut to Word") Else MsgBox(64, "Aww :(", "Aww :(, I couldn't find the shortcut to Word") EndIf Hem that for check if file exist: i have same question too, i want to make program like find function in word or window or etc but its find picture instead what i want basically like this: i want the program that can find me this image : in this image: before i use pixel detection but it become problem if the color is almost same. help me please
Nef Posted January 15, 2011 Author Posted January 15, 2011 My question is jsut like the anton23 . I didnt explained well. I want to know what function can I use in autoit to treat pixels in autoit. http://img23.imageshack.us/i/52478840.jpg/ Suppose I want to find word icon in that photoshop screen, but hav others icons in blue that that can confict. Im just studying how to program autoit, I know like u said it will be tedious, do programs in c/c++ is tedious. Thanks for helping me ^^
smartee Posted January 16, 2011 Posted January 16, 2011 My question is jsut like the anton23 . I didnt explained well. I want to know what function can I use in autoit to treat pixels in autoit.http://img23.imageshack.us/i/52478840.jpg/Suppose I want to find word icon in that photoshop screen, but hav others icons in blue that that can confict.Im just studying how to program autoit, I know like u said it will be tedious, do programs in c/c++ is tedious.Thanks for helping me ^^oh ok then maybe may be of assistance
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