 |
AutoHotkey Community Let's help each other out
|
| View previous topic :: View next topic |
| Author |
Message |
tmahan
Joined: 15 Mar 2005 Posts: 3
|
Posted: Fri Mar 18, 2005 12:37 pm Post subject: pixelsearch help |
|
|
I am trying to string together a few pixelsearch statements where it searches for a color, if it finds it, it performs some action, if it doesnt find it, it searches for another color
I am having some trouble scripting it. I tried it like this..
PixelSearch, Px, Py, 333, 84, 341, 91, Green
if ErrorLevel = 0
MsgBox, Green was found in the specified region.
else
pixelSearch, Px, Py, 333, 75, 341, 81, Blue
if ErrorLevel = 0
MsgBox, blue was found in the specified region.
else
exit
Any thoughts? |
|
| Back to top |
|
 |
ILL.1
Joined: 29 Sep 2004 Posts: 84
|
Posted: Fri Mar 18, 2005 1:20 pm Post subject: |
|
|
Perhaps something like this:
| Code: | PixelSearch, Px, Py, 333, 84, 341, 91, Green
if ErrorLevel = 0
{
MsgBox, Green was found in the specified region.
Return
}
PixelSearch, Px, Py, 333, 75, 341, 81, Blue
if ErrorLevel = 0
{
MsgBox, blue was found in the specified region.
Return
}
exit |
_________________ ===============
----------ILL.1-----------
=============== |
|
| Back to top |
|
 |
|
|
You can post new topics in this forum You can reply to topics in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|