home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 1997 September / Personal_Computer_World_Sep_97.iso / DXRS / SLIPCW09.DXR / 00008_copyfiles.ls < prev    next >
Encoding:
Text File  |  1997-06-27  |  2.4 KB  |  41 lines

  1. on copyfiles
  2.   global DriveLtr, SLIdatabaselist, SLIchosenprogramdetails, SLImainmenuhilitenumber, SLImainmenutextnumber, SLIsunmenuhilitenumber, SLImainmenubacknumber, SLIsubmenubacknumber, SLIsubmenuhilitenumber, SLIsubmenutextnumber, SLIactiveprogramlist, SLIBackArrowNumber, SLIForwardArrowNumber, SLIsubmenubackshadownumber, SLIActionButton, SLICopyButton, SLItextboxframe, SLIInfoTabRect, SLIProcTabRect, SLIExtraTabRect, SLIpicturebox, SLITextBoxContents, SLITextFilesLoaded, SLIplatformcheckbox, SLIRunButtonList, SLIInstallButtonList, SLIActionList, SLIFullTextOptionBox, SLITextLoadOptionRect, SLIFullTextTick, SLIPictureBoxNumber, SLIAddressBoxNumber, SLIProductBoxNumber, SLIPlatformCheck01, SLIPlatformCheck02, SLIPlatformCheck03, SLIPlatformCheck04, SLIInstallButtonTextBox, SLIRunButtonTextBox, SLICopyWIthInstallTextBox, SLICopyWIthRunTextBox, SLIExecuteTextBox
  3.   set textboxwaiting to 1
  4.   set the member of sprite SLIExecuteTextBox to member "CopyButtonTextBox"
  5.   set the loc of sprite SLIExecuteTextBox to point(270, 275)
  6.   updateStage()
  7.   repeat while textboxwaiting = 1
  8.     if rollOver(SLIExecuteTextBox) then
  9.       set mousewordnumber to the mouseWord
  10.       if mousewordnumber > 0 then
  11.         set currentword to word mousewordnumber of field "CopyButtonTextBox"
  12.         case currentword of
  13.           "continue":
  14.             set the foreColor of word mousewordnumber of field "CopyButtonTextBox" to 256
  15.             repeat while the mouseWord = mousewordnumber
  16.               if the mouseDown then
  17.                 set folder to DriveLtr & the RunFilePathname of SLIchosenprogramdetails
  18.                 open(folder, DriveLtr & "dxrs\copysl.exe")
  19.                 set the loc of sprite SLIExecuteTextBox to point(2000, 2000)
  20.                 updateStage()
  21.                 set textboxwaiting to 0
  22.                 exit repeat
  23.               end if
  24.             end repeat
  25.           "cancel":
  26.             set the foreColor of word mousewordnumber of field "CopyButtonTextBox" to 256
  27.             repeat while the mouseWord = mousewordnumber
  28.               if the mouseDown then
  29.                 set the loc of sprite SLIExecuteTextBox to point(2000, 2000)
  30.                 updateStage()
  31.                 set textboxwaiting to 0
  32.                 exit repeat
  33.               end if
  34.             end repeat
  35.         end case
  36.         set the foreColor of word mousewordnumber of field "CopyButtonTextBox" to 0
  37.       end if
  38.     end if
  39.   end repeat
  40. end
  41.