home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
AmigActive 13
/
AACD13.ISO
/
AACD
/
Graphics
/
PPT
/
rexx
/
RevealEmbedFile.prx
< prev
next >
Wrap
Text File
|
1999-11-28
|
1KB
|
58 lines
/*
This is a simple script that shows you how easy it is to find the
hidden message from EmbedFile if you keep the original file around.
$Id: RevealEmbedFile.prx,v 1.1 1999/11/28 18:13:29 jj Exp jj $
*/
/*-------------------------------------------------------------------*/
/* I suggest you use this header as-is and add your own code below */
OPTIONS RESULTS
SIGNAL ON ERROR
IF ADDRESS() = REXX THEN DO
startedfromcli = 1
ADDRESS PPT
END
ELSE DO
startedfromcli = 0
ADDRESS PPT
END
RESULT = 'no result'
/*-------------------------------------------------------------------*/
/* Add your code here */
PARSE arg encodedframe
IF DATATYPE(encodedframe) ~= NUM THEN DO
RC = 10
RC2 = "No frame selected"
SIGNAL ERROR
END
ASKFILE '"Please select original cover file"' POS "Open"
filename = RESULT
LOADFRAME filename
origframe = RESULT
PROCESS encodedframe Composite WITH origframe METHOD Subtract
PROCESS encodedframe Bitfield 0 0
EXIT 0
/*-------------------------------------------------------------------*/
/* Again, keep this part intact. This is the error handler. */
ERROR :
returncode = RC
IF startedfromcli = 1 THEN DO
SAY 'ERROR ' returncode ' on line ' SIGL ': ' RC2
PPT_TO_BACK
END
ELSE
SHOWERROR '"'RC2'"' SIGL
EXIT returncode