Search the web
Sign In
New User? Sign Up
AutoHotkey
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Real people. Real stories. See how Yahoo! Groups impacts members worldwide.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
How to get the text info. from the popup dialog   Message List  
Reply | Forward Message #501 of 528 |
Re: How to get the text info. from the popup dialog

Hey,

No worries. Not sure about a flash error. I can see how it's a problem.

You could possibly try using PixelGetColor (or PixelSearch). If
there's a specific color on the screen at a specific part of the
screen when the error pops up, the script could search for it. EG. If
the error is in red and it should be at pixel number x100 y246 you
would put:

Loop, ?? ;Would you want it to keep looking a few times?
{
PixelGetColor, IsItRed, x100 y250
If IsItRed = 3300FF
goto ErrorMessage
sleep, 1500 ;Sleep 1.5 seconds
}

ErrorMessage:
MsgBox, There's a Flash Error.



Please note that you use "AutoIT3 Window Spy" to find out what the
hexadecimal numbers are for the color you would want and put the mouse
over that part of the screen to get the x,y positions (from the Mouse
Position). "AutoIT3 Window Spy" is also found in the AutoHotKey
folder in the Start Menu.

Sorry if it doesn't help. Good luck.

Hew.


--- In AutoHotkey@yahoogroups.com, "traucon" <traucon@...> wrote:
>
> Hi hew_r3,
> I tried it on my script and it does work fine as long as I'm in the
> regular internet explorer window. However, once the Internet explorer
> load the Macromedia Flash 9 as in my case, the script failed to find
> the text of the popup window created by Flash. If you have any
> suggestion, please let me know. Again thank you for your time.
>
> Trau Con
>
> --- In AutoHotkey@yahoogroups.com, "hew_r3" <hew_r3@> wrote:
> >
> > Try using WinGetText and/or WinGetTitle
> >
> > See the AHK help file in the start menu >> autohotkey >> autohotkey
> > help file for usage information:
> >
> >
> > Example
> > Run, Calc.exe
> > WinWait, Calculator
> > WinGetText, text ; The window found above will be used.
> > MsgBox, The text is:`n%text%
> >
>





Sat May 10, 2008 12:26 pm

hew_r3
Offline Offline
Send Email Send Email

Forward
Message #501 of 528 |
Expand Messages Author Sort by Date

Hi, Can anyone tell me how to get the text displayed on the popup dialog from a program using Autohotkey? These are the steps that I need to do with my...
traucon
Offline Send Email
May 8, 2008
6:42 am

Try using WinGetText and/or WinGetTitle See the AHK help file in the start menu >> autohotkey >> autohotkey help file for usage information: Example Run,...
hew_r3
Offline Send Email
May 9, 2008
1:03 am

Hew_r3, Thank you for taking your time to response to my request. I tried out your script and I think that is what I've been looking for. I will try to use...
traucon
Offline Send Email
May 9, 2008
2:24 pm

Hi hew_r3, I tried it on my script and it does work fine as long as I'm in the regular internet explorer window. However, once the Internet explorer load the...
traucon
Offline Send Email
May 10, 2008
1:31 am

Hey, No worries. Not sure about a flash error. I can see how it's a problem. You could possibly try using PixelGetColor (or PixelSearch). If there's a...
hew_r3
Offline Send Email
May 10, 2008
12:26 pm

Hi Hew, Got your suggestion and implemented last night...and it works beautifully. Thank you for such a great idea. My daughter loves the automation tasks that...
traucon
Offline Send Email
May 12, 2008
1:40 am

Hi Trau Con, I'm glad I could help. It was my first time answering and I just thought it's about time I tried to give some help because I know I've needed it...
hew_r3
Offline Send Email
May 16, 2008
1:31 am
Advanced

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help