| View previous topic :: View next topic |
| Author |
Message |
kc7aad Contributor

Joined: 09 Oct 2005 Posts: 53 Location: Spokane Washington
|
Posted: Thu Nov 03, 2005 1:09 am Post subject: New-B back again!! - Pixels and comparisons now |
|
|
Hello to the group again.. i am now trying to compare a known pixels BBGGRR (which happens to be A4CD5A) to what it actually is. Here is my comparison statement that doesn't work.. any ideas??
| Code: | %%PIX = @UG(GETPIXEL,<PROGRAM>,815,718)
IF @EQUAL(A4CD5A,%%PIX)
rem Also tried above line as IF @EQUAL(A4CD5A,@UG(GETPIXEL,<PROGRAM>,815,718), with no better luck!!
WARN OK
END
ELSE
WARN SOMETHING HAPPENED
END
DIALOG SET,STATUS1,%%PIX
GOTO EVLOOP |
When this event gets done, it just goes back to the evloop, and runs it ever 4 seconds as I have it set.
Any ideas?? It's probably a syntax error on my part, but i have been malling this over for a few hours now, and have torn the rest of my hair out!!
Also.. I am running VDS5 (in WinXPPro)..
Thanks again!!
Rod |
|
| Back to top |
|
 |
DaveR Valued Contributor


Joined: 03 Sep 2005 Posts: 413 Location: Australia
|
Posted: Thu Nov 03, 2005 1:30 am Post subject: Re: New-B back again!! - Pixels and comparisons now |
|
|
Try this:
| Code: | %%PIX = @UG(GETPIXEL,<PROGRAM>,815,718)
IF @EQUAL(A4CD5A,%%PIX)
rem Also tried above line as IF @EQUAL(A4CD5A,@UG(GETPIXEL,<PROGRAM>,815,718), with no better luck!!
WARN OK
ELSE
WARN SOMETHING HAPPENED
END
DIALOG SET,STATUS1,%%PIX
GOTO EVLOOP |
_________________ cheers
Dave |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You can attach files in this forum You can download files in this forum
|
|