Core Function PixelSearchHWND
From Sputnik Wiki
(Difference between revisions)
m (1 revision) |
m (1 revision) |
Latest revision as of 12:37, 14 June 2015
PixelSearchHWND ( <hwnd>, <left>, <top>, <right>, <bottom>, <colour>, <shade>, <padding>, <step> )
Contents |
Description
Searches a rectangle of pixels (Within a specified window) for the pixel colour provided.
Parameters
hwnd
Window handle to be used.
... rest ...
See PixelSearch().
Return Value
See PixelSearch().
Remarks
See PixelSearch().
See "PixelCoordMode" in Opt
Example
See PixelSearch() examples and add your HWND as the first param example:
$target = PixelSearchHWND ( WinGetHandle("Calc", ""), 0, 0, 20, 20 ); foreach($target as $i) { List( $X, $Y, $Red, $Green, $Blue ) = $i; $X += 30; $Y += 30; println("X '$X' Y '$Y,' Red '$Red' Green '$Green' Blue '$Blue'"); }