--- Thomas wrote:
> The output is: TEnterPswDlg
Try this code:
@MyProgLaunch
If(AnyWindow("=MyProg")) Do
Win.Show("MyProgCaption AnyText*")
Else
%ProgramFiles%\MyProg\MyProg.exe
Wait.For(AnyWindow("C=TEnterPswDlg"))
Win.Keys("{To C=TEnterPswDlg}1234567890{Enter}")
EndIf
Quit
It appears that you have been removing the actual EXE paths and
captions from your examples, so this is only a guess, but is is
possible that your program is slightly changing its caption each time?
This would explain why you are having problems.
Regardless of this, the above code should work properly for you
because the class of a window should not change.
Please let us know if that does or does not improve things for you.
--
Alex Peters / Melbourne, Australia
PowerPro v3.8.21 / Windows XP
------------------------ Yahoo! Groups Sponsor --------------------~-->
$9.95 domain names from Yahoo!. Register anything.
http://us.click.yahoo.com/J8kdrA/y20IAA/yQLSAA/JV_rlB/TM
--------------------------------------------------------------------~->
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/power-pro/
<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/