| View previous topic :: View next topic |
| Author |
Message |
BoBo Guest
|
Posted: Fri Jan 21, 2005 3:30 pm Post subject: Swap Math Operators ... |
|
|
To solve a PictureGetColour issue I thought about to swap the operator if searching from the upper left or the lower right part of the screen.
| Quote: | ULSearch:
X = 0
Y = 0
MaxX = 1023
MaxY = 766
op = +
LRSearch:
X = 1023
Y = 766
MaxX = 0
MaxY = 0
op = -
X %op%= 1
If X = %MaxX%
{
X = 0
Y %op%= 1
} |  |
|
| Back to top |
|
 |
Chris Site Admin
Joined: 02 Mar 2004 Posts: 10467
|
Posted: Sat Jan 22, 2005 12:17 am Post subject: |
|
|
That's difficult to implement because AutoHotkey is designed to know in advance what operation/command is being performed. This is done for performance reasons.
Someone asked in the following topic about doing PixelSearch "in reverse". If this is something you want too, I'll try to get it done: http://www.autohotkey.com/forum/viewtopic.php?t=622&highlight=pixelsearch+reverse |
|
| Back to top |
|
 |
BoBo Guest
|
Posted: Sat Jan 22, 2005 12:11 pm Post subject: |
|
|
That would fit perfectly !  |
|
| Back to top |
|
 |
Chris Site Admin
Joined: 02 Mar 2004 Posts: 10467
|
Posted: Mon Jan 24, 2005 12:12 am Post subject: |
|
|
| This has been added to v1.0.25.06: Improved PixelSearch to optionally sort from right to left rather than left to right. If any of your scripts rely on PixelSearch always reporting "not found" for inverted coordinates, please adjust them accordingly. [thanks BoBo & SD2K] |
|
| Back to top |
|
 |
|