Core Function PixelSearchHWND

From Sputnik Wiki
Jump to: navigation, search
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'");
}
Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox