Difference between revisions of "UO.GetPix"

From OpenEUO
Jump to: navigation, search
(Created page with "'''EUOX Equivelent:''' SavePix http://wiki.easyuo.com/index.php/SavePix '''Synopsis:''' nPix = UO.GetPix(nX,nY) '''Definition:''' saves the color value of the pixel given ...")
 
Line 3: Line 3:
 
'''Synopsis:''' nPix = UO.GetPix(nX,nY)  
 
'''Synopsis:''' nPix = UO.GetPix(nX,nY)  
  
'''Definition:''' saves the color value of the pixel given by the coordinate parameters  
+
'''Definition:''' saves the color value of the pixel given by the screen coordinate parameters  
  
 
'''Example:'''  
 
'''Example:'''  
Line 11: Line 11:
  
 
(Original Source: Swift74d[[http://www.easyuo.com/forum/viewtopic.php?t=43220]])
 
(Original Source: Swift74d[[http://www.easyuo.com/forum/viewtopic.php?t=43220]])
 +
 +
Notes:
 +
* Except on Windows 7, client window must be visible and unobstructed for pixel scanning.
 +
* Mouse cursor can obstruct pixel scanning, make sure it is not hovering over target pixels.

Revision as of 15:17, 8 October 2010

EUOX Equivelent: SavePix [[1]]

Synopsis: nPix = UO.GetPix(nX,nY)

Definition: saves the color value of the pixel given by the screen coordinate parameters

Example:

local a = UO.GetPix(400,400) 
print("pixel color at 400x 400y is " .. a)

(Original Source: Swift74d[[2]])

Notes:

  • Except on Windows 7, client window must be visible and unobstructed for pixel scanning.
  • Mouse cursor can obstruct pixel scanning, make sure it is not hovering over target pixels.