Core Function PixelSearchHWND

From Sputnik Wiki
(Difference between revisions)
Jump to: navigation, search
(Example)
m (1 revision)
 
(One intermediate revision by one user not shown)

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'");
}
Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox