home *** CD-ROM | disk | FTP | other *** search
/ Program Metropolis - Software Boutique 95 / SOFTWARECD.iso / camipro3 / macros.cmz / SMARTPIC.SMM < prev    next >
Encoding:
INI File  |  1994-08-14  |  4.8 KB  |  331 lines

  1. [ver]
  2.     4
  3. [sty]
  4.     _macro.sty
  5. [files]
  6. [charset]
  7.     82
  8.     CHINESEBIG5 (Windows)
  9. [revisions]
  10.     0
  11. [prn]
  12.     PostScript Printer
  13. [port]
  14.     LPT2:
  15. [lang]
  16.     1
  17. [desc]
  18.     º╓│tªs¿· Lotus SmartPics SampleríA½ⁿ⌐w¼░¬╜▒╡ªs¿·┤ú¿╤¬║ª█¡q╣╧Ñ▄íC
  19.     Lotus WPD Marketing
  20.     Beginner
  21.     Exec, AppMinimize
  22.     
  23.     773108027
  24.     9
  25.     681240805
  26.     13
  27.     2
  28.     0
  29.     0
  30.     0
  31.     0
  32.     
  33.     
  34.     
  35.     
  36.     
  37.     
  38.     0
  39. [fopts]
  40.     0
  41.     1
  42.     0
  43.     0
  44. [lnopts]
  45.     2
  46.     Body Text
  47.     1
  48. [docopts]
  49.     5
  50.     2
  51. [GramStyle]
  52.     
  53. [l1]
  54.     0
  55. [pg]
  56.     2
  57.     49 0 12 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
  58.     73 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
  59. [edoc]
  60. <:#293,9025>Macro by <+!>Charlie Pappas<-!>
  61.  
  62. <:#293,9025>Editted by <+!>Mike Jones<-!>
  63.  
  64. <:#284,9025>
  65.  
  66. <:#284,9025>function execsuite()
  67.  
  68. <:#284,9025>app = "smartpic.exe"
  69.  
  70. <:#284,9025>appname = "SmartPics Sampler"
  71.  
  72. <:#284,9025>defdir = "c:\smartpic"
  73.  
  74. <:#284,9025>ignorekeyboard(1)
  75.  
  76. <:#284,9025>declare missouri(xapp)
  77.  
  78. <:#284,9025>declare getprofile(xappname)
  79.  
  80. <:#284,9025>declare writeprofile(path, xappname)
  81.  
  82. <:#284,9025>declare tryit(path, xapp)
  83.  
  84. <:#284,9025>defstr path;
  85.  
  86. <:#284,9025>
  87.  
  88. <:#284,9025>if appisrunning(appname)
  89.  
  90. <:#284,9025>    activateapp(appname)
  91.  
  92. <:#284,9025>    apprestore(appname)
  93.  
  94. <:#284,9025>    return 1
  95.  
  96. <:#284,9025>endif
  97.  
  98. <:#284,9025>if 0 = doschdir(defdir)
  99.  
  100. <:#284,9025>    if tryit("", app) <;> 31
  101.  
  102. <:#284,9025>        return 1
  103.  
  104. <:#284,9025>    endif
  105.  
  106. <:#284,9025>endif
  107.  
  108. <:#284,9025>if tryit(getprofile(appname), app) <;> 31
  109.  
  110. <:#284,9025>    return 1
  111.  
  112. <:#284,9025>endif
  113.  
  114. <:#284,9025>again:
  115.  
  116. <:#284,9025>if assign(&path, missouri(app)) <<<;> 0
  117.  
  118. <:#284,9025>    if tryit(path, app) <;> 31
  119.  
  120. <:#284,9025>        writeprofile(path, appname)
  121.  
  122. <:#284,9025>    else
  123.  
  124. <:#284,9025>        goto again
  125.  
  126. <:#284,9025>    endif
  127.  
  128. <:#284,9025>endif
  129.  
  130. <:#284,9025>end function
  131.  
  132. <:#284,9025>
  133.  
  134. <:#284,9025>function tryit(path, app)
  135.  
  136. <:#284,9025>doschdir(path)
  137.  
  138. <:#284,9025>return exec(strcat$(path, app), "")
  139.  
  140. <:#284,9025>end function
  141.  
  142. <:#284,9025>
  143.  
  144. <:#284,9025>function writeprofile(path, appname)
  145.  
  146. <:#284,9025>writeprofilestring("LotusApps", appname, path, "amipro.ini")
  147.  
  148. <:#284,9025>end function
  149.  
  150. <:#284,9025>
  151.  
  152. <:#284,9025>function getprofile(appname)
  153.  
  154. <:#284,9025>return getprofilestring$("LotusApps", appname, "amipro.ini")
  155.  
  156. <:#284,9025>end function
  157.  
  158. <:#284,9025>
  159.  
  160. <:#284,9025>function missouri(app)
  161.  
  162. <:#284,9025>defstr box;
  163.  
  164. <:#284,9025>filledit(9001, "*.exe")
  165.  
  166. <:#284,9025>filledit(8007, app)
  167.  
  168. <:#284,9025>if assign(&box, dialogbox(".", "findapp")) <<<;> 1
  169.  
  170. <:#284,9025>    return 0
  171.  
  172. <:#284,9025>endif
  173.  
  174. <:#284,9025>return getcurrentdir$()
  175.  
  176. <:#284,9025>end function
  177.  
  178. <:#284,9025>
  179.  
  180. <:#284,9025>
  181.  
  182. <:#284,9025>DIALOG findapp
  183.  
  184. <:#284,9025>-2134376448 7 70 35 200 97 "" "" "Find Application"
  185.  
  186. <:#284,9025>FONT 8 "Helv"
  187.  
  188. <:#284,9025>7 34 59 8 1000 1342177280 "static" "&Program path:" 0 
  189.  
  190. <:#284,9025>6 45 60 44 9001 1352728579 "listbox" "" 0 
  191.  
  192. <:#284,9025>155 5 40 14 1 1342373889 "button" "OK" 0 
  193.  
  194. <:#284,9025>155 21 40 14 2 1342373888 "button" "Cancel" 0 
  195.  
  196. <:#284,9025>68 34 80 8 7999 1342177280 "static" "" 0 
  197.  
  198. <:#284,9025>7 6 142 9 1006 1342177280 "static" "Change into the directory that contains" 0 
  199.  
  200. <:#284,9025>7 16 107 8 8007 1342177280 "static" "" 0 
  201.  
  202. <:#284,9025>END DIALOG
  203.  
  204. <:#284,9025>
  205.  
  206. >
  207.  
  208. [Embedded]
  209. 00003365
  210. >
  211. [macsum] 6
  212. execsuite 0 0 5 3
  213. tryit 534 2 1 37
  214. writeprofile 615 2 1 42
  215. getprofile 688 1 1 46
  216. missouri 764 1 2 50
  217. findapp 921 0 -1 61
  218. [macse]
  219. 14 execsuite
  220. 7 "smartpic.exe"
  221. 8 1
  222. 7 "SmartPics Sampler"
  223. 8 2
  224. 7 "c:\smartpic"
  225. 8 3
  226. 0 32 1
  227. 0 1032 "{2}"
  228. 13
  229. 11 00000164
  230. 0 38 "{2}"
  231. 0 1031 "{2}"
  232. 5 1
  233. 15
  234. 9
  235. 5 0
  236. 0 781 "{3}"
  237. 13
  238. 18 0
  239. 11 00000265
  240. 16 tryit "" "{1}"
  241. 13
  242. 5 31
  243. 18 3
  244. 11 00000265
  245. 5 1
  246. 15
  247. 9
  248. 16 getprofile "{2}"
  249. 13
  250. 16 tryit [X] "{1}"
  251. 13
  252. 5 31
  253. 18 3
  254. 11 00000351
  255. 5 1
  256. 15
  257. 9
  258. 16 missouri "{1}"
  259. 13
  260. 0 805 &4 [X]
  261. 13
  262. 5 0
  263. 18 1
  264. 11 00000522
  265. 16 tryit "{4}" "{1}"
  266. 13
  267. 5 31
  268. 18 3
  269. 11 00000509
  270. 16 writeprofile "{4}" "{2}"
  271. 10 00000522
  272. 10 00000351
  273. 6 0
  274. 15
  275. 9
  276. 14 tryit
  277. 0 781 "{0}"
  278. 0 16 "{0}" "{1}"
  279. 13
  280. 0 22 [X] ""
  281. 13
  282. 15
  283. 9
  284. 6 2
  285. 15
  286. 9
  287. 14 writeprofile
  288. 0 287 "LotusApps" "{1}" "{0}" "amipro.ini"
  289. 6 2
  290. 15
  291. 9
  292. 14 getprofile
  293. 0 286 "LotusApps" "{0}" "amipro.ini"
  294. 13
  295. 15
  296. 9
  297. 6 1
  298. 15
  299. 9
  300. 14 missouri
  301. 0 31 9001 "*.exe"
  302. 0 31 8007 "{0}"
  303. 0 26 "." "findapp"
  304. 13
  305. 0 805 &2 [X]
  306. 13
  307. 5 1
  308. 18 1
  309. 11 00000127
  310. 5 0
  311. 15
  312. 9
  313. 0 290
  314. 13
  315. 15
  316. 9
  317. 6 1
  318. 15
  319. 9
  320. DIALOG findapp
  321. -2134376448 7 70 35 200 97 "" "" "Find Application" 
  322. FONT 8 "Helv" 
  323. 7 34 59 8 1000 1342177280 "static" "&Program path:" 0 
  324. 6 45 60 44 9001 1352728579 "listbox" "" 0 
  325. 155 5 40 14 1 1342373889 "button" "OK" 0 
  326. 155 21 40 14 2 1342373888 "button" "Cancel" 0 
  327. 68 34 80 8 7999 1342177280 "static" "" 0 
  328. 7 6 142 9 1006 1342177280 "static" "Change into the directory that contains" 0 
  329. 7 16 107 8 8007 1342177280 "static" "" 0 
  330. 00003390
  331.