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 

PixelGetColor --> Timeout

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





PostPosted: Wed Mar 31, 2004 9:49 pm    Post subject: PixelGetColor --> Timeout Reply with quote

I would appreciate some improvement on the PixelGetColor command Cool

... to wait until the pixel colour at the specified pixel coordinates changes to the colour specified in ColorCode. If it doesn't change to that colour within the number of seconds specified in Timeout, the command stops waiting and the ERRORLEVEL is set to 1. ERRORLEVEL is 0 if the command terminated because the colour changed to the specified colour within the specified time. if Timeout is set to 0, the command will wait indefinitely.

To determine the correct colour code use AutoIt3 Window Spy, so you can determine the correct colour code of any pixel on the screen.

PixelGetColor, color, %MouseX%, %MouseY%[ , Timeout]
Back to top
Chris
Site Admin


Joined: 02 Mar 2004
Posts: 10464

PostPosted: Wed Mar 31, 2004 9:53 pm    Post subject: Reply with quote

Good suggestion, I'll add it to the list next to the pixel checksum feature. I think these are both good features that many of us will find useful.
Back to top
View user's profile Send private message Send e-mail
BIOSRAM
Guest





PostPosted: Sun Jun 15, 2008 2:54 pm    Post subject: PixelGetColor Reply with quote

Hi Chris,

I am using Autohotkey for around half a year now and to wait for a Pixel to become certain color is a must for me in AHK.

I am using that Loop quite often, especially when a report is finished and the window name and class do not change at all, also StatusBar does not change so StatusBarWait is not an option. The same is for example when you wait for a website to open, StatusBarWait does not help fully again, because the word Done appears again and again after a part of the site downloaded and even if it is the final Done, site might not be ready for input as it is not displaying yet so again to have a lot of code or use Loop PixelGetColor is the only option.

Additionally to have a Loop that can do Timeout is also quite a lot of code so I have again and again to write that loop function and it is annoying.

Before I came to idea use loop and PixelGetColor it took me a few month.
Now after more than half a year I have found the function from JSLover that helps me now much more but having it in AHK would be just perfect and possibly save time and complex thinking to other people.

This is my second wish, after 1000 Hotkeys, please implement Very Happy.

PixelGetColor, OutputVar, X, Y [, Alt|Slow|RGB, Timeout]

Timeout="" - Uses its nature function(does not wait at all)
Timeout=x - Wait x seconds, indefinitely if x=0



P.S.:
AHK is just the best program i have ever used and seen.
Since I've discovered it, I am working with it like a freak Very Happy.
I have lately found software called A u t o m a t e and tried it, it is very simmilar to AHK having even more functions but very very expensive and I think also too slow and overdone in both using, and writing macros. It is so huge and so many setting/options. I like AHK much much more.

I would suggest you try it, possibly you will find some new functions/ideas, there is a trial version you can download, just google for it.
Back to top
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