home *** CD-ROM | disk | FTP | other *** search
/ The World of Computer Software / World_Of_Computer_Software-02-385-Vol-1of3.iso / g / gdesk45.zip / SAMPLE.CMD < prev   
OS/2 REXX Batch file  |  1992-11-21  |  2KB  |  58 lines

  1. *
  2. * GIFDESK command language
  3. *
  4. * These are comment lines (either '*' or ';' prefix comment lines in col. 1)
  5. *
  6. * AVAILABLE COMMANDS: (MUST START IN COLUMN 1)!
  7. * (** = new command to this version)
  8. *  1ARRANGE  ; like F1, arrange in 1x1 format
  9. *  2ARRANGE  ; like F2, arrange in 2x2 format
  10. *  3ARRANGE  ; like F3, arrange in 3xn format
  11. *  4ARRANGE  ; like F4, arrange in smallest format
  12. *  BACK      ; previous page of pictures
  13. ** CLOCK=n   ; delay n seconds before doing next command
  14. *  DOWNRES   ; down to next resolution 1024x768 -> 800x600 -> 640x480
  15. *  EXIT      ; exit GIFDESK
  16. *  FIRST     ; move to 1st screen of pictures
  17. *  GRAY      ; toggles gray/color. Initial mode is color
  18. ** IFBEG lab ; if current screen is first set of pictures, goto label
  19. ** IFEND lab ; if current screen is last set of pictures, go to label
  20. ** JUMP lab  ; jump to a label in the command file (label preceded by :)
  21. ** KEYWAIT   ; wait for user to hit a key before doing next command
  22. *  LAST      ; move to last screen of pictures
  23. *  NEXT      ; next page of pictures
  24. *  PRINT     ; prints screen to LaserJet on LPT1 (use REDRAW prior ro PRINT)
  25. ** QUIT      ; "quit" to GIFDESK and allow use of all normal key functions
  26. *            ; (now user has full control of GIFDESK and must exit himself)
  27. *  REDRAW    ; allow screen to paint. Use before WRITE or PRINT
  28. *  SKIP=n    ; skips to files starting with n
  29. *  TOGGLE    ; switch into next arrangement format
  30. *  UPRES     ; up to next resolution 640x480 -> 800x600 -> 1024x768
  31. *  WRITE     ; write screen out to GIF file GIFDSKnn.GIF (use REDRAW prior to WRITE)
  32. ;
  33. ; Sample file:
  34. ;
  35. *** switch to 1x1 ***
  36. 1ARRANGE
  37. *** go to last picture ***
  38. LAST
  39. *** draw last picture and display for 2 seconds ***
  40. REDRAW
  41. CLOCK=2
  42. ** label for looping to ***
  43. :lb1
  44. *** backup up one picture ***
  45. BACK
  46. *** draw it ***
  47. REDRAW
  48. *** if all done (at beginning) go to endit label ***
  49. IFBEG endit
  50. *** let it display for 2 seconds ***
  51. CLOCK=2
  52. *** go to lb1 label to continue ***
  53. JUMP lb1
  54. *** endit label to end at ***
  55. :endit
  56. *** exit back to DOS ***
  57. ESC
  58.