On 5/9/05, brucexs <[EMAIL PROTECTED]> wrote:
> Maybe some dependency in another script on hookwindowsevents running
> is causing this failure.   Can you think what it might be?

I only have one script running from hookwindowsevents. Here's the
entire script:
<begin script>
;maximizes to the proper height on portrait monitor if right monitor
is in portrait.

;check the virtual screen width. More than 2800 means no portrait
If(win.getsystemmetrics(SM_CXVIRTUALSCREEN) gt 2800)
quit

If(arg(1) ne 1)
quit

wait for 50
if(not win.maxxed(arg(2)))
quit

If(win.left(arg(2)) gt 1599)
win.size(arg(2), 1200, 1600)
quit

</end script>

Alan wrote most of it for me, but I added the first section so it
would quit if I had the second monitor in landscape mode. PowerPro has
not shut down since I disabled it, but it's only been a couple hours.
It shut down about 3-4 times earlier in the day, though.

> In meantime, as work around, add statements
> if (g_disabled)
> quit
> 
> to start of script and add a startup scheduled event
> global g_disabled=1
> 
> The add a button or hot key
> g_disabled = 1-g_disabled
> to toggle.

Will do!
-- 

Sue Chastain


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