Nef 0 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 Share this post Link to post Share on other sites
smartee 14 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 Share this post Link to post Share on other sites
anton23 0 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 Share this post Link to post Share on other sites
Nef 0 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 ^^ Share this post Link to post Share on other sites
smartee 14 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 Share this post Link to post Share on other sites