home *** CD-ROM | disk | FTP | other *** search
- /*
- Control Tower Arexx Script
- Written By J.L. White
- (C)1995 Merlin's Software
-
- Lines=7
- 01=Gradually Adjust Contrast
- 02=
- 03=This script loads each image of the File List Window
- 04=into ImageFX and Gradually adjust the Contrast over
- 05=the length of frames. It divides the total number of
- 06=frames by the current frame number * the highest value
- 07=of this function to gradually adjust the list.
-
- */
-
- options results
-
- arg Num TotalNum
- address "IMAGEFX.1"
-
-
- if Num = 0 then do
- Num = 1
- Gadget.1 = 'Select Direction To Use!'
- Gadget.2 = 'UP'
- Gadget.3 = 'DOWN'
- ListRequest 3 Gadget
- if result = 2 then Answer = "UP"
- if result = 3 then Answer = "DOWN"
- call open TempFile,"Ram:CT-IFGC",W
- call writeln TempFile,Answer
- call close TempFile
- end
- else do
- call open TempFile,"Ram:CT-IFGC",R
- line = readln(TempFile)
- parse var line Answer
- call close TempFile
- end
-
- NewNum = ((Num * 127)/(TotalNum))
- NewNum = trunc(NewNum)
- if Num > 1 then do
- if Answer = "UP" then
- Contrast NewNum
- else
- Contrast 0-NewNum
- end
- exit
-