home *** CD-ROM | disk | FTP | other *** search
/ 800 Great Letters / greatBear.iso / refcd / referenz / refer.smm < prev    next >
INI File  |  1995-01-11  |  5KB  |  406 lines

  1. [ver]
  2.     4
  3. [sty]
  4.     _macro.sty
  5. [files]
  6. [charset]
  7.     82
  8.     ANSI (Windows, IBM CP 1252)
  9. [revisions]
  10.     0
  11. [prn]
  12.     HP DeskJet Family
  13. [port]
  14.     LPT1:
  15. [lang]
  16.     1
  17. [desc]
  18.     Run ReferenZing from Ami Tools menu
  19.     
  20.     
  21.     
  22.     
  23.     780690229
  24.     64
  25.     672763988
  26.     472
  27.     4
  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. [tag]
  54.     Body Text
  55.     2
  56.     [fnt]
  57.         Tms Rmn
  58.         240
  59.         0
  60.         49152
  61.     [algn]
  62.         1
  63.         1
  64.         0
  65.         0
  66.         0
  67.     [spc]
  68.         17
  69.         0
  70.         1
  71.         0
  72.         0
  73.         1
  74.         100
  75.     [brk]
  76.         4
  77.     [line]
  78.         8
  79.         0
  80.         1
  81.         0
  82.         1
  83.         1
  84.         1
  85.         10
  86.         10
  87.         1
  88.     [spec]
  89.         0
  90.         0
  91.         
  92.         0
  93.         1
  94.         1
  95.         0
  96.         0
  97.         0
  98.         0
  99.     [nfmt]
  100.         280
  101.         1
  102.         2
  103.         .
  104.         ,
  105.         $
  106.     Body Text
  107.     0
  108.     0
  109. [lay]
  110.     Standard
  111.     513
  112.     [rght]
  113.         15840
  114.         12240
  115.         1
  116.         1440
  117.         1440
  118.         1
  119.         1440
  120.         1440
  121.         0
  122.         1
  123.         0
  124.         1
  125.         1
  126.         1
  127.         1
  128.         1440
  129.         10800
  130.         0
  131.     [hrght]
  132.     [lyfrm]
  133.         1
  134.         11200
  135.         0
  136.         0
  137.         12240
  138.         1440
  139.         0
  140.         1
  141.         3
  142.         1 0 0 0 0 0 0
  143.         0
  144.         0
  145.         1
  146.     [frmlay]
  147.         1440
  148.         12240
  149.         1
  150.         1440
  151.         0
  152.         1
  153.         0
  154.         1440
  155.         0
  156.         1
  157.         0
  158.         1
  159.         1
  160.         1
  161.         1
  162.         1440
  163.         10800
  164.         0
  165.     [txt]
  166. >
  167.     [frght]
  168.     [lyfrm]
  169.         1
  170.         13248
  171.         0
  172.         14400
  173.         12240
  174.         15840
  175.         0
  176.         1
  177.         3
  178.         1 0 0 0 0 0 0
  179.         0
  180.         0
  181.         2
  182.     [frmlay]
  183.         15840
  184.         12240
  185.         1
  186.         1440
  187.         0
  188.         1
  189.         14400
  190.         1440
  191.         0
  192.         1
  193.         0
  194.         1
  195.         1
  196.         1
  197.         1
  198.         1440
  199.         10800
  200.         0
  201.     [txt]
  202. >
  203. [elay]
  204. [l1]
  205.     0
  206. [pg]
  207.     4
  208.     18 0 6 512 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
  209.     56 0 16 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
  210.     57 0 5 512 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
  211.     57 0 5 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
  212. [edoc]
  213. <:#260,9360>REFERINS installs macros to the Tools Menu.
  214.  
  215. <:#260,9360>
  216.  
  217. <:#260,9360>REFERENZING is the Tools / ReferenZing menu item.
  218.  
  219. <:#260,9360>
  220.  
  221. <:#520,9360>This macro should be installed under Tools/User  Setup as the macro to run at program load, or should be called from the current autoload macro.  Instalh.smm will do this for you.
  222.  
  223. <:#260,9360>
  224.  
  225. <:#260,9360>
  226.  
  227. <:#260,9360><+!>FUNCTION REFERINS()<-!>
  228.  
  229. <:#260,9360>
  230.  
  231. <:#260,9360>M1 = GetRunningMacroFile$()
  232.  
  233. <:#260,9360>M1 = strcat$ (M1, "!REFER")
  234.  
  235. <:#260,9360>
  236.  
  237. <:#260,9360>DeleteMenuItem (1, "Too&ls", "&Great Bear Referenzing")
  238.  
  239. <:#260,9360>AddMenuItem (1, "Too&ls", "&Great Bear Referenzing", M1 )
  240.  
  241. <:#260,9360>
  242.  
  243. <:#260,9360><+!>END FUNCTION<-!>
  244.  
  245. <:#260,9360>
  246.  
  247. <**><:p<* >>
  248.  
  249. <:#260,9360><+!>FUNCTION REFER()<-!>
  250.  
  251. <:#520,9360>DEFINE FindWindow()    DLLCall("user,FindWindow,HCC", %1, %2)
  252.  
  253. <:#520,9360>DEFINE WinExec()    DLLCall("kernel,WinExec,HCH", %1, %2)
  254.  
  255. <:#520,9360>DEFINE SendMessage()    DLLCall("user,SendMessage,JHHHJ", %1, %2, %3, %4)
  256.  
  257. <:#520,9360>DEFINE GetAmiWindow()    DLLCall("user,GetActiveWindow,H")
  258.  
  259. <:#260,9360>
  260.  
  261. WndTitle = "ReferenZing"
  262.  
  263. <:#260,9360>hWnd = FindWindow(0, WndTitle) 
  264.  
  265. <:#260,9360>IF (hWnd <;> 0)
  266.  
  267. <:#260,9360>ActivateApp(WndTitle)
  268.  
  269. <:#260,9360>GOTO ReferMHExit
  270.  
  271. <:#260,9360>ENDIF
  272.  
  273. <:#260,9360>
  274.  
  275. <:#260,9360>QUOTEDIR = GetProfileString$("ReferenZing", "Path", "win.ini")
  276.  
  277. <:#260,9360>IF (LEN(QUOTEDIR) = 0)
  278.  
  279. <:#780,9360>    Message("Can't find Referenzing Version 1.0.  Path not found in WIN.INI. You must run Referenzing at least once before running this macro.")
  280.  
  281. <:#520,9360>    EXIT FUNCTION
  282.  
  283. <:#260,9360>ENDIF
  284.  
  285. <:#520,9360>    QUOTEEXE = strcat$(QUOTEDIR, "\DRS.EXE")
  286.  
  287. <:#260,9360>
  288.  
  289. <:#260,9360>hQUOTE = WinExec(QUOTEEXE, 1)
  290.  
  291. <:#260,9360>
  292.  
  293. <:#260,9360>IF (hQUOTE << 32)
  294.  
  295. <:#520,9360>    Message("Can't load Referenzing Version 1.0. {QUOTEEXE}")
  296.  
  297. <:#520,9360>    EXIT FUNCTION
  298.  
  299. <:#260,9360>ENDIF
  300.  
  301. <:#260,9360>
  302.  
  303. <:#260,9360>hWnd = FindWindow(0, WndTitle)
  304.  
  305. <:#260,9360>L = AppIsRunning(WndTitle)
  306.  
  307. <:#520,9360>IF L = 0    Message("Can't find ReferenZing Version 1.0 window.")
  308.  
  309. <:#260,9360>EXIT FUNCTION
  310.  
  311. <:#260,9360>ELSE
  312.  
  313. <:#260,9360>ActivateApp(WndTitle)
  314.  
  315. <:#260,9360>ENDIF
  316.  
  317. <:#260,9360>
  318.  
  319. <:#260,9360>ReferMHExit:
  320.  
  321. <:#260,9360>
  322.  
  323. <:#260,9360><+!>END FUNCTION<-!>
  324.  
  325. <:p<* >>
  326.  
  327. >
  328.  
  329. [Embedded]
  330. 00004114
  331. >
  332. [macsum] 2
  333. REFERINS 0 0 2 7
  334. REFER 165 0 7 18
  335. [macse]
  336. 14 REFERINS
  337. 0 802
  338. 13
  339. 8 1
  340. 0 16 "{1}" "!REFER"
  341. 13
  342. 8 1
  343. 0 520 1 "Too&ls" "&Great Bear Referenzing"
  344. 0 516 1 "Too&ls" "&Great Bear Referenzing" "{1}"
  345. 6 0
  346. 15
  347. 9
  348. 14 REFER
  349. 7 "ReferenZing"
  350. 8 1
  351. 0 284 "user,FindWindow,HCC" 0 "{1}"
  352. 13
  353. 8 2
  354. 6 2
  355. 5 0
  356. 18 3
  357. 11 00000132
  358. 0 38 "{1}"
  359. 10 00000719
  360. 0 286 "ReferenZing" "Path" "win.ini"
  361. 13
  362. 8 3
  363. 0 14 "{3}"
  364. 13
  365. 5 0
  366. 18 0
  367. 11 00000368
  368. 0 3 "Can't find Referenzing Version 1.0.  Path not found in WIN.INI. You must run Referenzing at least once before running this macro."
  369. 6 0
  370. 15
  371. 9
  372. 0 16 "{3}" "\DRS.EXE"
  373. 13
  374. 8 4
  375. 0 284 "kernel,WinExec,HCH" "{4}" 1
  376. 13
  377. 8 5
  378. 6 5
  379. 5 32
  380. 18 5
  381. 11 00000534
  382. 0 3 "Can't load Referenzing Version 1.0. {4}"
  383. 6 0
  384. 15
  385. 9
  386. 0 284 "user,FindWindow,HCC" 0 "{1}"
  387. 13
  388. 8 2
  389. 0 1032 "{1}"
  390. 13
  391. 8 6
  392. 6 6
  393. 5 0
  394. 18 0
  395. 11 00000707
  396. 0 3 "Can't find ReferenZing Version 1.0 window."
  397. 6 0
  398. 15
  399. 9
  400. 10 00000719
  401. 0 38 "{1}"
  402. 6 0
  403. 15
  404. 9
  405. 00004139
  406.