AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Swap Math Operators ...

 
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Wish List
View previous topic :: View next topic  
Author Message
BoBo
Guest





PostPosted: Fri Jan 21, 2005 3:30 pm    Post subject: Swap Math Operators ... Reply with quote

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. Idea

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
}
Crying or Very sad
Back to top
Chris
Site Admin


Joined: 02 Mar 2004
Posts: 10467

PostPosted: Sat Jan 22, 2005 12:17 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail
BoBo
Guest





PostPosted: Sat Jan 22, 2005 12:11 pm    Post subject: Reply with quote

That would fit perfectly ! Very Happy
Back to top
Chris
Site Admin


Joined: 02 Mar 2004
Posts: 10467

PostPosted: Mon Jan 24, 2005 12:12 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Wish List All times are GMT
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group