home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World Komputer 1998 July & August
/
Pcwk78b98.iso
/
Smart30
/
ENGLISH
/
PRODUCTS
/
LOTUS018.DSK
/
123W.SMM
next >
Wrap
INI File
|
1994-07-28
|
7KB
|
424 lines
[ver]
4
[sty]
_macro.sty
[files]
[charset]
82
ANSI (Windows, IBM CP 1252)
[revisions]
0
[prn]
COMPAQ PAGEMARQ 20
[port]
LPT3:
[lang]
1
[fldnames]
Field1
Field2
Field3
Field4
Field5
Field6
Field7
Field8
[desc]
Launch 123W
Lotus WPD Marketing
Beginner
Exec, ActivateApp
noautorun
775438660
24
674329275
293
3
0
0
0
0
0
[fopts]
0
1
0
0
[lnopts]
2
Body Text
1
[docopts]
5
2
[GramStyle]
[ParaNum]
1
[l1]
0
[pg]
3
47 0 86 0 0 0 0 65535 41 Standard 65535 0 0 0 0 0 0 0 0 0 65535 0 0 65535 0 0 0 0 0
94 0 10 0 0 0 0 65535 65535 Standard 65535 0 0 0 0 0 0 0 0 0 65535 0 0 65535 0 0 0 0 0
95 0 0 1025 0 0 0 65535 65535 Standard 65535 0 0 0 0 0 0 0 0 0 65535 0 0 65535 0 0 0 0 0
[edoc]
<:#282,9360>Macro by <+!>Charlie Pappas<-!>
<:#275,9360>
@Function@<:#282,9360>function execsuite()
<:#275,9360>app = "123w.exe"
appname = "1-2-3 for Windows" <:f200,BArial,0,0,255>'appname for 123w
<:f><:f200,BArial,0,0,255><:f>
appname2 = "Lotus 1-2-3" <:f200,BArial,0,0,255>'appname for 123r4 or higher<:f>
defdir = "c:\123w" <:f200,BArial,0,0,255>'defdir for 123w<:f>
defdir2 = getprofilestring$("Lotus Applications","123w","Lotus.ini")
<:f200,BArial,0,0,255>'for 123r4 or higher<:f>
defdir2 = strfield$(defdir2,1," ") <:f200,BArial,0,0,255>'for 123r4 or higher<:f>
ignorekeyboard(2)
<:#275,9360>declare missouri(xapp) ' <:f200,QCourier,0,0,255>declare user defined functions
<:#275,9360>declare getprofile(xappname)
<:#275,9360>declare writeprofile(path, xappname)
<:#275,9360>declare tryit(path, xapp)
<:#275,9360>defstr path;
<:f200,BArial,0,0,255>'this section is for 123R4 or higher<:f>
if appisrunning(appname2) ' <:f200,QCourier,0,0,255>first see if app is already running
activateapp(appname2) ' <:f200,QCourier,0,0,255>if the app is running, just activate it
apprestore(appname2) ' <:f200,QCourier,0,0,255>make sure it is not minimized<:f>
<:#275,9360> return 1
<:#275,9360>endif
<:f200,BArial,0,0,255>'this section is for 123w<:f>
if appisrunning(appname) ' <:f200,QCourier,0,0,255>first see if app is already running
activateapp(appname) ' <:f200,QCourier,0,0,255>if the app is running, just activate it
apprestore(appname) ' <:f200,QCourier,0,0,255>make sure it is not minimized<:f>
return 1
endif
<:f200,QCourier,0,0,255>
if defdir2 != ""
exec(defdir2,"") <:f200,BArial,0,0,255>'for 123R4 or higher<:f>
exit function
endif
<:f200,BArial,0,0,255>
<:f200,BArial,0,0,255>'From this point on, code is for 123w only<:f>.
<:f200,BArial,0,0,255>123R4 or higher should not need this code
<:f200,BArial,0,0,255>'unless the 123 line in the lotus.ini file is invalid<:f>.
<:#275,9360>if 0 = doschdir(defdir) ' <:f200,QCourier,0,0,255>try and change to the default directory for launch
<:#275,9360> if tryit("", app) <;> 31
<:#275,9360> return 1
<:#275,9360> endif
<:#275,9360>endif
<:#275,9360>if tryit(getprofile(appname), app) <;> 31 ' <:f200,QCourier,0,0,255>if we launch, get out<:f>
<:#275,9360> return 1
<:#275,9360>endif
<:#275,9360>again:
<:#275,9360>if assign(&path, missouri(app)) <<<;> 0 ' <:f200,QCourier,0,0,255>show me where the exe is
<:#275,9360> if tryit(path, app) <;> 31
<:#275,9360> writeprofile(path, appname)
<:#275,9360> else
<:#275,9360> goto again
<:#275,9360> endif
<:#275,9360>endif
<:#275,9360>end function
<:#275,9360>
@Function@<:#282,9360>function tryit(path, app) ' <:f200,QCourier,0,0,255>this function attemts to exec the app
<:#275,9360>doschdir(path)
<:#275,9360>return exec(strcat$(path, app), "")
<:#275,9360>end function
<:#275,9360>
@Function@<:#282,9360>function writeprofile(path, appname) ' <:f200,QCourier,0,0,255>save the path if exec works
<:#275,9360>writeprofilestring("LotusApps", appname, path, "amipro2.ini")
<:#275,9360>end function
<:#275,9360>
@Function@<:#282,9360>function getprofile(appname) ' <:f200,QCourier,0,0,255>get the path of successful exec
<:#275,9360>defstr path;
<:#275,9360>if assign(&path, getprofilestring$("LotusApps", appname, "amipro2.ini")) <<<;> ""
<:#275,9360> return path
<:#275,9360>endif
<:#275,9360>return getprofilestring$("LotusApps", appname, "amipro.ini")
<:#275,9360>end function
<:#275,9360>
@Function@<:#282,9360>function missouri(app) ' <:f200,QCourier,0,0,255>ask user for location of exe
<:#275,9360>defstr box;
<:#275,9360>filledit(9001, "*.exe")
<:#275,9360>filledit(8007, app)
<:#275,9360>if assign(&box, dialogbox(".", "findapp")) <<<;> 1
<:#275,9360> return 0
<:#275,9360>endif
<:#275,9360>return getcurrentdir$()
<:#275,9360>end function
<:#275,9360>
<:#275,9360>
@Function@<:#282,9360>DIALOG findapp
<:#275,9360>-2134376448 7 70 35 200 97 "" "" "Find Application"
<:#275,9360>FONT 8 "Helv"
<:#275,9360>7 34 59 8 1000 1342177280 "static" "&Program path:" 0
<:#275,9360>6 45 60 44 9001 1352728579 "listbox" "" 0
<:#275,9360>155 5 40 14 1 1342373889 "button" "OK" 0
<:#275,9360>155 21 40 14 2 1342373888 "button" "Cancel" 0
<:#275,9360>68 34 80 8 7999 1342177280 "static" "" 0
<:#275,9360>7 6 142 9 1006 1342177280 "static" "Change into the directory that contains" 0
<:#275,9360>7 16 107 8 8007 1342177280 "static" "" 0
<:#275,9360>END DIALOG
<:#275,9360>
>
[Embedded]
00005485
>
[macsum] 6
execsuite 0 0 7 2
tryit 757 2 1 55
writeprofile 838 2 1 60
getprofile 912 1 2 64
missouri 1086 1 2 72
findapp 1243 0 -1 83
[macse]
14 execsuite
7 "123w.exe"
8 1
7 "1-2-3 for Windows"
8 2
7 "Lotus 1-2-3"
8 3
7 "c:\123w"
8 4
0 286 "Lotus Applications" "123w" "Lotus.ini"
13
8 5
0 20 "{5}" 1 " "
13
8 5
0 32 2
0 1032 "{3}"
13
11 00000261
0 38 "{3}"
0 1031 "{3}"
5 1
15
9
0 1032 "{2}"
13
11 00000330
0 38 "{2}"
0 1031 "{2}"
5 1
15
9
6 5
7 ""
18 1
11 00000387
0 22 "{5}" ""
6 0
15
9
5 0
0 781 "{4}"
13
18 0
11 00000488
16 tryit "" "{1}"
13
5 31
18 3
11 00000488
5 1
15
9
16 getprofile "{2}"
13
16 tryit [X] "{1}"
13
5 31
18 3
11 00000574
5 1
15
9
16 missouri "{1}"
13
0 805 &6 [X]
13
5 0
18 1
11 00000745
16 tryit "{6}" "{1}"
13
5 31
18 3
11 00000732
16 writeprofile "{6}" "{2}"
10 00000745
10 00000574
6 0
15
9
14 tryit
0 781 "{0}"
0 16 "{0}" "{1}"
13
0 22 [X] ""
13
15
9
6 2
15
9
14 writeprofile
0 287 "LotusApps" "{1}" "{0}" "amipro2.ini"
6 2
15
9
14 getprofile
0 286 "LotusApps" "{0}" "amipro2.ini"
13
0 805 &2 [X]
13
7 ""
18 1
11 00000113
6 2
15
9
0 286 "LotusApps" "{0}" "amipro.ini"
13
15
9
6 1
15
9
14 missouri
0 31 9001 "*.exe"
0 31 8007 "{0}"
0 26 "." "findapp"
13
0 805 &2 [X]
13
5 1
18 1
11 00000127
5 0
15
9
0 290
13
15
9
6 1
15
9
DIALOG findapp
-2134376448 7 70 35 200 97 "" "" "Find Application"
FONT 8 "Helv"
7 34 59 8 1000 1342177280 "static" "&Program path:" 0
6 45 60 44 9001 1352728579 "listbox" "" 0
155 5 40 14 1 1342373889 "button" "OK" 0
155 21 40 14 2 1342373888 "button" "Cancel" 0
68 34 80 8 7999 1342177280 "static" "" 0
7 6 142 9 1006 1342177280 "static" "Change into the directory that contains" 0
7 16 107 8 8007 1342177280 "static" "" 0
00005510