I wrote:

> ... plus I think the @RefreshBar section will not be called,
> which makes it much more efficient.
and then:
> PS It has been quite a while since I last looked at the
> WinBar scripts (or any other scripts). I hope my ideas
> above don't turn out to be unworkable :)

oops, I just checked... @RefreshBar is jumped to at the end
of every move/size routine including MoveOtherMonitor.

We want to avoid that, so I suggest you try this instead:

First add a new labelled section at the end of the script:

@HiddenUse
static zHiddenUse = 1
zTarget = arg(1)
quit

also, add this right at the start of @RefreshBar:

static zHiddenUse
If(zHiddenUse)do
zHiddenUse = 0
quit
endif

Now, instead of calling @SetStatic as in my last message,
make your first call like this:
[EMAIL PROTECTED](<handle expression>)

which not only allows you to specify a new handle, but also
sets up a static warning that an exceptional way of using
the script will follow, so @RefreshBar will be aborted
as soon as it starts.

That new static zHiddenUse could possibly be useful in other
places too:
If(zHiddenUse) then don't bother doing the following code.

----

Sorry if these messages are a bit messy. I'll have a more careful
look at this whole issue of invisible usage and integrate it
into the script somehow. One day.



------------------------ Yahoo! Groups Sponsor --------------------~--> 
1.2 million kids a year are victims of human trafficking. Stop slavery.
http://us.click.yahoo.com/.QUssC/izNLAA/TtwFAA/JV_rlB/TM
--------------------------------------------------------------------~-> 

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