--- In [email protected], "brucexs" <[EMAIL PROTECTED]> wrote:
>
> > ------------------------------------------
> > If(Win.Class("AutoRun")
> > == "#32770")
> > If(Win.ChildTextByIndex("AutoRun", 1) == "SomeWindowName")
> > *Keys {sinp}{to autorun}%pSecretPassword{enter}
> >
>
> The above pair of ifs followed by *Keys does not work the way you
> might think it does. If the first if is false, the keys _is_
> executed. This might be a cause of your issue.
>
> In PowerPro, an if without a do controls only the next line. It
skips
> the next line if the if condition is false. So in the above case,
if
> the autorun window is not a dialog, the next line -- if -- is
skipped
> and the keys is executed.
>
> On the other hand, I cannot explain why the keys shows a syntax
error
> for you unless you have an old version of PowerPro without {sinp}.
>
so far, the script was always triggered correctly. so, even if the
if's are not quite save programming (I am long past my ASM, PL51,
nibble-level programming skills), so far it worked. but you are
right, I should make the if's foolproof.
{fast} and {sinp}, are they new? I just realized that I have PPro
4.3. How would I upgrade to version 4.4? just install that new
version?
dan
Attention: PowerPro's Web site has moved: http://www.ppro.org
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/power-pro/
<*> Your email settings:
Individual Email | Traditional
<*> To change settings online go to:
http://groups.yahoo.com/group/power-pro/join
(Yahoo! ID required)
<*> To change settings via email:
mailto:[EMAIL PROTECTED]
mailto:[EMAIL PROTECTED]
<*> 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/