Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Help scanning pixel.
#4
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
Code:
Copy      Help
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|0x100

If then you'll use lef to click the point, and specify the window, it will activate the window. Cannot click background windows.


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)