home *** CD-ROM | disk | FTP | other *** search
- on mouseUp
- if the movieRate of sprite 3 = 0 then
- Connect()
- end if
- end
-
- on oldConnect
- openXLib(the pathName & "FILEIO.DLL")
- set loFILEIO to FileIO(mnew, "read", the pathName & "XLAUNCH.TXT")
- set lvLaunchFiles to loFILEIO(mReadFile)
- loFILEIO(mdispose)
- set lvWindowsFile to line 1 of lvLaunchFiles
- set lvCarSourceAddress to char 2 to 2000 of line 2 of lvLaunchFiles
- openXLib(the pathName & "MISC_X.DLL")
- set loMISC_X to misc_x(mnew)
- set lvAnswerIsTrue to loMISC_X(mFileExists, lvWindowsFile)
- loMISC_X(mdispose)
- closeXLib(the pathName & "MISC_X.DLL")
- if lvAnswerIsTrue then
- go("Launch")
- open(lvCarSourceAddress)
- quit()
- else
- go("Error")
- end if
- end
-
- on xConnect
- openXLib(the pathName & "FILEIO.DLL")
- set loFILEIO to FileIO(mnew, "read", the pathName & "LAUNCH.TXT")
- set lvLaunchFiles to loFILEIO(mReadFile)
- loFILEIO(mdispose)
- set lvCarSourceAddress to line 1 of lvLaunchFiles
- closeXLib(the pathName & "FILEIO.DLL")
- openXLib(the pathName & "dllglue.dll")
- set loGetDesktopWindow to dllglue(mnew, "USER32", "getDesktopWindow", "L", "V")
- set loShellExecute to dllglue(mnew, "SHELL32", "shellExecuteA", "L", "LSSSSL")
- set lvRet to loShellExecute(mCall, loGetDesktopWindow(mCall), "open", lvCarSourceAddress, EMPTY, EMPTY, 10)
- loGetDesktopWindow(mdispose)
- loShellExecute(mdispose)
- closeXLib(the pathName & "DLLGLUE.DLL")
- if lvRet <= 32 then
- go("Error")
- else
- go("launch")
- end if
- end
-
- on Connect
- openXLib(the pathName & "FILEIO.DLL")
- set loFILEIO to FileIO(mnew, "read", the pathName & "LAUNCH.TXT")
- set lvLaunchFiles to loFILEIO(mReadFile)
- loFILEIO(mdispose)
- set lvCarSourceAddress to line 1 of lvLaunchFiles
- closeXLib(the pathName & "FILEIO.DLL")
- openXLib(the pathName & "dllglue.dll")
- set loWinExec to dllglue(mnew, "KERNEL", "WinExec", "I", "SI")
- set lvRet to loWinExec(mCall, "start " & lvCarSourceAddress, 1)
- loWinExec(mdispose)
- closeXLib(the pathName & "DLLGLUE.DLL")
- end
-