home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 14 / 14.iso / s / s005 / 52.ddi / SMM.LIB / NOTES.SMM < prev    next >
Encoding:
INI File  |  1993-10-21  |  9.8 KB  |  1,014 lines

  1. [ver]
  2.     4
  3. [sty]
  4.     _default.sty
  5. [charset]
  6.     82
  7.     ANSI (Windows, IBM CP 1252)
  8. [PanoseFontTable]
  9.     5
  10.     5
  11.     Arial
  12.     2818
  13.     1030
  14.     514
  15.     514
  16.     1026
  17.     Tms Rmn
  18.     514
  19.     774
  20.     1284
  21.     517
  22.     1027
  23.     Helvetica
  24.     2818
  25.     1029
  26.     514
  27.     514
  28.     1026
  29.     Helv
  30.     2818
  31.     1029
  32.     514
  33.     770
  34.     1026
  35.     Times New Roman
  36.     514
  37.     774
  38.     1029
  39.     517
  40.     1027
  41. [revisions]
  42.     0
  43. [recfile]
  44.     
  45.     *
  46.     1
  47.     1
  48.     3
  49.     8
  50.     0
  51.     0
  52. [lang]
  53.     1
  54. [desc]
  55.     Launch Lotus Notes
  56.     
  57.     
  58.     
  59.     
  60.     751229432
  61.     1
  62.     750620291
  63.     151
  64.     0
  65.     0
  66.     0
  67.     0
  68.     0
  69.     
  70.     
  71.     
  72.     
  73.     
  74.     
  75.     1
  76. [prn]
  77.     QMS-PS 810
  78. [port]
  79.     NW:\\SPEEDY\QMS
  80. [fopts]
  81.     0
  82.     1
  83.     0
  84.     0
  85. [lnopts]
  86.     2
  87.     Body Text
  88.     1
  89. [docopts]
  90.     5
  91.     2
  92. [GramStyle]
  93.     
  94. [tag]
  95.     Function
  96.     1
  97.     [fnt]
  98.         Helvetica
  99.         240
  100.         0
  101.         49153
  102.     [algn]
  103.         1
  104.         1
  105.         0
  106.         0
  107.         0
  108.     [spc]
  109.         33
  110.         0
  111.         1
  112.         0
  113.         0
  114.         1
  115.         100
  116.     [brk]
  117.         68
  118.     [line]
  119.         8
  120.         0
  121.         1
  122.         0
  123.         0
  124.         1
  125.         1
  126.         144
  127.         144
  128.         1
  129.     [spec]
  130.         0
  131.         1
  132.         
  133.         0
  134.         1
  135.         1
  136.         0
  137.         0
  138.         0
  139.         0
  140.     [nfmt]
  141.         272
  142.         1
  143.         3
  144.         .
  145.         ,
  146.         $
  147.     Body Text
  148.     0
  149.     0
  150. [tag]
  151.     Outline4
  152.     1
  153.     [fnt]
  154.         Times New Roman
  155.         200
  156.         0
  157.         49152
  158.     [algn]
  159.         1
  160.         1
  161.         0
  162.         0
  163.         0
  164.     [spc]
  165.         33
  166.         0
  167.         1
  168.         72
  169.         72
  170.         1
  171.         100
  172.     [brk]
  173.         4
  174.     [line]
  175.         8
  176.         0
  177.         1
  178.         0
  179.         0
  180.         1
  181.         1
  182.         144
  183.         144
  184.         1
  185.     [spec]
  186.         0
  187.         4
  188.         
  189.         0
  190.         1
  191.         1
  192.         0
  193.         0
  194.         0
  195.         0
  196.     [nfmt]
  197.         272
  198.         1
  199.         2
  200.         .
  201.         ,
  202.         $
  203.     Outline3
  204.     0
  205.     0
  206. [tag]
  207.     Outline3
  208.     1
  209.     [fnt]
  210.         Times New Roman
  211.         200
  212.         0
  213.         49152
  214.     [algn]
  215.         1
  216.         1
  217.         0
  218.         720
  219.         0
  220.     [spc]
  221.         33
  222.         0
  223.         1
  224.         72
  225.         72
  226.         1
  227.         100
  228.     [brk]
  229.         4
  230.     [line]
  231.         8
  232.         0
  233.         1
  234.         0
  235.         0
  236.         1
  237.         1
  238.         144
  239.         144
  240.         1
  241.     [spec]
  242.         0
  243.         3
  244.         
  245.         0
  246.         1
  247.         1
  248.         0
  249.         0
  250.         0
  251.         0
  252.     [nfmt]
  253.         272
  254.         1
  255.         2
  256.         .
  257.         ,
  258.         $
  259.     Outline3
  260.     0
  261.     0
  262. [tag]
  263.     Outline2
  264.     1
  265.     [fnt]
  266.         Times New Roman
  267.         200
  268.         0
  269.         49152
  270.     [algn]
  271.         1
  272.         1
  273.         216
  274.         0
  275.         0
  276.     [spc]
  277.         33
  278.         0
  279.         1
  280.         0
  281.         0
  282.         1
  283.         100
  284.     [brk]
  285.         4
  286.     [line]
  287.         8
  288.         0
  289.         1
  290.         0
  291.         0
  292.         1
  293.         1
  294.         144
  295.         144
  296.         1
  297.     [spec]
  298.         0
  299.         2
  300.         
  301.         0
  302.         1
  303.         1
  304.         0
  305.         16
  306.         0
  307.         0
  308.     [nfmt]
  309.         272
  310.         1
  311.         3
  312.         .
  313.         ,
  314.         $
  315.     Outline2
  316.     0
  317.     0
  318. [tag]
  319.     Outline1
  320.     1
  321.     [fnt]
  322.         Times New Roman
  323.         240
  324.         0
  325.         49153
  326.     [algn]
  327.         1
  328.         1
  329.         0
  330.         0
  331.         0
  332.     [spc]
  333.         33
  334.         0
  335.         1
  336.         72
  337.         0
  338.         1
  339.         100
  340.     [brk]
  341.         16
  342.     [line]
  343.         8
  344.         0
  345.         1
  346.         0
  347.         0
  348.         1
  349.         1
  350.         144
  351.         144
  352.         1
  353.     [spec]
  354.         0
  355.         1
  356.         
  357.         0
  358.         1
  359.         1
  360.         0
  361.         0
  362.         0
  363.         0
  364.     [nfmt]
  365.         272
  366.         1
  367.         2
  368.         .
  369.         ,
  370.         $
  371.     Outline1
  372.     0
  373.     0
  374. [tag]
  375.     Title
  376.     8
  377.     [fnt]
  378.         Helvetica
  379.         280
  380.         0
  381.         49153
  382.     [algn]
  383.         1
  384.         1
  385.         0
  386.         0
  387.         0
  388.     [spc]
  389.         33
  390.         0
  391.         1
  392.         144
  393.         72
  394.         1
  395.         100
  396.     [brk]
  397.         16
  398.     [line]
  399.         8
  400.         0
  401.         1
  402.         0
  403.         0
  404.         1
  405.         1
  406.         144
  407.         144
  408.         1
  409.     [spec]
  410.         0
  411.         1
  412.         
  413.         0
  414.         1
  415.         1
  416.         0
  417.         0
  418.         0
  419.         0
  420.     [nfmt]
  421.         272
  422.         1
  423.         2
  424.         .
  425.         ,
  426.         $
  427.     Title
  428.     0
  429.     0
  430. [tag]
  431.     Body Text
  432.     2
  433.     [fnt]
  434.         Times New Roman
  435.         240
  436.         0
  437.         49152
  438.     [algn]
  439.         1
  440.         1
  441.         0
  442.         0
  443.         0
  444.     [spc]
  445.         33
  446.         0
  447.         1
  448.         0
  449.         0
  450.         1
  451.         100
  452.     [brk]
  453.         4
  454.     [line]
  455.         8
  456.         0
  457.         1
  458.         0
  459.         0
  460.         1
  461.         1
  462.         144
  463.         144
  464.         1
  465.     [spec]
  466.         0
  467.         0
  468.         
  469.         0
  470.         1
  471.         1
  472.         0
  473.         0
  474.         0
  475.         0
  476.     [nfmt]
  477.         280
  478.         1
  479.         2
  480.         .
  481.         ,
  482.         $
  483.     Body Text
  484.     0
  485.     0
  486. [lay]
  487.     Standard
  488.     513
  489.     [rght]
  490.         15840
  491.         12240
  492.         1
  493.         1440
  494.         1440
  495.         1
  496.         1440
  497.         1440
  498.         0
  499.         1
  500.         0
  501.         1
  502.         0
  503.         2
  504.         1
  505.         1440
  506.         10800
  507.         12
  508.         1
  509.         720
  510.         1
  511.         1440
  512.         1
  513.         2160
  514.         1
  515.         2880
  516.         1
  517.         3600
  518.         1
  519.         4320
  520.         1
  521.         5040
  522.         1
  523.         5760
  524.         1
  525.         6480
  526.         1
  527.         7200
  528.         1
  529.         7920
  530.         1
  531.         8640
  532.     [frght]
  533.     [lyfrm]
  534.         0
  535.         13184
  536.         0
  537.         14400
  538.         12240
  539.         15840
  540.         0
  541.         1
  542.         1
  543.         0 0 0 0 0 0 0
  544.         0
  545.         16777215
  546.         0
  547.     [frmlay]
  548.         15840
  549.         12240
  550.         1
  551.         1440
  552.         792
  553.         1
  554.         14472
  555.         1440
  556.         0
  557.         1
  558.         0
  559.         0
  560.         0
  561.         0
  562.         1
  563.         1440
  564.         10800
  565.         2
  566.         2
  567.         4680
  568.         3
  569.         9360
  570.     [txt]
  571. <:s>
  572.  
  573. >
  574.     [hrght]
  575.     [lyfrm]
  576.         0
  577.         11136
  578.         0
  579.         0
  580.         12240
  581.         1440
  582.         0
  583.         1
  584.         1
  585.         0 0 0 0 0 0 0
  586.         0
  587.         16777215
  588.         0
  589.     [frmlay]
  590.         1440
  591.         12240
  592.         1
  593.         1440
  594.         72
  595.         1
  596.         792
  597.         1440
  598.         0
  599.         1
  600.         0
  601.         0
  602.         0
  603.         0
  604.         1
  605.         1440
  606.         10800
  607.         2
  608.         2
  609.         4680
  610.         3
  611.         9360
  612.     [txt]
  613. <:s>
  614.  
  615. >
  616. [elay]
  617. [lay]
  618.     1
  619.     513
  620.     [rght]
  621.         15840
  622.         12240
  623.         1
  624.         1440
  625.         1440
  626.         1
  627.         1440
  628.         1440
  629.         0
  630.         0
  631.         0
  632.         1
  633.         0
  634.         2
  635.         1
  636.         1440
  637.         10800
  638.         12
  639.         1
  640.         720
  641.         1
  642.         1440
  643.         1
  644.         2160
  645.         1
  646.         2880
  647.         1
  648.         3600
  649.         1
  650.         4320
  651.         1
  652.         5040
  653.         1
  654.         5760
  655.         1
  656.         6480
  657.         1
  658.         7200
  659.         1
  660.         7920
  661.         1
  662.         8640
  663.     [frght]
  664.     [lyfrm]
  665.         0
  666.         13184
  667.         0
  668.         14400
  669.         12240
  670.         15840
  671.         0
  672.         1
  673.         1
  674.         0 0 0 0 0 0 0
  675.         0
  676.         16777215
  677.         0
  678.     [frmlay]
  679.         15840
  680.         12240
  681.         1
  682.         1440
  683.         792
  684.         1
  685.         14472
  686.         1440
  687.         0
  688.         0
  689.         16777215
  690.         0
  691.         0
  692.         0
  693.         1
  694.         1440
  695.         10800
  696.         2
  697.         2
  698.         4680
  699.         3
  700.         9360
  701.     [txt]
  702. <:s><:#P30670848,P943718>
  703.  
  704. >
  705.     [hrght]
  706.     [lyfrm]
  707.         0
  708.         11136
  709.         0
  710.         0
  711.         12240
  712.         1440
  713.         0
  714.         1
  715.         1
  716.         0 0 0 0 0 0 0
  717.         0
  718.         16777215
  719.         0
  720.     [frmlay]
  721.         1440
  722.         12240
  723.         1
  724.         1440
  725.         72
  726.         1
  727.         792
  728.         1440
  729.         0
  730.         0
  731.         16777215
  732.         0
  733.         0
  734.         0
  735.         1
  736.         1440
  737.         10800
  738.         1
  739.         3
  740.         9360
  741.     [txt]
  742. <:s><:#P30670848,P943718>
  743.  
  744. >
  745. [elay]
  746. [l1]
  747.     1
  748. [edoc]
  749. @Function@<:s><:#P30670848,P975176><:X3,0;include "amixlate.sam!notes">' Notes Defines
  750.  
  751. @Outline2@<:s>Define        AppName    "Lotus Notes"
  752.  
  753. @Outline2@<:s>Define        NotFound    "Ami Pro cannot find Lotus Notes for OS/2. If you have Notes currently installed, please enter the path below."
  754.  
  755. @Outline2@<:s>Define        EnterPath    "Enter the path for Lotus Notes for OS/2:"    
  756.  
  757. @Outline2@<:s>Define        Caption    "Execute Lotus Notes"
  758.  
  759. @Outline2@<:s>Define        Path        "C:\NOTES\$LNOTES.EXE"
  760. <:X~3,0;include "amixlate.sam!notes">
  761.  
  762. @Outline2@<:s><:#P30670848,P802161>Declare CheckIsRunning(Name)
  763.  
  764. @Function@<:s><:#P30670848,P975176>
  765.  
  766. @Function@<:s><:#P30670848,P975176>Function LotusNotes()
  767.  
  768. @Outline2@<:s><:#P30670848,P802161>DefStr RealAppName;
  769.  
  770. @Outline2@<:s><:#P30670848,P802161>' Check to see if notes is running 
  771.  
  772. @Outline2@<:s><:#P30670848,P802161>If 0 != Assign(&RealAppName, CheckIsRunning(AppName))
  773.  
  774. @Outline3@<:s><:#P30670848,P802161>    ' it is - activate it by the name on the titlebar
  775.  
  776. @Outline3@<:s><:#P30670848,P802161>    ActivateApp(RealAppName)
  777.  
  778. @Outline3@<:s><:#P30670848,P802161>    EXIT FUNCTION
  779.  
  780. @Outline2@<:s><:#P30670848,P802161>ENDIF
  781.  
  782. @Outline2@<:s><:#P30670848,P802161>appPath=GetProfileString$("LotusApplications","Notes")
  783.  
  784. @Outline2@<:s><:#P30670848,P802161>launchResult=Exec(appPath,"")
  785.  
  786. @Outline2@<:s><:#P30670848,P802161>Mac = GetRunningMacroFile$()
  787.  
  788. @Outline2@<:s><:#P30670848,P802161>While launchResult<<33
  789.  
  790. @Outline3@<:s><:#P30670848,P802161>    FillEdit(1004, EnterPath)
  791.  
  792. @Outline3@<:s><:#P30670848,P802161>    FillEdit(1001, NotFound)
  793.  
  794. @Outline3@<:s><:#P30670848,P802161>    FillEdit(8000, Path)
  795.  
  796. @Outline3@<:s><:#P30670848,P802161>    SetDlgCallBack(0, "{Mac}!InitDlg")
  797.  
  798. @Outline3@<:s><:#P30670848,P802161>    Box=DialogBox("Launch.dlg","Missouri")
  799.  
  800. @Outline3@<:s><:#P30670848,P802161>    if Box<<<;>1
  801.  
  802. @Outline3@<:s><:#P30670848,P802161>        ' Hit cancel in the box
  803.  
  804. @Outline3@<:s><:#P30670848,P802161>        EXIT FUNCTION
  805.  
  806. @Outline3@<:s><:#P30670848,P802161>    endif
  807.  
  808. @Outline3@<:s><:#P30670848,P802161>    appPath=GetDialogField$(8000)
  809.  
  810. @Outline3@<:s><:#P30670848,P802161>    WriteProfileString("LotusApplications","Notes",appPath)
  811.  
  812. @Outline3@<:s><:#P30670848,P802161>    launchResult=Exec(appPath,"")
  813.  
  814. @Outline2@<:s><:#P30670848,P802161>WEND
  815.  
  816. @Outline2@<:s><:#P30670848,P802161>end function
  817.  
  818. <:s><:#P30670848,P943718>
  819.  
  820. @Function@<:s><:#P30670848,P975176>Function InitDlg(Hdlg)
  821.  
  822. @Outline2@<:s><:#P30670848,P802161>' Since all of the macros to launch applications share a dialogbox, we need to set the caption
  823.  
  824. @Outline2@<:s><:#P30670848,P802161>DlgSetCaption(Hdlg, Caption)
  825.  
  826. @Outline2@<:s><:#P30670848,P802161>End Function
  827.  
  828. <:s><:#P30670848,P943718>
  829.  
  830. <:s><:#P30670848,P943718>
  831.  
  832. <:s><:#P30670848,P943718>
  833.  
  834. @Function@<:s><:#P30670848,P975176>Function CheckIsRunning(App)
  835.  
  836. <:s><:#P30670848,P943718>NumberRunning = AppGetAppCount()
  837.  
  838. <:s><:#P30670848,P943718>Dim Names(NumberRunning)
  839.  
  840. <:s><:#P30670848,P943718>AppGetAppNames(&Names)
  841.  
  842. <:s><:#P30670848,P943718>For t = 1 to NumberRunning
  843.  
  844. <:s><:#P30670848,P943718>    WinName = Names(t)
  845.  
  846. <:s><:#P30670848,P943718>    If 0 != Instr(0, WinName App)
  847.  
  848. <:s><:#P30670848,P943718>        ' The app that we are trying to launch is running, return the full name
  849.  
  850. <:s><:#P30670848,P943718>        ' as it appears on the titlebar of the application - For example:
  851.  
  852. <:s><:#P30670848,P943718>        ' Notes may appear as Lotus Notes - New Memo
  853.  
  854. <:s><:#P30670848,P943718>        Return WinName
  855.  
  856. <:s><:#P30670848,P943718>    Endif
  857.  
  858. <:s><:#P30670848,P943718>Next
  859.  
  860. <:s><:#P30670848,P943718>Return 0
  861.  
  862. <:s><:#P30670848,P943718>End Function
  863.  
  864. <:s><:#P30670848,P943718>
  865.  
  866. <:s><:#P30670848,P943718>
  867.  
  868. @Function@<:s><:#P30670848,P943718>
  869. >
  870.  
  871. [Embedded]
  872. 00008601
  873. >
  874. [macsum4] 3 34
  875. LotusNotes 0 0 6 9
  876. InitDlg 857 1 1 36
  877. CheckIsRunning 952 1 5 43
  878. [macse]
  879. 14 LotusNotes
  880. 29 0 LotusNotes
  881. 17 1
  882. 29 1 RealAppName
  883. 17 3
  884. 5 0
  885. 16 CheckIsRunning "Lotus Notes"
  886. 13
  887. 0 805 &1 [X]
  888. 13
  889. 18 1
  890. 11 00000171
  891. 17 5
  892. 0 38 "{1}"
  893. 6 0
  894. 15
  895. 9
  896. 17 8
  897. 29 2 appPath
  898. 0 286 "LotusApplications" "Notes"
  899. 13
  900. 8 2
  901. 17 9
  902. 29 3 launchResult
  903. 0 22 "{2}" ""
  904. 13
  905. 8 3
  906. 17 10
  907. 29 4 Mac
  908. 0 802
  909. 13
  910. 8 4
  911. 17 11
  912. 6 3
  913. 5 33
  914. 18 5
  915. 11 00000838
  916. 17 12
  917. 0 31 1004 "Enter the path for Lotus Notes for OS/2:"
  918. 17 13
  919. 0 31 1001 "Ami Pro cannot find Lotus Notes for OS/2. If you have Notes currently installed, please enter the path below."
  920. 17 14
  921. 0 31 8000 "C:\NOTES\$LNOTES.EXE"
  922. 17 15
  923. 0 41 0 "{4}!InitDlg"
  924. 17 16
  925. 29 5 Box
  926. 0 26 "Launch.dlg" "Missouri"
  927. 13
  928. 8 5
  929. 17 17
  930. 6 5
  931. 5 1
  932. 18 1
  933. 11 00000719
  934. 6 0
  935. 15
  936. 9
  937. 17 21
  938. 0 27 8000
  939. 13
  940. 8 2
  941. 17 22
  942. 0 287 "LotusApplications" "Notes" "{2}"
  943. 17 23
  944. 0 22 "{2}" ""
  945. 13
  946. 8 3
  947. 10 00000317
  948. 6 0
  949. 15
  950. 17 25
  951. 9
  952. 14 InitDlg
  953. 29 0 Hdlg
  954. 29 1 InitDlg
  955. 17 2
  956. 0 75 "{0}" "Execute Lotus Notes"
  957. 6 1
  958. 15
  959. 17 3
  960. 9
  961. 14 CheckIsRunning
  962. 29 0 App
  963. 29 1 CheckIsRunning
  964. 17 1
  965. 29 2 NumberRunning
  966. 0 1033
  967. 13
  968. 8 2
  969. 17 2
  970. 6 2
  971. 29 3 Names
  972. 21 3 [X]
  973. 17 3
  974. 0 1034 &3
  975. 29 4 t
  976. 5 1
  977. 8 4
  978. 17 4
  979. 6 2
  980. 6 4
  981. 18 2
  982. 12 00000242
  983. 10 00000365
  984. 5 1
  985. 6 4
  986. 3 0
  987. 8 4
  988. 10 00000161
  989. 17 5
  990. 29 5 WinName
  991. 6 4
  992. 22 3
  993. 8 5
  994. 17 6
  995. 5 0
  996. 0 808 0 "{5}" "{0}"
  997. 13
  998. 18 1
  999. 11 00000352
  1000. 17 10
  1001. 6 5
  1002. 15
  1003. 9
  1004. 10 00000209
  1005. 17 13
  1006. 5 0
  1007. 15
  1008. 9
  1009. 6 1
  1010. 15
  1011. 17 14
  1012. 9
  1013. 00008626
  1014.