home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 14 / 14.iso / s / s005 / 52.ddi / SMM.LIB / 123G.SMM next >
Encoding:
INI File  |  1993-10-28  |  10.9 KB  |  1,097 lines

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