home *** CD-ROM | disk | FTP | other *** search
- /* Visage_Slideshow for Directory Opus 5 and Visage.
- By Leo Davidson ("Nudel", Pot-Noodle/Gods'Gift Utilities)
-
- $VER: Visage_Slideshow.dopus5 1.2 (18.8.95)
-
- NOTE: This script _requires_ DOpus v5.11 or above.
-
- This simple script will call "Visage" to display a slideshow of all
- pictures in the source-lister's path. A requester will appear so that you
- can give it a password to xpk-decrypt the pictures with, if required.
-
- To change the amount of time pictures are displayed for, alter the
- "Visage_Delay" variable below (time in seconds).
-
- Call as:
- ------------------------------------------------------------------------------
- ARexx DOpus5:ARexx/Visage_Slideshow.dopus5 {Qp} {s}
- ------------------------------------------------------------------------------
- Turn off all switches.
-
- v1.00 -> v1.01 - Very minor tidying up.
- Now checks to make sure the DOPUS.x port exists.
- v1.01 -> v1.2 - Now uses Show() instead of ShowList(). (Thanks Stoebi)
- Style Guide compliant version numbering and $VER string.
-
- */
- /*- Path to Visage command -------------------------------------------------*/
- Visage_Path = "DH0:Tools/Art/Utils/Visage"
- /*- Delay variable ---------------------------------------------------------*/
- Visage_Delay = 5
- /*--------------------------------------------------------------------------*/
- options results
- options failat 99
- signal on syntax;signal on ioerr /* Error trapping */
- parse arg DOpusPort source_path.0
- DOpusPort = Strip(DOpusPort,"B",'" ')
- source_path.0 = Strip(source_path.0,"B",'" ')
-
- If DOpusPort="" THEN Do
- Say "Not correctly called from Directory Opus 5!"
- Say "Load this ARexx script into an editor for more info."
- EXIT
- END
- If ~Show("P",DOpusPort) Then Do
- Say DOpusPort "is not a valid port."
- EXIT
- End
- Address value DOpusPort
-
- dopus getstring '"Enter password, if required" 256 "" Okay|Cancel'
-
- If DOPUSRC = 0 Then
- Exit
- Else
- If Result = "RESULT" Then
- Visage_Password = ""
- Else
- Visage_Password = ' PASSWORD "' || RESULT || '"'
-
- address command Visage_Path source_path.0 || "#? DELAY" Visage_Delay Visage_Password "NOBUSY FOREVER QUIET RANDOM WAITFORPIC CENTRE"
-
- syntax:;ioerr: /* In case of error, jump here */
- EXIT
-