Long shot - is it possible that your antivirus
software is being precipitated to think about each
of the executables in turn?
Aren't there easier ways to set them invisible
anyway via the command list properties?
Aubrey
s> A script that loops through the buttons of an
s> active bar and sets some of them invisible takes several
s> seconds to update my active bar. Why is that,
s> and what can I do to speed it up?
s> This is particularly true when the bar is
s> repainted after switching from another virtual desktop.
s> Summaries of bar and script definitions
s> follow, sorry if it's complicated, I did try to strip it down as much
s> as possible. The bar is:
s> [An existing active bar:Properties]
s> Format1 = Position: FixedTopLeft
s> [1]
s> Id = one
s> LCmd1 = ; whatever
s> ...
s> [10]
s> Id = stop at this button
s> LCmd1 = ; whatever
s> The script is:
s> local bar="An existing active bar"
s> local hcl=cl.get(bar)
s> if(visiblewindow(bar))
s> hcl.close
s> miscplugin.sleep(250)
s> // this loop takes a long time, why?
s> local bShow=0 // or =1
s> for(i=0; 1; i++)
s> if("stop at this button" == hcl.getid(i))
s> break
s> // bar shows up unpredictably when switching from another vdesk
s> window.hide_(bar)
s> hcl.setvisible(i, bShow)
s> endfor
s> // if I don't do exactly
s> show.addproperties.refresh in this
s> // order bar won't be updated or won't show...
s> hcl.show;;+
s> .addproperties("Format=Position:
s> BottomEdgeCurrentSize");;+
s> .refresh
s> Attention: PowerPro's Web site has moved: http://www.ppro.org
s> Yahoo! Groups Links