home *** CD-ROM | disk | FTP | other *** search
Wrap
on keyscript if (the keyCode = 123) or (the keyCode = 124) then if the keyCode = 123 then keyback() end if if the keyCode = 124 then keyforward() end if end if end on keyforward 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 set numberofsections to count(SLIdatabaselist) set numberofprogramsinsection to count(getAt(SLIdatabaselist, getAt(SLIactiveprogramlist, 2))) set numberofprogramsinlastsection to count(getAt(SLIdatabaselist, numberofsections)) if SLIactiveprogramlist = list(numberofprogramsinlastsection, numberofsections) then nothing() else if getAt(SLIactiveprogramlist, 1) < numberofprogramsinsection then setAt(SLIactiveprogramlist, 1, getAt(SLIactiveprogramlist, 1) + 1) else if getAt(SLIactiveprogramlist, 2) < numberofsections then setAt(SLIactiveprogramlist, 2, getAt(SLIactiveprogramlist, 2) + 1) setAt(SLIactiveprogramlist, 1, 1) end if end if repeat while the mouseDown end repeat set thismenutitle to string(getPropAt(SLIdatabaselist, getAt(SLIactiveprogramlist, 2))) set chooseprogcommand to "set SLIchosenprogramdetails = the prog" & getAt(SLIactiveprogramlist, 1) & " of the " & thismenutitle & " of SLIdatabaselist" do(chooseprogcommand) refreshprogramdetails() end if end on keyback 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 if SLIactiveprogramlist = list(1, 1) then nothing() else set numberofsections to count(SLIdatabaselist) set numberofprogramsinsection to count(getAt(SLIdatabaselist, getAt(SLIactiveprogramlist, 2))) if getAt(SLIactiveprogramlist, 1) > 1 then setAt(SLIactiveprogramlist, 1, getAt(SLIactiveprogramlist, 1) - 1) else if getAt(SLIactiveprogramlist, 2) > 1 then setAt(SLIactiveprogramlist, 2, getAt(SLIactiveprogramlist, 2) - 1) set numberofprogramsinprevioussection to count(getAt(SLIdatabaselist, getAt(SLIactiveprogramlist, 2))) setAt(SLIactiveprogramlist, 1, numberofprogramsinprevioussection) end if end if repeat while the mouseDown end repeat set thismenutitle to string(getPropAt(SLIdatabaselist, getAt(SLIactiveprogramlist, 2))) set chooseprogcommand to "set SLIchosenprogramdetails = the prog" & getAt(SLIactiveprogramlist, 1) & " of the " & thismenutitle & " of SLIdatabaselist" do(chooseprogcommand) refreshprogramdetails() end if end