Bruce,

Along time ago, you talked about writing a Win.Pos1000(han, x, y, w, h).

If you are still interested in developing this, I think it would be 
very useful especially now that there are so many apps changing the 
screen work area.



I've written a script about 6 months ago that has been working great 
using this idea (if it wasn't so ugly, I'd post it).

I'm using 0 to 1000 for both the x and y values, and using 
WIN.getworkarea() instead of the xscreen and yscreen screen dimensions.

Works great for when the Googlebar or other ontop apps that reset the 
screen work area so I can write window positioning that works for all 
situations across different computers and even for MDI windows.


eg:
Win.Pos1000(han, 0, 0, 500, 1000)    <- Left half of getworkarea
Win.Pos1000(han, 0, 500, 1000, 500)  <- Bottom half of getworkarea
Win.Pos1000(han, 0, 0, "=", "=")     <- Moves to top left of getworkarea
Win.Pos1000(han, "=", "=", 250, 500) <- Sizes window

Win.Pos1000(han, 0, 0, "pixel=363", "pixel=461")   <- Mixes getworkarea 
with pixel dimensions

Win.Pos1000(han, "center", 200, "pixel=363", "pixel=461")   <- Why my 
script is so ugly



If I'm positioning a MDI window and use the dimensions of the parent 
instead of WIN.getworkarea(), the same script works as follows:

Win.Pos1000(hMDI, 500, 500, 500, 500)  <- Right bottom quarter of Parent



Another reason my script is so ugly, is that I've included things like 
x, y, w, h offsets so that window borders overlap both the workspace 
edges and each other. You don't normally include these finishing 
touches (some say "control the scope better"); but if you did something 
like this, I believe it also would be useful.

eg. WIN.SetOffSpace(left,right,top,bottom) <- internal global vars



Works great for scripts between different computers with different 
software running and different monitors. I don't have dual monitors to 
script for these quirks.



When you're looking for something to do...

A response isn't necessary,

Ted







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