Hi CM

A minor correction...
I wrote:

> Actually, Keys doesn't usually need a {to something}
> if you Wait for a window to become active.

but on second thoughts, I can see a good reason for including
{to c=ConsoleWindowClass)

What happens if the console window fails to appear?

If your script says:
  Wait.for(300,activewindow("c=ConsoleWindowClass"))
  Wait.for(100)
  Keys a

and the cmd window doesn't become active within 300 msecs
then the "a" will be sent to whatever else is active
which is not what you want.

If your script says:
  Wait.for(300,activewindow("c=ConsoleWindowClass"))
  Wait.for(100)
  Keys {to c=ConsoleWindowClass)a

and the cmd window doesn't become active within 300 msecs
then your scriptlet (in more commands) will halt with an
error message "no such window to send the keys to"
which is better than sending "a" to the wrong window.

So maybe it's better to keep the {to something} in your keys command.




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/
 



Reply via email to