<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>http://wiki.easyuo.com/index.php?action=history&amp;feed=atom&amp;title=CmpPix</id>
		<title>CmpPix - Revision history</title>
		<link rel="self" type="application/atom+xml" href="http://wiki.easyuo.com/index.php?action=history&amp;feed=atom&amp;title=CmpPix"/>
		<link rel="alternate" type="text/html" href="http://wiki.easyuo.com/index.php?title=CmpPix&amp;action=history"/>
		<updated>2026-04-30T14:26:28Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.26.3</generator>

	<entry>
		<id>http://wiki.easyuo.com/index.php?title=CmpPix&amp;diff=5414&amp;oldid=prev</id>
		<title>Seg at 07:30, 28 October 2007</title>
		<link rel="alternate" type="text/html" href="http://wiki.easyuo.com/index.php?title=CmpPix&amp;diff=5414&amp;oldid=prev"/>
				<updated>2007-10-28T07:30:22Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{command header|client}}&lt;br /&gt;
{{body|cmpPix &amp;lt;nowiki&amp;gt;{&amp;lt;/nowiki&amp;gt;number&amp;lt;nowiki&amp;gt;}&amp;lt;/nowiki&amp;gt; &amp;lt;nowiki&amp;gt;[&amp;lt;/nowiki&amp;gt;true &amp;lt;nowiki&amp;gt;|&amp;lt;/nowiki&amp;gt; false&amp;lt;nowiki&amp;gt;]&amp;lt;/nowiki&amp;gt;|The cmpPix command compares the pixel given by &amp;lt;nowiki&amp;gt;{&amp;lt;/nowiki&amp;gt;number&amp;lt;nowiki&amp;gt;}&amp;lt;/nowiki&amp;gt; previously saved with [[savePix]] command. If it evaluates to either true or false (given by the option) it will execute the next statement or statement block.}}&lt;br /&gt;
&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;2&amp;quot;&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;2&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;background:#ffdead;&amp;quot; | Option || style=&amp;quot;background:#ffdead;&amp;quot; | Description&lt;br /&gt;
|-&lt;br /&gt;
| '''true''' || Executes next statement if current pixel '''equals''' to the previously saved pixel.&lt;br /&gt;
|-&lt;br /&gt;
| '''false''' || Executes next statement if current pixel '''differs''' from the previously saved pixel.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{note|the UO client '''must''' be top most in order for savepix and #pixcol to work}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Example ====&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;;Go to the client login screen and make&lt;br /&gt;
;sure your mouse cursor is not over the&lt;br /&gt;
;Quit button (upper right corner)&lt;br /&gt;
;Start the script and move your mouse&lt;br /&gt;
;over the Quit button. The client will&lt;br /&gt;
;close even if you don't make a click.&lt;br /&gt;
&lt;br /&gt;
savePix 580 13 1&lt;br /&gt;
comparePixelAgain:&lt;br /&gt;
cmpPix 1 f&lt;br /&gt;
{&lt;br /&gt;
  key F4 Alt&lt;br /&gt;
  halt&lt;br /&gt;
}&lt;br /&gt;
goto comparePixelAgain&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Related Commands ==&lt;br /&gt;
{| style=&amp;quot;background:gainsboro; color:black; border: 2px #aaa solid;&amp;quot;&lt;br /&gt;
| Width=250px align=center | [[savePix]]&lt;br /&gt;
|}&lt;br /&gt;
=See Also=&lt;br /&gt;
{{Client}}&lt;/div&gt;</summary>
		<author><name>Seg</name></author>	</entry>

	</feed>