--- In [email protected], "swzoh" <[EMAIL PROTECTED]> wrote:
> Another update, the final, I think. It allowed the resizing only when
> specifying a rect "left top right bottom" for aRect:
> 
> When specifying rect "left top right bottom",
> resizing is also allowed by adding new width/height like
> "left top right bottom width height".
> 
> So, if aRect is "0 0 640 512 1280 1024", then "0 0 640 512" rect will
> be resized to new Width/Height 1280/1024.

Although I completely generalized the resizing to any cases, I didn't
upload it. Mainly because the args now become somewhat heterogeneous.
I combined screen and active window/client-area with the mouse cursor
into nFlags argument, while rect is separeted into other argument
which can now take values like "left top right bottom" or "left top
right bottom width height" or simply "width height" which affects the
screen or active window/client-area. The outline is this:

args  nFlags,aRect,sName

if(word(aRect,0)>=4)do  ;; rectangle
...

elseif(nFlags & 1) ;; active window
...

elseif(nFlags & 2) ;; active client area
...

else  ;; entire screen
...

endif

...

if(nFlags & 4)do ;; show mouse cursor
...
endif

if(word(aRect,0)==2 || word(aRect,0)==6)do ;; Resizing
local znW=word(aRect,-2)
local znH=word(aRect,-1)
...
endif

...

So, may change the script appropriately.

Sean






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/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/power-pro/join
    (Yahoo! ID required)

<*> To change settings via email:
    mailto:[EMAIL PROTECTED] 
    mailto:[EMAIL PROTECTED]

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