home *** CD-ROM | disk | FTP | other *** search
-
- ; put in a script to run when you use no-startup-sequence,
- ; to automatically resize the "AmigaDOS" window to whatever you want...
-
- ; StartHack 0 8 640 100
-
- ; x y w h
-
- If FromCLI
-
- FindScreen 0
-
- *scr.Screen = Peek.l(Addr Screen(0))
-
- winlist
- *win.Window = *scr\FirstWindow
- While *win
- If Peek$(*win\Title)="AmigaDOS" Then Goto popout
- *win = *win\NextWindow
- Wend
- *scr=*scr\NextScreen
- If *scr Then Goto winlist
-
- End
-
- popout
-
- Free Screen 0
-
- If NumPars=4
- x.w=Val(Par$(1))
- y.w=Val(Par$(2))
- width.w=Val(Par$(3))
- height.w=Val(Par$(4))
- Else err$="StartHack < x y width height >"+Chr$(10)+Chr$(0):PutStr_ err$
- End
- EndIf
-
- ChangeWindowBox_ *win,x,y,width,height
- End
-
- EndIf
-
- End
-