home *** CD-ROM | disk | FTP | other *** search
- on HANChooseSoftware
- global HANTextSprite, HANSoftwareList, HANSoftWareSelected, HANCopyButton, DriveLtr, HANIconSprite
- if rollOver(HANTextSprite) then
- if the member of sprite HANIconSprite = member "HANICONTWO" then
- set the member of sprite HANIconSprite to member "HANICONONE"
- updateStage()
- end if
- if the mouseDown then
- set Whichsoft to 0
- set WhichLine to the mouseLine
- repeat with t = 1 to count(HANSoftwareList)
- if getAt(getAt(HANSoftwareList, t), 1) = WhichLine then
- set Whichsoft to getAt(getAt(HANSoftwareList, t), 2)
- exit repeat
- end if
- end repeat
- if Whichsoft <> 0 then
- set HANSoftWareSelected to Whichsoft
- hilite line the mouseLine of field "HANTEXT"
- end if
- repeat while the mouseDown
- end repeat
- end if
- end if
- if HANSoftWareSelected <> 0 then
- if rollOver(HANCopyButton) then
- set the member of sprite HANCopyButton to member "HanRdCopy"
- updateStage()
- repeat while rollOver(HANCopyButton)
- if the mouseDown then
- set the member of sprite HANCopyButton to member "HanRdCopyIn"
- updateStage()
- put "HANSoftWareSelected", HANSoftWareSelected
- set a to DriveLtr & "HANDSON\SOFTWARE\" & HANSoftWareSelected
- set b to the pathName & "COPY.EXE"
- open(a, b)
- set HANSoftWareSelected to 0
- set the hilite of member "HANTEXT" to 0
- repeat while the mouseDown
- end repeat
- exit repeat
- end if
- end repeat
- set the member of sprite HANCopyButton to member "HanBlCopy"
- updateStage()
- end if
- end if
- end
-