Core Function PixelSearchHWND
From Sputnik Wiki
(Difference between revisions)
(→Example) |
m (1 revision) |
Revision as of 21:40, 11 August 2014
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'"); }