Jump to content

Can I use PixelSearch if I do not open the pic


Recommended Posts

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

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 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

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

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...