home *** CD-ROM | disk | FTP | other *** search
/ Amiga ISO Collection / AmigaUtilCD2.iso / Misc / EDG-CT1.DMS / in.adf / CT.run / Scripts2 / 5 / Rotate < prev    next >
Encoding:
Text File  |  1995-10-17  |  785 b   |  37 lines

  1. /*
  2.                         Control Tower Arexx Script
  3.                            Written By J.L. White
  4.                          (C)1995 Merlin's Software
  5. Lines=5
  6. 01=Rotate
  7. 02= 
  8. 03=This script loads each image of the File List Window
  9. 04=into ImageFX and then rotates the images based on a
  10. 05=user defined angle.
  11.  
  12. */
  13.  
  14. options results
  15.  
  16. arg FrameNum TotalNum
  17. address "IMAGEFX.1"
  18.  
  19. if FrameNum = 0 then do
  20.     Learn "Ram:CT-IFR" NoHeader Quiet Force
  21.     Hook Rotate
  22.     Learn Stop Quiet Force
  23.     end
  24. else do
  25.     if exists("Ram:CT-IFR.ifx") then address command "Rename Ram:CT-IFR.ifx to Ram:CT-IFR"
  26.     call open TempFile,"Ram:CT-IFR",R
  27.     do until eof(TempFile)
  28.         line = readln(TempFile)
  29.         parse var line Start" "RestOfLine
  30.         if Start = "Hook" then Answer = line
  31.         end
  32.     call close TempFile
  33.     Answer
  34.     end
  35.  
  36. exit
  37.