home *** CD-ROM | disk | FTP | other *** search
- /*
- ** GetModeID
- **
- ** $VER: GetModeID 1.0.0 (12.1.94)
- **
- ** This ARexx script contains a function which return with screen mode info
- ** for use with ADPro REXX commands that require screen mode info (Like
- ** GET_SCREEN_MODE or SET_ADPRO_MODE.
- **
- ** The user will have to PARSE the ModeInfo variable to get the data.
- **
- ** RTG boards that provide color mapped modes that emulate the Workbench will
- ** be shown as using the Amiga render library.
- **
- ** INPUTS
- ** User selection of a listed screen mode.
- **
- ** RETURN
- ** ModeInfo or "" if aborted
- **
- ** This script should work with current versions of ARexx.
- **
- ** This script requires ADPro v2.5.0 (or higher).
- **
- ** Copyright © 1994 ASDG, Incorporated
- ** All Rights Reserved
- */
-
-
- ADDRESS "ADPro"
- OPTIONS RESULTS
-
- NL = '0A'X
- SQ = '27'X
- DQ = '22'X
- TRUE = 1
- FALSE = 0
-
-
- /*
- ** Get a screen mode requestor
- */
-
- ADPRO_TO_FRONT
-
- GET_SCREEN_MODE '"Select a screen mode."' Amiga "XXX" 640 200 4
- ModeInfo = ADPRO_RESULT
- IF (RC ~= 0) THEN DO
- ADPRO_TO_FRONT
- OKAY1 "Could not get screen modes."
- EXIT 10
- END
-
- RETURN ModeInfo
-