On 5/10/05, mockey_a <[EMAIL PROTECTED]> wrote:
> Maybe something like that:
> 
> if (arg(1) == 1 && not win.maxxed(arg(2))) do
>  if (win.left(arg(2)) > 1599 && win.getsystemmetrics
> (SM_CXVIRTUALSCREEN) > 2800)
>    win.size(arg(2), 1200, 1600)
> endif

That didn't work. I forget what I changed, but I had it almost working
except that it was normalizing the window before sizing it, so it was
putting the window partly off-screen.

I did move the getsystemmetrics stuff lower down so it wasn't run on
every window event. If anyone is interested, what I have now is pasted
below and PowerPro has not been shutting down — knock on wood.

--
;maximizes to the proper height on portrait monitor if right monitor
is in portrait.

if (g_disabled)
quit

If(arg(1) ne 1)
quit

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

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

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

-- 

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