Get Pixel Color

2010/08/17 19:53

Get Pixel Color


Accessing this window


Use this option to obtain the pixel color underneath the tip of the mouse cursor. The pixel color is assigned a numeric value by windows, normally 6 - 8 digits in length. This numeric value is then saved to an integer variable such as N1.


Underneath Mouse

This option will get the pixel color of the pixel located directly underneath the mouse pointer. The pixel color is obtained wherever the mouse cursor is located at the time this command takes place during the macro.


At Specific Coordinates

With this option you assign the specific mouse coordinates based on the active window or the entire screen.


Relative to Screen

With this option checked you are telling the macro to move the mouse cursor relative to its position on the computer screen. You would use the "Screen Coordinates" numbers from the Mouse Locator with this option.


Relative to Window

With this option checked you are telling the macro to move the mouse cursor relative to its position within the window that is active. You would use the "Active Window" numbers from the Mouse Locator with this option.


Launch Mouse Locator    

The mouse locator is an easy way to obtain the pixel coordinates if you selected the At Specific Coordinates option. If the Mouse Locator window pops up in an area of your screen that covers important data, click on the window, hold the left mouse button down on the blue bar at the top of the window and drag to another area of your screen.

Additional Information and Screenshot


Integer Variable

Assign the variable to the pixel color obtained.


Example

Get Pixel Color

If Variable %N1% = 255

Text Type: <TAB> 123xyz

Else

Web Site: http://www.macros.com

End If





2010/08/17 19:53 2010/08/17 19:53
Posted by mirkhan

트랙백 보낼 주소 : http://miraeline.net/tc/trackback/342

댓글을 달아주세요

[로그인][오픈아이디란?]

<< PREV : [1] : [2] : [3] : [4] : [5] : [6] : ... [278] : NEXT >>