Difference between revisions of "SavePix"

From Wiki
Jump to: navigation, search
(fixed description)
 
(3 intermediate revisions by 3 users not shown)
Line 1: Line 1:
 
{{command header|client}}
 
{{command header|client}}
  
{{body|savePix {X-coordinate} {Y-coordinate} [number]|The savePix command saves the color value of the pixel given by the coordinate parameters into the memory slot given by the number parameter. saving the values into number parameter's is usefull when utilizing the [[cmpPix]] command. The last color read is also always saved to the [[#pixCol]] system variable.}}
+
{{body|savePix {X-coordinate} {Y-coordinate} [number]|The savePix command saves the color value of the pixel given by the coordinate parameters into the memory slot given by the number parameter. saving the values into number parameter's is usefull when utilizing the [[cmpPix]] command. The last color read is also always saved to the [[pixCol|#pixCol]] system variable.}}
  
 
{{note|the UO client '''must''' be top most in order for savepix and #pixcol to work}}
 
{{note|the UO client '''must''' be top most in order for savepix and #pixcol to work}}
Line 12: Line 12:
 
</pre>
 
</pre>
  
{{footer}}
+
== Related Commands ==
 +
{| style="background:gainsboro; color:black; border: 2px #aaa solid;"
 +
| Width=250px align=center | [[cmpPix]]
 +
|}
 +
=See Also=
 +
{{Client}}

Latest revision as of 12:58, 13 October 2007


Synopsis

savePix {X-coordinate} {Y-coordinate} [number]

Description

The savePix command saves the color value of the pixel given by the coordinate parameters into the memory slot given by the number parameter. saving the values into number parameter's is usefull when utilizing the cmpPix command. The last color read is also always saved to the #pixCol system variable.

Note: the UO client must be top most in order for savepix and #pixcol to work

Example

; This will save the color on the screen where your cursor is into
; the number 1 pixel slot to be used with the cmpPix command.
savePix #cursorX #cursorY 1

Related Commands

cmpPix

See Also

Client

  • Client commands are used to send information to the Ultima Online client in order to perform an action or effect some change.
chooseSkill Reads the current skill value/lock status for a specific skill
click Clicks at a specific position in the UO client
cmpPix Compares a current pixel to a previously saved pixel
contPos Moves the active topmost gump to a new position
deleteJournal Forgets the contents of the journal buffer
findItem Finds items, monsters, players, NPCs based on object ID or object type
getShopInfo Retrieves information from the client about the currently shown top entry on a shopping gump
getUOTitle Gets the text on the title bar of the client
hideItem Removes an items graphic from the client
ignoreItem Removes items from the list searched by findItem
key Sends a key-stroke to the client
move Moves the character to a specified location
msg Sends a string to the client as keystrokes
nextCPos Denotes where the next opened container/gump will open
onHotKey Performs a line of code if a specific key is pressed
savePix Saves the color of a pixel in a specified location
setShopItem Sets the number of items to purchase given by ID
setUOTitle Sets the text on the title bar of the client
scanJournal Scans the users journal and stores the string for examination
sleep Waits a specified amount of time
target Waits for a target cursor to appear
terminate Terminates the current client
uoXL Start/manage clients
wait Waits a specified amount of time