home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga Magazin: Amiga-CD 2000 April & May
/
AMIGA_2000_04.iso
/
patches
/
redfix
/
redfix.lha
/
REDFiX
/
Rexx
/
AutoFX
/
SaveBufferAs_NewIcon.ifx.pre
< prev
next >
Wrap
Text File
|
1999-09-03
|
1KB
|
48 lines
/*
* $VER: SaveBufferAs_NewIcon.ifx.pre (AutoFX Arexx script) 1.0 (03.09.99) ® 1999 by Przemyslaw 'SENSEI' Gruchala
*
* Arexx script for AutoFX. Made for the REDFiX modules package.
*
* Based on the SaveBufferAs_ILBM.ifx.pre written by Thomas Krehbiel
*
* Save main buffer as NewIcon. Buffer must be CMAP!
*
* Inputs:
* Word(Arg(1),1) = Sequence number (?)
* Word(Arg(1),2) = Total number of frames (N)
*
* Returns:
* 0 if successful, non-zero on failure
*
*/
OPTIONS RESULTS
base = 'Autofx_SaveBufferAsNewIcon_'
seq = WORD(ARG(1),1)
lastpath = GETCLIP(base||'Path'||seq)
lastext = GETCLIP(base||'Ext'||seq)
IF lastpath = "" THEN DO
GetPrefs SavePath
lastpath = result
END
Gadget.1 = 'STRING 120 5 200 14 "Output Path:" "'lastpath'"'
Gadget.2 = 'FILEREQ 321 5 20 14 "Output Path:" "'lastpath'" AT=1 DIRONLY'
Gadget.3 = 'STRING 120 20 200 14 "New Extension:" "'lastext'"'
Gadget.4 = 'TEXT 120 35 1 1 "(** = current frame number)" 1'
Gadget.5 = 'END'
NewComplexRequest '"Save Buffer As NewIcon"' Gadget 360 56
IF rc ~= 0 THEN EXIT rc
CALL SETCLIP(base||'Path'||seq, result.1)
CALL SETCLIP(base||'Ext'||seq, result.3)
/* Wymuszamy pojawienie sie GUI za pierwszym razem. */
CALL SETCLIP(base||'GUI'||seq, "SHOWGUI")
EXIT