05-15-2010, 08:37 AM
Function pixel(), if window specified, activates the window, because it cannot get pixel color from background windows. If flag 2 used, does not activate, but then the pixel may belong to another window that covers the specified window.
If need to get pixel color from a window that is covered by other windows, you need QM 2.3.2. Use 'Find Image' dialog to create the code. Check 'The window can be in background'. Capture the color and the window. Add a RECT variable that sets the coordinates.
Example
Macro Macro1426
If then you'll use lef to click the point, and specify the window, it will activate the window. Cannot click background windows.
If need to get pixel color from a window that is covered by other windows, you need QM 2.3.2. Use 'Find Image' dialog to create the code. Check 'The window can be in background'. Capture the color and the window. Add a RECT variable that sets the coordinates.
Example
Macro Macro1426
RECT r
r.left=310; r.top=40; r.right=r.left+4; r.bottom=r.top+4
scan "color:0xB96456" win("Quick Macros Forum • Post a reply - Mozilla Firefox" "MozillaUIWindowClass") r 1|2|0x100If then you'll use lef to click the point, and specify the window, it will activate the window. Cannot click background windows.
