--- In [email protected], Ed Brownstein <[EMAIL PROTECTED]> wrote:
> Should it be
> Bar.format("autohide xx", "Timer")
> ??
> 
>> > anywindow("Timer") returns true but both following commands
> > 
> > Bar.Format("Timer", "autohide", 0)
> > Bar.Format("Timer", "autohide", 1000)
> > 
> > generate error messages like


I suggest avoiding bar.format and using cl.sethideafter.

For Bar.Format, you must use exactly two arguments, the first one 
being the bar name, and the second a string giving the format commands.

The reason is that syntax command.action() is really just syntatic 
sugar which generates the blank separated command syntax and then 
executes them.  But for Bar.format, the format strings actually have 
to go in the work directory edit box, which means the generated blank 
command is
bar format bar_name !`format_string
For 
bar.format("bar_name", "do not do this", "format_string")
the last argument is taken as the format string, the rest are taken as 
the bar name.  So in your above, PowerPro is trying to find a 
bar "timer autohide"





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/

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