kuhasu Posted April 25, 2008 Share Posted April 25, 2008 (edited) Can I use PixelSearch if I do not open the pic And the all pic files can be coded as X:\*.jpg ,can I? TIA Edited April 25, 2008 by kuhasu Link to comment Share on other sites More sharing options...
Xenobiologist Posted April 25, 2008 Share Posted April 25, 2008 No you can't Scripts & functions Organize Includes Let Scite organize the include files Yahtzee The game "Yahtzee" (Kniffel, DiceLion) LoginWrapper Secure scripts by adding a query (authentication) _RunOnlyOnThis UDF Make sure that a script can only be executed on ... (Windows / HD / ...) Internet-Café Server/Client Application Open CD, Start Browser, Lock remote client, etc. MultipleFuncsWithOneHotkey Start different funcs by hitting one hotkey different times Link to comment Share on other sites More sharing options...
kuhasu Posted April 25, 2008 Author Share Posted April 25, 2008 No you can'tgot it....then what's the best solution if there r thousands of jpgs... Link to comment Share on other sites More sharing options...
ProgAndy Posted April 25, 2008 Share Posted April 25, 2008 (edited) You have to work with GDI32 and GDIPlus Functions PseudoCode: GDIPlus -> Load Image GDIPlus -> Image Get DC For $x = 0 To Imagewidth For $y = 0 To Imageheight GDI32 -> GETPixel If ColorFound = ColorSearch Then $foud = 1 ExitLoop 2 EndIf Next Next GDI32 / WinAPI -> deleteDC GDIPlus -> Dispose Image if $Found Then Return Array x/y Edited April 25, 2008 by ProgAndy *GERMAN* [note: you are not allowed to remove author / modified info from my UDFs]My UDFs:[_SetImageBinaryToCtrl] [_TaskDialog] [AutoItObject] [Animated GIF (GDI+)] [ClipPut for Image] [FreeImage] [GDI32 UDFs] [GDIPlus Progressbar] [Hotkey-Selector] [Multiline Inputbox] [MySQL without ODBC] [RichEdit UDFs] [SpeechAPI Example] [WinHTTP]UDFs included in AutoIt: FTP_Ex (as FTPEx), _WinAPI_SetLayeredWindowAttributes Link to comment Share on other sites More sharing options...
kuhasu Posted April 26, 2008 Author Share Posted April 26, 2008 You have to work with GDI32 and GDIPlus Functions PseudoCode: GDIPlus -> Load Image GDIPlus -> Image Get DC For $x = 0 To Imagewidth For $y = 0 To Imageheight GDI32 -> GETPixel If ColorFound = ColorSearch Then $foud = 1 ExitLoop 2 EndIf Next Next GDI32 / WinAPI -> deleteDC GDIPlus -> Dispose Image if $Found Then Return Array x/y thank you! 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