home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World Komputer 1998 July & August
/
Pcwk78b98.iso
/
Smart30
/
ENGLISH
/
PRODUCTS
/
LOTUS018.DSK
/
ORGANIZE.SMM
< prev
next >
Wrap
INI File
|
1994-07-29
|
7KB
|
513 lines
[ver]
4
[sty]
_macro.sty
[files]
[charset]
82
ANSI (Windows, IBM CP 1252)
[revisions]
0
[prn]
PostScript Printer
[port]
LPT1:
[lang]
1
[fldnames]
Field1
Field2
Field3
Field4
Field5
Field6
Field7
Field8
[desc]
Launch Lotus Organizer
Lotus WPD Marketing
Beginner
Exec, ActivateApp
noautorun
775519133
23
674329275
164
2
0
0
0
0
0
[fopts]
0
1
0
0
[lnopts]
2
Body Text
1
[docopts]
5
2
[GramStyle]
[ParaNum]
1
[lay]
Standard
513
[rght]
15840
12240
1
1008
1440
1
1440
1008
0
1
0
1
0
2
1
1008
11232
12
1
720
1
1440
1
2160
1
2880
1
3600
1
4320
1
5040
1
5760
1
6480
1
7200
1
7920
1
8640
[hrght]
[lyfrm]
1
11200
0
0
12240
1440
0
1
3
1 0 0 0 0 0 0
0
0
1
[frmlay]
1440
12240
1
1440
72
1
792
1440
0
1
0
1
1
0
1
1440
10800
1
3
9360
[txt]
>
[frght]
[lyfrm]
1
13248
0
14400
12240
15840
0
1
3
1 0 0 0 0 0 0
0
0
2
[frmlay]
15840
12240
1
1440
792
1
14472
1440
0
1
0
1
1
0
1
1440
10800
2
2
4680
3
9360
[txt]
>
[elay]
[l1]
0
[pg]
2
45 0 14 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
83 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]
Macro by <+!>Charlie Pappas<-!>
@Function@function execsuite()
app = "organize.exe"
appname = "Lotus Organizer"
windir = GetWindowsDirectory$()
defdir = "{windir}organize"
'defdir2 = getprofilestring$("Lotus Applications","Organize","Lotus.ini")
<:f200,BArial,0,0,255>'for Organizer 1.1<:f><:f200,BArial,0,0,255> or higher<:f>
@Outline3@<:f200,BArial,0,0,255><:f>defdir2 = StrField$((GetProfileString$("Lotus Applications","Organize","Lotus.ini")),1," ")
<:f200,BArial,0,0,255><:f>ignorekeyboard(2)
declare missouri(xapp) ' <:f200,QCourier,0,0,255>declare user defined functions
declare getprofile(xappname)
declare writeprofile(path, xappname)
declare tryit(path, xapp)
defstr path;
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
if defdir2 != ""
exec(defdir2,"") <:f200,BArial,0,0,255>'for Organizer 1.1 or higher<:f>
Exit Function
endif
if 0 = doschdir(defdir) ' <:f200,QCourier,0,0,255>try and change to the default directory for launch
if tryit("", app) <;> 31
return 1
endif
endif
if tryit(getprofile(appname), app) <;> 31 ' <:f200,QCourier,0,0,255>if we launch, get out<:f>
return 1
endif
again:
if assign(&path, missouri(app)) <<<;> 0 ' <:f200,QCourier,0,0,255>show me where the exe is
if tryit(path, app) <;> 31
writeprofile(path, appname)
else
goto again
endif
endif
end function
@Function@<:#293,10224>function tryit(path, app) ' <:f200,QCourier,0,0,255>this function attemts to exec the app
<:#284,10224>doschdir(path)
<:#284,10224>return exec(strcat$(path, app), "")
<:#284,10224>end function
<:#275,10224>
@Function@<:#282,10224>function writeprofile(path, appname) ' <:f200,QCourier,0,0,255>save the path if exec works
<:#275,10224>writeprofilestring("LotusApps", appname, path, "amipro2.ini")
<:#275,10224>end function
<:#275,10224>
@Function@<:#282,10224>function getprofile(appname) ' <:f200,QCourier,0,0,255>get the path of successful exec
<:#275,10224>defstr path;
<:#275,10224>if assign(&path, getprofilestring$("LotusApps", appname, "amipro2.ini")) <<<;> ""
<:#275,10224> return path
<:#275,10224>endif
<:#275,10224>return getprofilestring$("LotusApps", appname, "amipro.ini")
<:#275,10224>end function
<:#275,10224>
@Function@<:#282,10224>function missouri(app) ' <:f200,QCourier,0,0,255>ask user for location of exe
<:#275,10224>defstr box;
<:#275,10224>filledit(9001, "*.exe")
<:#275,10224>filledit(8007, app)
<:#275,10224>if assign(&box, dialogbox(".", "findapp")) <<<;> 1
<:#275,10224> return 0
<:#275,10224>endif
<:#275,10224>return getcurrentdir$()
<:#275,10224>end function
<:#275,10224>
<:#275,10224>
@Function@<:#282,10224>DIALOG findapp
<:#275,10224>-2134376448 7 70 35 200 97 "" "" "Find Application"
<:#275,10224>FONT 8 "Helv"
<:#275,10224>7 34 59 8 1000 1342177280 "static" "&Program path:" 0
<:#275,10224>6 45 60 44 9001 1352728579 "listbox" "" 0
<:#275,10224>155 5 40 14 1 1342373889 "button" "OK" 0
<:#275,10224>155 21 40 14 2 1342373888 "button" "Cancel" 0
<:#275,10224>68 34 80 8 7999 1342177280 "static" "" 0
<:#275,10224>7 6 142 9 1006 1342177280 "static" "Change into the directory that contains" 0
<:#275,10224>7 16 107 8 8007 1342177280 "static" "" 0
<:#275,10224>END DIALOG
<:#284,10224>
>
[Embedded]
00005219
>
[macsum] 6
execsuite 0 0 7 2
tryit 686 2 1 43
writeprofile 767 2 1 48
getprofile 841 1 2 52
missouri 1015 1 2 60
findapp 1172 0 -1 71
[macse]
14 execsuite
7 "organize.exe"
8 1
7 "Lotus Organizer"
8 2
0 1288
13
8 3
7 "{3}organize"
8 4
0 286 "Lotus Applications" "Organize" "Lotus.ini"
13
0 20 [X] 1 " "
13
8 5
0 32 2
0 1032 "{2}"
13
11 00000259
0 38 "{2}"
0 1031 "{2}"
5 1
15
9
6 5
7 ""
18 1
11 00000316
0 22 "{5}" ""
6 0
15
9
5 0
0 781 "{4}"
13
18 0
11 00000417
16 tryit "" "{1}"
13
5 31
18 3
11 00000417
5 1
15
9
16 getprofile "{2}"
13
16 tryit [X] "{1}"
13
5 31
18 3
11 00000503
5 1
15
9
16 missouri "{1}"
13
0 805 &6 [X]
13
5 0
18 1
11 00000674
16 tryit "{6}" "{1}"
13
5 31
18 3
11 00000661
16 writeprofile "{6}" "{2}"
10 00000674
10 00000503
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
00005244