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%
> >
>