home *** CD-ROM | disk | FTP | other *** search
- WinSize by Staffan Palmroos 1994
- --------------------------------
-
- Why?
-
- One day, when customizing my workbench, I found myself wanting to
- know how big a CLI-Window was, so that I could make it open with that
- size every time. But I didn't know how to get that information so i
- wrote this little utility.
-
- How?
-
- Using it is simple. Type 'WinSize' in a CLI window, and it will
- tell you how large it is. There is no icon supplied because it is
- meaningless to run it from WorkBench. It has even one option: -c. If
- you specify this option WinSize will give you a string suitable for
- backquoting, for example:
-
- echo NewCli CON:`WinSize -c`AmigaDOS >>s:user-startup
-
- This line will add a line in your user-startup that looks like
-
- NewCli CON:L/T/W/H/AmigaDOS
-
- Where L T W H is the size and position of the window. This line
- will open a CLI window with the same size as the window you typed the
- line in.
-
- Size?
-
- The program is 5080 (according to LIST) bytes. If your version is
- larger, it could be infected by a virus or something, so be warned!
-
- Who?
-
- I can be contacted over the net: d93stapa@isy.liu.se. You could
- also make me happy by sending a postcard from your home town. My
- address:
-
- Staffan Palmroos
- Rydsvägen 250 C:17
- 582 51 Linkoping
- Sweden.
-
- Cost?
-
- This program is What-Ever-You-Want-Ware, that is, you can do what
- ever you want with it: copy it, sell it, dissect it, erase it. There
- is only one thing you can't do, and that is to blame me for any
- inconveniance. I won't be responsible if anything happens that
- shouldn't happen due to my program.
-
- Code?
-
- I supply the source code, as a tutoring example of how you can find
- out a Windows size and other useful information. The code could
- probably be improved and optimized, but I don't find that neccesary.
- It is short enough, and it should be bug-free.
-
- The end?
-
- Thanks for your time. I hope you find this program somewhat useful.
- Please excuse me for any grammatical or spelling errors, but English
- is not my native language.
-
- Best regards,
-
- Staffan Palmroos.
-
-
-