Lots of ideas. Basically, you'd call EnumWindows, test IsIconic/IsZoomed,
call ShowWindow(SW_RESTORE) if maximized, call MoveWindow or SetWindowPos as
desired. GetWindowRect will give you current coords, and
GetForegroundWindow will tell you what's in front.
None of these suggestions will fly in vbscript, though, and you're otherwise
posting to ClassicVB groups so don't expect much in the VFred realm either.
HTH!
--
Working without a .NET?
http://classicvb.org/
PS
I am looking for something to do something like this
1. user minimizes all windows except the one you want the size of
2. user runs "Get Size" utility, which has code like:
myHeight = fnGetHeightOfTopWindow
myWidth = fnGetWidthOfTopWindow
MsgBox "height=" & myheight & vbcrlf & "width=" & mywidth
3. user minimizes all windows except the ones you want resized
4. user runs "Set size" utility - it prompts for height/width (or gets
them from a prefs file), you type the numbers, click OK, and it sets
the height/width of all open windows to
that
Here ya go: http://vb.mvps.org/samples/apixref.asp
(Become one with Control-F!)
The following script will resize all folders to 400 x 400
and line them up in a stepdown fashion from the
upper left of the screen:
-------------------
Dim shl, wins, i, sl, Wid, Ht, Top, Left
Set shl = CreateObject("Shell.Application")
Set wins = shl.windows
Top = 0
Left = 0
Wid = 400
Ht = 400
For i = 0 to wins.count - 1
sl = wins.item(i).Left
If sl < 2900 Then '--minmized window returns 3000 in Win9x, 32000
in WinNT.
With wins.item(i)
.Left = Left
.Top = Top
.Width = Wid
.Height = Ht
End With
Top = Top + 100
Left = Left + 100
End If
Next
Set wins = Nothing
Set shl = Nothing
--
mayaya...@mindXXspring.com
(Remove Xs for return email.)
Mad Scientist Jr <usenet_...@yahoo.com> wrote in message
news:1133374583.0...@g14g2000cwa.googlegroups.com...