home *** CD-ROM | disk | FTP | other *** search
/ Program Metropolis - Software Boutique 95 / SOFTWARECD.iso / camipro3 / macros.cmz / AMIMENUS.SMM < prev    next >
Encoding:
INI File  |  1994-08-14  |  63.8 KB  |  3,743 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.     LPT1:
  15. [lang]
  16.     1
  17. [desc]
  18.     ª█¡q Ami Pro Ñ\»α¬φ
  19.     Lotus Word Processing Division
  20.     Advanced
  21.     Define, AddMenu
  22.     NoAutorun
  23.     776713415
  24.     71
  25.     668987187
  26.     976
  27.     24
  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. [ParaNum]
  54.     1
  55. [l1]
  56.     0
  57. [pg]
  58.     24
  59.     41 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
  60.     80 0 17 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
  61.     121 0 6 0 0 1 0 65535 65535 Standard    65535 0 0    0 0 0 0 0 0 0 65535 0 0 65535 0 0 0 0 0
  62.     168 0 7 0 0 1 0 65535 65535 Standard    65535 0 0    0 0 0 0 0 0 0 65535 0 0 65535 0 0 0 0 0
  63.     186 0 17 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
  64.     214 0 17 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
  65.     262 0 36 0 0 1 0 65535 65535 Standard    65535 0 0    0 0 0 0 0 0 0 65535 0 0 65535 0 0 0 0 0
  66.     306 0 6 0 0 1 0 65535 65535 Standard    65535 0 0    0 0 0 0 0 0 0 65535 0 0 65535 0 0 0 0 0
  67.     328 0 17 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
  68.     371 0 17 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
  69.     394 0 17 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
  70.     443 0 26 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
  71.     492 0 21 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
  72.     541 0 35 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
  73.     590 0 21 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
  74.     633 0 17 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
  75.     657 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
  76.     701 0 0 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
  77.     711 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
  78.     755 0 17 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
  79.     789 0 17 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
  80.     820 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
  81.     861 0 41 0 0 1 0 65535 65535 Standard    65535 0 0    0 0 0 0 0 0 0 65535 0 0 65535 0 0 0 0 0
  82.     906 0 10 1025 1 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. [edoc]
  84. <:#284,9025>' CustMenu - Allow the user to add and delete menu item.sdeclare InitCombo(p1);
  85.  
  86. <:#284,9025>
  87.  
  88. <:#284,9025>' Now some handy defines for window messages. 
  89.  
  90. <:#284,9025>define    MF_BYPOSITION    0x400
  91.  
  92. <:#284,9025>define    CB_SETCURSEL    0x40E
  93.  
  94. <:#284,9025>define    CB_GETCURSEL    0x407
  95.  
  96. <:#284,9025>
  97.  
  98. <:#284,9025>' Define Macros to actually make the Windows calls.
  99.  
  100. <:#284,9025>
  101.  
  102. <:#284,9025>define GetActiveWindow()
  103.  
  104. <:#284,9025>    DllCall("user,GetActiveWindow,H")
  105.  
  106. <:#284,9025>define    GetMenu(hWnd)
  107.  
  108. <:#284,9025>    DllCall("user,GetMenu,HH", %1)
  109.  
  110. <:#284,9025>define    GetMenuString(hMenu, offset, namep, max, flag)
  111.  
  112. <:#284,9025>    DllCall("user,GetMenuString,HHHFHH", %1, %2, %3, %4, %5)
  113.  
  114. <:#284,9025>define    GetMenuItemCount(hMenu)
  115.  
  116. <:#284,9025>    DllCall("user,GetMenuItemCount,HH", %1)
  117.  
  118. <:#284,9025>define    GetParent(hWnd)
  119.  
  120. <:#284,9025>    DllCall("user,GetParent,HH", %1)
  121.  
  122. <:#284,9025>define    GetSubMenu(hMenu, pos)
  123.  
  124. <:#284,9025>    DllCall("user,GetSubMenu,HHH", %1, %2)
  125.  
  126. <:#284,9025>Define    Dllname    "User"
  127.  
  128. <:#284,9025>' Now functions we call
  129.  
  130. <:#284,9025>declare ComboCallBack(p1, p2, p3);
  131.  
  132. <:#284,9025>declare LocateHmenu(p1);
  133.  
  134. <:#284,9025>Declare FindMenu(p1, p2)
  135.  
  136. <:#284,9025>declare LoadTheBox(p1, p2)
  137.  
  138. <:#284,9025>declare FindAutoExec();
  139.  
  140. <:#284,9025>declare AddAccelStuff(p1, p2);
  141.  
  142. <:#284,9025>declare ShowAccel(p1);
  143.  
  144. <:#284,9025>declare DetermineAccel();
  145.  
  146. <:#284,9025><:>declare AddAccelerator<:>(amifuncnt, amifuns, menuids)
  147.  
  148. <:#284,9025>declare    LoadMenus(p1)
  149.  
  150. <:#284,9025>declare LoadAmiFuns(p1, p2)
  151.  
  152. <:#284,9025>declare GetAmiPro(p1, p2)
  153.  
  154. <:#284,9025>declare GetMacro()
  155.  
  156. <:#284,9025><:><:>declare AddToAutoexec(p1, p2, p3, p4, p5, p6, p7)
  157.  
  158. <:#284,9025>declare    AddItem(p1, p2, p3, p4, p5, p6)
  159.  
  160. <:#284,9025>declare DelMenu(p1)
  161.  
  162. <:#284,9025>
  163.  
  164. <:p<* >>
  165.  
  166. @Function@<:#293,9025><:ZCustMenu>FUNCTION CustMenu<:Z~CustMenu>()
  167.  
  168. <:#284,9025>'singlestep(0)
  169.  
  170. <:#284,9025>IF IsNewWave()
  171.  
  172. <:#284,9025>    Message("Macro not available while running under HP NewWave.")
  173.  
  174. <:#284,9025>    Exit Function
  175.  
  176. <:#284,9025>ENDIF
  177.  
  178. <:#284,9025>dim    menus(20)            ' Where to store the standard menu names
  179.  
  180. <:#284,9025>dim    amifuns(200)            ' Where to store ami function names
  181.  
  182. <:#284,9025>dim    menuids(200)            ' and there corresponding menuids
  183.  
  184. <:#284,9025><:><:>menucnt = LoadMenus(&menus)    ' Get the menu names
  185.  
  186. <:#284,9025>amifuncnt  = LoadAmiFuns(&amifuns, &menuids)    ' And the amipro functions
  187.  
  188. <:#284,9025>StatusBarMsg("")
  189.  
  190. <:#284,9025>defstr    stat;
  191.  
  192. <:#568,9025>FillEdit(8000, &menus)        ' Load the list box with the menus for them to choose
  193.  
  194. <:#568,9025>While (1 << Assign(&stat, DialogBox("." "PickMenu")))     'Loop here until OK or Cancel
  195.  
  196. <:#284,9025>    menuname = GetDialogField$(9000)
  197.  
  198. <:#568,9025>    if ("" != menuname)                    'Make sure they picked something
  199.  
  200. <:#284,9025>        ' Now determine which button caused the box to close.
  201.  
  202. <:#284,9025>        switch stat
  203.  
  204. <:#284,9025>            case 5
  205.  
  206. <:#284,9025><:><:><:><:>            hourglass(1)
  207.  
  208. <:#568,9025>            AddItem(menuname, amifuncnt, &amifuns, &menuids, menucnt, &menus)
  209.  
  210. <:#284,9025><:><:><:><:>            hourglass(0)
  211.  
  212. <:#284,9025>            break
  213.  
  214. <:#284,9025>            case 6
  215.  
  216. <:#284,9025><:><:><:><:>            hourglass(1)
  217.  
  218. <:#284,9025>            DelMenu(menuname)
  219.  
  220. <:#284,9025><:><:><:><:>            hourglass(0)
  221.  
  222. <:#284,9025>            break;
  223.  
  224. <:#284,9025>            case 7
  225.  
  226. <:#284,9025><:><:><:><:>            hourglass(1)
  227.  
  228. <:#284,9025>            AddAccelerator(amifuncnt, &amifuns, &menuids)
  229.  
  230. <:#284,9025><:><:><:><:>            hourglass(0)
  231.  
  232. <:#284,9025>            break;
  233.  
  234. <:#284,9025>        endswitch
  235.  
  236. <:#284,9025>    endif
  237.  
  238. <:#284,9025><:><:><:><:>    FillEdit(8000, &menus)        ' Reload the box for next goround
  239.  
  240. <:#284,9025><:><:><:><:>wend
  241.  
  242. END FUNCTION<:p<* >>
  243.  
  244. <:#568,9025>' AddItem - This macro will add either an AmiPro function or macro to any of the standard
  245.  
  246. <:#568,9025>'    menus.    Because we can not pass anything to our callback routines we will keep
  247.  
  248. <:#284,9025>'    the information in global variables.
  249.  
  250. <:#284,9025>define    POSVAR    "Cust1"        ' Currently selected position
  251.  
  252. <:#284,9025>define    GHMENU    "Cust2"        ' Handle the menu in question.
  253.  
  254. <:#284,9025>
  255.  
  256. @Function@<:#586,9025><:ZAddItem>FUNCTION AddItem<:Z~AddItem>(menuname, amifuncnt, amifuns, menuids, menucnt, menus)
  257.  
  258. <:#284,9025>menuid = 0                ' initialize all our variables
  259.  
  260. <:#284,9025>macroname = ""
  261.  
  262. <:#284,9025>itemname = ""
  263.  
  264. <:#284,9025>action = ""
  265.  
  266. <:#284,9025>Helptext = ""
  267.  
  268. <:#284,9025>temp = ""
  269.  
  270. <:#284,9025>itemnum = 0
  271.  
  272. <:#284,9025>pos = 0
  273.  
  274. <:#284,9025>accel = 0
  275.  
  276. <:#284,9025>hmenu = 0;
  277.  
  278. <:#284,9025>AllocGlobalVar(POSVAR, 1)
  279.  
  280. <:#284,9025>AllocGlobalVar(GHMENU, 1)
  281.  
  282. <:#568,9025>SetGlobalVar(POSVAR, 0)            ' Position 0 indicates none selected (add to end)
  283.  
  284. <:#284,9025>SetGlobalVar(GHMENU, LocateHmenu(menuname));    ' get hMenu and save
  285.  
  286. <:#568,9025>stat = 2                    ' Set stat so we execute dlgbox at least once
  287.  
  288. <:#284,9025>while (stat != 0 and stat != 1)        ' Do this till they cancel or ok it.
  289.  
  290. <:#284,9025>    FillEdit(1003, menuname)    ' Show em what we know so far.
  291.  
  292. <:#284,9025>    FillEdit(1005, action)
  293.  
  294. <:#284,9025>    FillEdit(8000, itemname)
  295.  
  296. <:#284,9025>    FillEdit(8001, helptext)
  297.  
  298. <:#284,9025>    FillEdit(8002, pos)
  299.  
  300. <:#284,9025>    ShowAccel(accel)
  301.  
  302. <:#568,9025>    ' For the "Insert Before Item" we really want to know what position on the menu to 
  303.  
  304. <:#284,9025>    ' insert the new item.  We use a call back to simply determine which item was 
  305.  
  306. <:#568,9025>    ' selected.  We dont sort the box so the CB_GETCURSEL will return the position
  307.  
  308. <:#568,9025>    ' we are intereted in.  Also we will use the special callback id == 0 to load this box.
  309.  
  310. <:#284,9025>    SetDlgCallBack(0, strcat$(GetRunningMacroFile$(), "!InitCombo"))
  311.  
  312. <:#284,9025><:><:>    SetDlgCallBack(9500, strcat$(GetRunningMacroFile$(),"!ComboCallback"))
  313.  
  314. <:#284,9025>    if (0 != Assign(&stat, DialogBox(".", "additem")))
  315.  
  316. <:#284,9025>        itemname = GetDialogField$(8000)    ' extract the item
  317.  
  318. <:#284,9025>        helptext = GetDialogField$(8001)    ' and help text
  319.  
  320. <:#284,9025>        pos = GetGlobalVar$(POSVAR)    ' get position from the global var
  321.  
  322. <:#284,9025>        accel = DetermineAccel()
  323.  
  324. <:#284,9025>    endif
  325.  
  326. <:#284,9025>    ' Now determine which button they pushed.
  327.  
  328. <:#284,9025>    switch stat
  329.  
  330. <:#284,9025>        case 4                    ' Select macro
  331.  
  332. <:#284,9025>            if ("" != Assign(&temp, GetMacro()))        ' Pick a macro
  333.  
  334. <:#284,9025>                macroname = temp    ' yes update it
  335.  
  336. <:#284,9025>                action = macroname
  337.  
  338. <:#284,9025>                menuid = 0        ' And zero the menuid
  339.  
  340. <:#284,9025>            endif
  341.  
  342. <:#284,9025>        case 3                    ' AmiPro Function
  343.  
  344. <:#284,9025>            if (0 != Assign(&itemnum, GetAmiPro(&amifuns, amifuncnt)))
  345.  
  346. <:#284,9025>                macro = ""
  347.  
  348. <:#284,9025>                menuid = *menuids(itemnum)
  349.  
  350. <:#284,9025>                action = *amifuns(itemnum)
  351.  
  352. <:#284,9025>            endif
  353.  
  354. <:#284,9025>    endswitch
  355.  
  356. <:#284,9025>wend
  357.  
  358. <:#284,9025>FreeGlobalVar(POSVAR);
  359.  
  360. <:#284,9025>FreeGlobalVar(GHMENU);
  361.  
  362. <:#568,9025>' If they have entered all information, make it take effect, then see if they want to make
  363.  
  364. <:#284,9025>' it permanent.
  365.  
  366. <:#284,9025>'
  367.  
  368. <:#284,9025>if ((stat) and (menuname != "") and ((menuid != 0) or (macroname != "")))
  369.  
  370. <:#284,9025>    if (accel)        ' if they made this an accelerator, add it to the itemname
  371.  
  372. <:#284,9025>        itemname = AddAccelStuff(itemname, accel)
  373.  
  374. <:#284,9025>    endif
  375.  
  376. <:#284,9025>    if (menuid != 0)        ' AmiPro Functoin?
  377.  
  378. <:#284,9025>        if (0 = pos)
  379.  
  380. <:#284,9025>            AddMenuItem(1, menuname, itemname, menuid)
  381.  
  382. <:#284,9025>        else
  383.  
  384. <:#284,9025>            InsertMenuItem(1, menuname, pos - 1, itemname, menuid)
  385.  
  386. <:#284,9025>        endif
  387.  
  388. <:#284,9025>        if (accel)
  389.  
  390. <:#284,9025>            if getopenfilecount() << 1
  391.  
  392. <:#284,9025>                sty = GetProfileString$("AmiPro", "defstyle", "amipro.ini")
  393.  
  394. <:#284,9025>                if sty = ""
  395.  
  396. <:#284,9025>                    sty = "_default.sty"
  397.  
  398. <:#284,9025>                endif
  399.  
  400. <:#284,9025>                new(sty, 0, 0)
  401.  
  402. <:#284,9025>            endif
  403.  
  404. <:#284,9025>            Onkey(accel, menuid, "")
  405.  
  406. <:#284,9025>        endif
  407.  
  408. <:#284,9025>    else
  409.  
  410. <:#284,9025>        if (0 = pos)
  411.  
  412. <:#284,9025>            AddMenuItem(1, menuname, itemname, macroname, helptext)
  413.  
  414. <:#284,9025>        else
  415.  
  416. <:#568,9025>            InsertMenuItem(1, menuname, pos - 1, itemname, macroname, helptext)
  417.  
  418. <:#284,9025>        endif
  419.  
  420. <:#284,9025>        if (accel)
  421.  
  422. <:#284,9025>            if getopenfilecount() << 1
  423.  
  424. <:#284,9025>                sty = GetProfileString$("AmiPro", "defstyle", "amipro.ini")
  425.  
  426. <:#284,9025>                if sty = ""
  427.  
  428. <:#284,9025>                    sty = "_default.sty"
  429.  
  430. <:#284,9025>                endif
  431.  
  432. <:#284,9025>                new(sty, 0, 0)
  433.  
  434. <:#284,9025>            endif
  435.  
  436. <:#284,9025>            OnKey(accel, 0, macroname)
  437.  
  438. <:#284,9025>        endif
  439.  
  440. <:#284,9025>    endif
  441.  
  442. <:#284,9025>    if (Decide("Keep settings for next session?"))
  443.  
  444. <:#568,9025><:><:><:><:>        AddToAutoexec(menuname, itemname, menuid, macroname, helptext, pos, accel)
  445.  
  446. <:#284,9025>    endif
  447.  
  448. <:#284,9025>elseif (1 = stat)        ' did they say ok but not specify enough stuff
  449.  
  450. <:#284,9025>    Message("Not all necessary information found")
  451.  
  452. <:#284,9025>endif
  453.  
  454. END FUNCTION<:p<* >>
  455.  
  456. <:#568,9025>' ComboCallBack - This gets called when the user has selected an item from the combo box.
  457.  
  458. <:#568,9025>'    we simply ask the combo box which one got selected, then we save that offset into 
  459.  
  460. <:#284,9025>'    our global array.
  461.  
  462. @Function@<:#293,9025><:ZComboCallBack>FUNCTION ComboCallBack(hDlg, id, text)<:Z~ComboCallBack>
  463.  
  464. <:#568,9025>hCtrl = GetDlgItem(hDlg, id)                ' Need HWND of the combo box
  465.  
  466. <:#284,9025>off= AppSendMessage(hCtrl, CB_GETCURSEL, 0, 0)    ' Ask him
  467.  
  468. <:#284,9025>SetGlobalVar(POSVAR, off)                    ' Save it
  469.  
  470. <:#284,9025>END FUNCTION
  471.  
  472. <:#284,9025>'
  473.  
  474. <:#568,9025>' InitCombo - this is called before the dialog box is pulled up (SetDlgCallBack(0, InitCombo))
  475.  
  476. <:#568,9025>'    We get the menu handle from the global variale, then using windows calls, load the 
  477.  
  478. <:#284,9025>'    combo box with items from that menu.
  479.  
  480. @Function@<:#293,9025><:ZInitCombo>FUNCTION InitCombo(hDlg)<:Z~InitCombo>
  481.  
  482. <:#284,9025><:><:>defstr    menuname;
  483.  
  484. <:#284,9025>hMenu = GetGlobalVar$(GHMENU)        ' Retrieve the handle to menu
  485.  
  486. <:#284,9025>SetDlgItemtext(hDlg, 9500, "")        ' Set a blank one at top
  487.  
  488. <:#568,9025>menucnt = GetMenuItemCount(hMenu)    ' Determin how many are on the menu
  489.  
  490. <:#284,9025>for i = 0 to menucnt - 1
  491.  
  492. <:#284,9025>    GetMenuString(hMenu, i, &menuname, 80, MF_BYPOSITION)
  493.  
  494. <:#284,9025>    if (0 << tlen(menuname))
  495.  
  496. <:#284,9025>        SetDlgItemText(hDlg, 9500,  menuname)
  497.  
  498. <:#284,9025>    else
  499.  
  500. <:#284,9025>        SetDlgItemText(hDlg, 9500, "------------------------------------")
  501.  
  502. <:#284,9025>    endif
  503.  
  504. <:#284,9025>next
  505.  
  506. <:#284,9025>' finally select one by position.
  507.  
  508. <:#568,9025>AppSendMessage(GetDlgItem(hDlg, 9500), CB_SETCURSEL, GetGlobalVar$(POSVAR), 0)
  509.  
  510. END FUNCTION<:p<* >>
  511.  
  512. <:#284,9025>
  513.  
  514. <:#568,9025>' AddAccelerator - Get either an amipro function or macro, and a key then make it an 
  515.  
  516. <:#284,9025>'    accelerator.
  517.  
  518. <:#284,9025>' 
  519.  
  520. @Function@<:#293,9025><:>FUNCTION <:ZAddAccelerator>AddAccelerator<:Z~AddAccelerator><:>(amifuncnt, amifuns, menuids)
  521.  
  522. <:#284,9025>menuid = 0
  523.  
  524. <:#284,9025>macroname = ""
  525.  
  526. <:#284,9025>action = ""
  527.  
  528. <:#284,9025>itemnum = 0
  529.  
  530. <:#284,9025>accel = 0
  531.  
  532. <:#284,9025>temp = ""
  533.  
  534. <:#284,9025>stat = 2
  535.  
  536. <:#284,9025>while (stat != 0 and stat != 1)        ' Do this till they cancel or ok it.
  537.  
  538. <:#284,9025>    FillEdit(1005, action)
  539.  
  540. <:#284,9025><:><:>    ShowAccel(accel)
  541.  
  542. <:#284,9025>    if (0 != Assign(&stat, DialogBox(".", "addaccel")))
  543.  
  544. <:#284,9025><:><:>        accel = DetermineAccel()
  545.  
  546. <:#284,9025>    endif
  547.  
  548. <:#284,9025>    switch stat
  549.  
  550. <:#284,9025>        case 4                    ' They push the select macro
  551.  
  552. <:#284,9025>            if ("" != Assign(&temp, GetMacro()))        ' Pick a macro
  553.  
  554. <:#284,9025>                macroname = temp    ' yes update it
  555.  
  556. <:#284,9025>                action = macroname
  557.  
  558. <:#284,9025>                menuid = 0        ' And zero the menuid
  559.  
  560. <:#284,9025>            endif
  561.  
  562. <:#284,9025>        case 3                    ' AmiPro Function
  563.  
  564. <:#284,9025>            if (0 != Assign(&itemnum, GetAmiPro(&amifuns, amifuncnt)))
  565.  
  566. <:#284,9025>                macro = ""
  567.  
  568. <:#284,9025>                menuid = *menuids(itemnum)
  569.  
  570. <:#284,9025>                action = *amifuns(itemnum)
  571.  
  572. <:#284,9025>            endif
  573.  
  574. <:#284,9025>    endswitch
  575.  
  576. <:#284,9025>wend
  577.  
  578. <:#284,9025>
  579.  
  580. <:#284,9025>if ((stat) and (accel != 0) and ((menuid != 0) or (macroname != "")))
  581.  
  582. <:#284,9025>    if getopenfilecount() << 1
  583.  
  584. <:#284,9025>        sty = GetProfileString$("AmiPro", "defstyle", "amipro.ini")
  585.  
  586. <:#284,9025>        if sty = ""
  587.  
  588. <:#284,9025>            sty = "_default.sty"
  589.  
  590. <:#284,9025>        endif
  591.  
  592. <:#284,9025>        new(sty, 0, 0)
  593.  
  594. <:#284,9025>    endif
  595.  
  596. <:#284,9025>    if (menuid != 0)
  597.  
  598. <:#284,9025>        Onkey(accel, menuid, "")
  599.  
  600. <:#284,9025>    else
  601.  
  602. <:#284,9025>        OnKey(accel, 0, macroname)
  603.  
  604. <:#284,9025>    endif
  605.  
  606. <:#284,9025>    if (Decide("Make this permanent?"))
  607.  
  608. <:#284,9025><:><:><:><:><:><:>        AddToAutoexec(0, 0, menuid, macroname, 0, 0, accel)
  609.  
  610. <:#284,9025>    endif
  611.  
  612. <:#284,9025>elseif (1 = stat)        ' did they say ok but not specify enough stuff
  613.  
  614. <:#284,9025>    Message("Not all necessary information found")
  615.  
  616. <:#284,9025>endif
  617.  
  618. <:#284,9025>END FUNCTION
  619.  
  620. <:#284,9025>
  621.  
  622. <:#284,9025>' DetermineAccel - turn the letter and the shift state check boxes into a number.
  623.  
  624. <:#284,9025>
  625.  
  626. @Function@<:#293,9025><:ZDetermineAccel>FUNCTION DetermineAccel()<:Z~DetermineAccel>
  627.  
  628. <:#284,9025>defstr    fkey;
  629.  
  630. <:#284,9025>accel = 0                    ' Assume they did not hit any thing
  631.  
  632. <:#284,9025>key = GetDialogField$(8003)            ' Get the letter
  633.  
  634. <:#284,9025>if ("" != key)                    ' they type something?
  635.  
  636. <:#284,9025>    if (1 = tlen(key))            ' Single letter?
  637.  
  638. <:#568,9025>                            ' The UCase is necessary because what
  639.  
  640. <:#284,9025>                            ' we really want is the virtual key.
  641.  
  642. <:#284,9025>        accel = asc(UCase$(kmid$(key,1, 1)));    ' Yes, turn it into a virtual key
  643.  
  644. <:#284,9025>    else
  645.  
  646. <:#568,9025>        ' We only accept function keys here, they must be of the form "Fx" where the
  647.  
  648. <:#284,9025>        ' x is 1 - 12.  So first make sure that the first letter is a F.
  649.  
  650. <:#568,9025>        ' Then make sure the rest of it is numeric.  While we have it use assign to 
  651.  
  652. <:#284,9025>        ' set fkey to that value.
  653.  
  654. <:#284,9025>        if ("F" = UCase$(kmid$(key,1, 1)))
  655.  
  656. <:#284,9025>        AND IsNumeric(Assign(&fkey, Right$(key, tlen(key) - 1)))
  657.  
  658. <:#284,9025>            ' Set accel to the virtual key F0.  NOTE the BracketsToBin is 
  659.  
  660. <:#568,9025>            ' necessary because asc returns the value of the first character of its
  661.  
  662. <:#284,9025>            ' input.  Since there is no F0, assign it to F1 then subtract 1.
  663.  
  664. <:#284,9025>            accel = asc(BracketsToBin("<[>F1]")) - 1
  665.  
  666. <:#568,9025>            accel = accel + fkey;            ' Bump it up to the proper value
  667.  
  668. <:#284,9025>        else
  669.  
  670. <:#284,9025>            Message("Invalid key.  It must be A - Z or F1 to F12");
  671.  
  672. <:#284,9025>            return 0;
  673.  
  674. <:#284,9025>        endif
  675.  
  676. <:#284,9025>    endif
  677.  
  678. <:#284,9025>    if (GetDialogField$(21))        ' Now add in the shift states.
  679.  
  680. <:#284,9025>        accel = accel | 0x4000;
  681.  
  682. <:#284,9025>        endif
  683.  
  684. <:#284,9025>    if (GetDialogField$(22))
  685.  
  686. <:#284,9025>        accel = accel | 0x1000;
  687.  
  688. <:#284,9025>    endif
  689.  
  690. <:#284,9025>    if (GetDialogField$(23))
  691.  
  692. <:#284,9025>        accel = accel | 0x2000;
  693.  
  694. <:#284,9025>    endif
  695.  
  696. <:#284,9025>endif
  697.  
  698. <:#284,9025>
  699.  
  700. <:#284,9025>return accel;
  701.  
  702. <:#284,9025>END FUNCTION
  703.  
  704. <:#284,9025>'
  705.  
  706. <:#284,9025>' ShowAccel - given the accelerate prime the dialog box.
  707.  
  708. <:#284,9025>
  709.  
  710. @Function@<:#293,9025><:ZShowAccel>FUNCTION ShowAccel(accel)<:Z~ShowAccel>
  711.  
  712. <:#284,9025>if (0 != accel)
  713.  
  714. <:#568,9025>    FillEdit(21, accel & 0x4000);        ' Set the check boxes for ctrl, shift and alt
  715.  
  716. <:#284,9025>    FillEdit(22, accel & 0x1000);
  717.  
  718. <:#284,9025>    FillEdit(23, accel & 0x2000);
  719.  
  720. <:#284,9025>    accel = accel & 0xff;            ' Strip off the shift states.
  721.  
  722. <:#284,9025>    lowf = asc(BracketsToBin("<[>f1]"))    ' Get virtual key for F1.
  723.  
  724. <:#284,9025>    if (lowf <<= accel AND accel <<= (lowf + 12))
  725.  
  726. <:#284,9025>        ' Create the "Fx" using strcat$.  
  727.  
  728. <:#284,9025>        FillEdit(8003, strcat$("F", chr$(0x31 + (accel - lowf))))
  729.  
  730. <:#284,9025>    else
  731.  
  732. <:#284,9025>        FillEdit(8003, chr$(accel))
  733.  
  734. <:#284,9025>    endif
  735.  
  736. <:#284,9025>endif
  737.  
  738. END FUNCTION<:p<* >>
  739.  
  740. <:#284,9025>
  741.  
  742. <:#568,9025>' AddAccelStuff - given the itemname (what will show on the menu) add in a accelerator
  743.  
  744. <:#284,9025>'    key of the form CTRL+Z or ALT+F4
  745.  
  746. <:#284,9025>
  747.  
  748. @Function@<:#293,9025><:ZAddAccelStuff>FUNCTION AddAccelStuff(itemname, accel)<:Z~AddAccelStuff>
  749.  
  750. <:#284,9025>shift = "";
  751.  
  752. <:#284,9025>if (accel & 0x4000)
  753.  
  754. <:#284,9025>    shift = strcat$(shift, "Ctrl+")
  755.  
  756. <:#284,9025>endif
  757.  
  758. <:#284,9025>if (accel & 0x1000)
  759.  
  760. <:#284,9025>    shift = strcat$(shift, "Shift+");
  761.  
  762. <:#284,9025>endif
  763.  
  764. <:#284,9025>if (accel & 0x2000)
  765.  
  766. <:#284,9025>    shift = strcat$(shift, "Alt+");
  767.  
  768. <:#284,9025>endif
  769.  
  770. <:#284,9025>accel = accel & 0xff;            ' Strip off the shift states.
  771.  
  772. <:#284,9025>lowf = asc(BracketsToBin("<[>f1]"))    ' Get virtual key for F1.
  773.  
  774. <:#284,9025>if (lowf <<= accel AND accel <<= (lowf + 12))
  775.  
  776. <:#284,9025>    ' Create the "Fx" using strcat$.  
  777.  
  778. <:#284,9025>    text = strcat$("F", chr$(0x31 + (accel - lowf)))
  779.  
  780. <:#284,9025>else
  781.  
  782. <:#284,9025>    text = chr$(accel)
  783.  
  784. <:#284,9025>endif
  785.  
  786. <:#284,9025>shift = strcat$(shift, text);
  787.  
  788. <:#284,9025>return strcat$(itemname, "    ", shift);
  789.  
  790. <:#284,9025>END FUNCTION
  791.  
  792. <:#284,9025>
  793.  
  794. <:#284,9025>' :LoadMenus - fill the callers array with top level menu names
  795.  
  796. <:#284,9025>'
  797.  
  798. @Function@<:#293,9025>FUNCTION <:ZLoadMenus>LoadMenus<:Z~LoadMenus>(menus)
  799.  
  800. <:#284,9025>hmenu = getmenu(getactivewindow())
  801.  
  802. <:#284,9025>menucnt = GetMenuItemCount(hmenu)
  803.  
  804. <:#284,9025>defstr menuname;
  805.  
  806. <:#284,9025>a = 1
  807.  
  808. <:#284,9025>for i = 0 to menucnt - 1
  809.  
  810. <:#284,9025>    GetMenuString(hMenu, i, &menuname, 80, MF_BYPOSITION)
  811.  
  812. <:#284,9025>    if menuname <<<;> "" and menuname <<<;> "&Window";
  813.  
  814. <:#284,9025>        *menus(a) = menuname;
  815.  
  816. <:#284,9025>        a = a + 1
  817.  
  818. <:#284,9025>    endif        
  819.  
  820. <:#284,9025>next
  821.  
  822. <:#284,9025>return a
  823.  
  824. END FUNCTION<:p<* >>
  825.  
  826. <:#284,9025>'
  827.  
  828. <:#284,9025>' GetMacro - put up the macro list dialog box, and let the user pick a macro.
  829.  
  830. <:#284,9025>'     Return the macroname or a null string if they canceled out.
  831.  
  832. @Function@<:#293,9025><:><:ZGetMacro>Function GetMacro<:Z~GetMacro><:>()
  833.  
  834. <:#284,9025>onerror endit
  835.  
  836. <:#284,9025>oncancel endit
  837.  
  838. <:#284,9025>StatusBarMsg("One moment please...")
  839.  
  840. <:#568,9025>DOSchdir(GetMacPath$())        ' Change to macro directory before the dialogbox
  841.  
  842. <:#284,9025>FillEdit(9001, "*.smm")
  843.  
  844. <:#284,9025>StatusBarMsg("")
  845.  
  846. <:#284,9025>if (1 = DialogBox(".", "macrolst"))
  847.  
  848. <:#284,9025>
  849.  
  850. <:#284,9025>    ' GetDialogField will only return the filename, we want the entire path, so
  851.  
  852. <:#568,9025>    ' concatenate it with the current directory (the dialog box may have changed it)
  853.  
  854. <:#284,9025>    ' then lowercase everything so it looks better in the top level dialog box.
  855.  
  856. <:#284,9025>    macname = lcase$(strcat$(GetCurrentDir$(), GetDialogField$(8001)));
  857.  
  858. <:#284,9025>else
  859.  
  860. <:#284,9025>    macname = ""        ' cancel return null string.
  861.  
  862. <:#284,9025>endif
  863.  
  864. <:#284,9025>endit:
  865.  
  866. <:#284,9025>return macname;
  867.  
  868. <:#284,9025>StatusBarMsg("")
  869.  
  870. END FUNCTION<:p<* >>
  871.  
  872. <:#284,9025>' LoadAmiFuns - open the control file and load the two arrays.
  873.  
  874. <:#284,9025>'     This control file contains one line entries, each havig two fields.  The first is a 
  875.  
  876. <:#284,9025>'    description of the function, the next it the MenuId.
  877.  
  878. <:#284,9025>'
  879.  
  880. @Function@<:#293,9025><:ZLoadAmiFuns>FUNCTION LoadAmiFuns<:Z~LoadAmiFuns>(names, menuids)
  881.  
  882. <:#284,9025>onerror endit
  883.  
  884. <:#284,9025>oncancel endit
  885.  
  886. <:#284,9025>StatusBarMsg("Loading control files...")    ' Tell en to wait
  887.  
  888. <:#284,9025>*names(1) = "New";
  889.  
  890. <:#284,9025>*menuids(1) = "101";
  891.  
  892. <:#284,9025>*names(2) = "Open";
  893.  
  894. <:#284,9025>*menuids(2) = "102";
  895.  
  896. <:#284,9025>*names(3) = "Save";
  897.  
  898. <:#284,9025>*menuids(3) = "103";
  899.  
  900. <:#284,9025>*names(4) = "Save As";
  901.  
  902. <:#284,9025>*menuids(4) = "104";
  903.  
  904. <:#284,9025>*names(5) = "Revert";
  905.  
  906. <:#284,9025>*menuids(5) = "105";
  907.  
  908. <:#284,9025>*names(6) = "Import/Export";
  909.  
  910. <:#284,9025>*menuids(6) = "107";
  911.  
  912. <:#284,9025>*names(7) = "Import Picture";
  913.  
  914. <:#284,9025>*menuids(7) = "141";
  915.  
  916. <:#284,9025>*names(8) = "File Management";
  917.  
  918. <:#284,9025>*menuids(8) = "108";
  919.  
  920. <:#284,9025>*names(9) = "Document Description";
  921.  
  922. <:#284,9025>*menuids(9) = "109";
  923.  
  924. <:#284,9025>*names(10) = "Rename Doc Info Fields";
  925.  
  926. <:#284,9025>*menuids(10) = "125";
  927.  
  928. <:#284,9025>*names(11) = "Links";
  929.  
  930. <:#284,9025>*menuids(11) = "115";
  931.  
  932. <:#284,9025>*names(12) = "Merge";
  933.  
  934. <:#284,9025>*menuids(12) = "110";
  935.  
  936. <:#284,9025>*names(13) = "Print";
  937.  
  938. <:#284,9025>*menuids(13) = "111";
  939.  
  940. <:#284,9025>*names(14) = "Printer Setup";
  941.  
  942. <:#284,9025>*menuids(14) = "112";
  943.  
  944. <:#284,9025>*names(15) = "Exit";
  945.  
  946. <:#284,9025>*menuids(15) = "113";
  947.  
  948. <:#284,9025>*names(16) = "Master Document";
  949.  
  950. <:#284,9025>*menuids(16) = "146";
  951.  
  952. <:#284,9025>*names(17) = "Undo";
  953.  
  954. <:#284,9025>*menuids(17) = "151";
  955.  
  956. <:#284,9025>*names(18) = "Cut";
  957.  
  958. <:#284,9025>*menuids(18) = "153";
  959.  
  960. <:#284,9025>*names(19) = "Copy";
  961.  
  962. <:#284,9025>*menuids(19) = "154";
  963.  
  964. <:#284,9025>*names(20) = "Paste";
  965.  
  966. <:#284,9025>*menuids(20) = "155";
  967.  
  968. <:#284,9025>*names(21) = "Paste Link";
  969.  
  970. <:#284,9025>*menuids(21) = "157";
  971.  
  972. <:#284,9025>*names(22) = "Insert Date";
  973.  
  974. <:#284,9025>*menuids(22) = "158";
  975.  
  976. <:#284,9025>*names(23) = "Footnotes";
  977.  
  978. <:#284,9025>*menuids(23) = "160";
  979.  
  980. <:#284,9025>*names(24) = "Defaults";
  981.  
  982. <:#284,9025>*menuids(24) = "162";
  983.  
  984. <:#284,9025>*names(25) = "Full Page";
  985.  
  986. <:#284,9025>*menuids(25) = "201";
  987.  
  988. <:#284,9025>*names(26) = "Custom View";
  989.  
  990. <:#284,9025>*menuids(26) = "202";
  991.  
  992. <:#284,9025>*names(27) = "Standard";
  993.  
  994. <:#284,9025>*menuids(27) = "203";
  995.  
  996. <:#284,9025>*names(28) = "Enlarged";
  997.  
  998. <:#284,9025>*menuids(28) = "204";
  999.  
  1000. <:#284,9025>*names(29) = "Facing Pages";
  1001.  
  1002. <:#284,9025>*menuids(29) = "212";
  1003.  
  1004. <:#284,9025>*names(30) = "Layout Mode";
  1005.  
  1006. <:#284,9025>*menuids(30) = "210";
  1007.  
  1008. <:#284,9025>*names(31) = "Draft Mode";
  1009.  
  1010. <:#284,9025>*menuids(31) = "211";
  1011.  
  1012. <:#284,9025>*names(32) = "Display Preferences";
  1013.  
  1014. <:#284,9025>*menuids(32) = "206";
  1015.  
  1016. <:#284,9025>*names(33) = "Show Tab Ruler";
  1017.  
  1018. <:#284,9025>*menuids(33) = "207";
  1019.  
  1020. <:#284,9025>*names(34) = "Hide Side Bar";
  1021.  
  1022. <:#284,9025>*menuids(34) = "109";
  1023.  
  1024. <:#284,9025>*names(35) = "Envelope";
  1025.  
  1026. <:#284,9025>*menuids(35) = "237";
  1027.  
  1028. <:#284,9025>*names(36) = "Font";
  1029.  
  1030. <:#284,9025>*menuids(36) = "251";
  1031.  
  1032. <:#284,9025>*names(37) = "Alignment";
  1033.  
  1034. <:#284,9025>*menuids(37) = "263";
  1035.  
  1036. <:#284,9025>*names(38) = "Spacing";
  1037.  
  1038. <:#284,9025>*menuids(38) = "252";
  1039.  
  1040. <:#284,9025>*names(39) = "Normal";
  1041.  
  1042. <:#284,9025>*menuids(39) = "253";
  1043.  
  1044. <:#284,9025>*names(40) = "Bold";
  1045.  
  1046. <:#284,9025>*menuids(40) = "254";
  1047.  
  1048. <:#284,9025>*names(41) = "Italic";
  1049.  
  1050. <:#284,9025>*menuids(41) = "255";
  1051.  
  1052. <:#284,9025>*names(42) = "Underline";
  1053.  
  1054. <:#284,9025>*menuids(42) = "256";
  1055.  
  1056. <:#284,9025>*names(43) = "Word Underline";
  1057.  
  1058. <:#284,9025>*menuids(43) = "256";
  1059.  
  1060. <:#284,9025>*names(44) = "Caps";
  1061.  
  1062. <:#284,9025>*menuids(44) = "264";
  1063.  
  1064. <:#284,9025>*names(45) = "Special Effects";
  1065.  
  1066. <:#284,9025>*menuids(45) = "258";
  1067.  
  1068. <:#284,9025>*names(46) = "Create Style";
  1069.  
  1070. <:#284,9025>*menuids(46) = "301";
  1071.  
  1072. <:#284,9025>*names(47) = "Modify Style";
  1073.  
  1074. <:#284,9025>*menuids(47) = "302";
  1075.  
  1076. <:#284,9025>*names(48) = "Use Another Style Sheet";
  1077.  
  1078. <:#284,9025>*menuids(48) = "304";
  1079.  
  1080. <:#284,9025>*names(49) = "Save As A New Style Sheet";
  1081.  
  1082. <:#284,9025>*menuids(49) = "305";
  1083.  
  1084. <:#284,9025>*names(50) = "Style Management";
  1085.  
  1086. <:#284,9025>*menuids(50) = "303";
  1087.  
  1088. <:#284,9025>*names(51) = "Select a Style";
  1089.  
  1090. <:#284,9025>*menuids(51) = "306";
  1091.  
  1092. <:#284,9025>*names(52) = "Show Styles Box";
  1093.  
  1094. <:#284,9025>*menuids(52) = "307";
  1095.  
  1096. <:#284,9025>*names(53) = "Insert/Remove Layout";
  1097.  
  1098. <:#284,9025>*menuids(53) = "351";
  1099.  
  1100. <:#284,9025>*names(54) = "Modify Layout";
  1101.  
  1102. <:#284,9025>*menuids(54) = "352";
  1103.  
  1104. <:#284,9025>*names(55) = "Floating Header/Footer";
  1105.  
  1106. <:#284,9025>*menuids(55) = "360";
  1107.  
  1108. <:#284,9025>*names(56) = "Tab Ruler";
  1109.  
  1110. <:#284,9025>*menuids(56) = "355";
  1111.  
  1112. <:#284,9025>*names(57) = "Page Numbering";
  1113.  
  1114. <:#284,9025>*menuids(57) = "356";
  1115.  
  1116. <:#284,9025>*names(58) = "Line Numbering";
  1117.  
  1118. <:#284,9025>*menuids(58) = "359";
  1119.  
  1120. <:#284,9025>*names(59) = "Page Break";
  1121.  
  1122. <:#284,9025>*menuids(59) = "357";
  1123.  
  1124. <:#284,9025>*names(60) = "Add a Frame";
  1125.  
  1126. <:#284,9025>*menuids(60) = "409";
  1127.  
  1128. <:#284,9025>*names(61) = "Frame Layout";
  1129.  
  1130. <:#284,9025>*menuids(61) = "402";
  1131.  
  1132. <:#284,9025>*names(62) = "Graphics Scaling";
  1133.  
  1134. <:#284,9025>*menuids(62) = "403";
  1135.  
  1136. <:#284,9025>*names(63) = "Image Processing";
  1137.  
  1138. <:#284,9025>*menuids(63) = "410";
  1139.  
  1140. <:#284,9025>*names(64) = "Go To";
  1141.  
  1142. <:#284,9025>*menuids(64) = "452";
  1143.  
  1144. <:#284,9025>*names(65) = "Find Replace";
  1145.  
  1146. <:#284,9025>*menuids(65) = "451";
  1147.  
  1148. <:#284,9025>*names(66) = "Spelling";
  1149.  
  1150. <:#284,9025>*menuids(66) = "453";
  1151.  
  1152. <:#284,9025>*names(67) = "Thesaurus";
  1153.  
  1154. <:#284,9025>*menuids(67) = "455";
  1155.  
  1156. <:#284,9025>*names(68) = "Glossary";
  1157.  
  1158. <:#284,9025>*menuids(68) = "467";
  1159.  
  1160. <:#284,9025>*names(69) = "Sort";
  1161.  
  1162. <:#284,9025>*menuids(69) = "456";
  1163.  
  1164. <:#284,9025>*names(70) = "Generate Toc, Index";
  1165.  
  1166. <:#284,9025>*menuids(70) = "465";
  1167.  
  1168. <:#284,9025>*names(71) = "Tables";
  1169.  
  1170. <:#284,9025>*menuids(71) = "457";
  1171.  
  1172. <:#284,9025>*names(72) = "Insert Note";
  1173.  
  1174. <:#284,9025>*menuids(72) = "282";
  1175.  
  1176. <:#284,9025>*names(73) = "Insert Merge Field";
  1177.  
  1178. <:#284,9025>*menuids(73) = "182";
  1179.  
  1180. <:#284,9025>*names(74) = "Insert Doc Info";
  1181.  
  1182. <:#284,9025>*menuids(74) = "183";
  1183.  
  1184. <:#284,9025>*names(75) = "Insert Power Field";
  1185.  
  1186. <:#284,9025>*menuids(75) = "568";
  1187.  
  1188. <:#284,9025>*names(76) = "Update Power Field";
  1189.  
  1190. <:#284,9025>*menuids(76) = "571";
  1191.  
  1192. <:#284,9025>*names(77) = "Update All Power Fields";
  1193.  
  1194. <:#284,9025>*menuids(77) = "267";
  1195.  
  1196. <:#284,9025>*names(78) = "Next Power Field";
  1197.  
  1198. <:#284,9025>*menuids(78) = "569";
  1199.  
  1200. <:#284,9025>*names(79) = "Previous Power Field";
  1201.  
  1202. <:#284,9025>*menuids(79) = "570";
  1203.  
  1204. <:#284,9025>*names(80) = "Mark Index";
  1205.  
  1206. <:#284,9025>*menuids(80) = "180";
  1207.  
  1208. <:#284,9025>*names(81) = "Mark Glossary";
  1209.  
  1210. <:#284,9025>*menuids(81) = "199";
  1211.  
  1212. <:#284,9025>*names(82) = "Revision Marking";
  1213.  
  1214. <:#284,9025>*menuids(82) = "187";
  1215.  
  1216. <:#284,9025>*names(83) = "Protect Text";
  1217.  
  1218. <:#284,9025>*menuids(83) = "188";
  1219.  
  1220. <:#284,9025>*names(84) = "No Hyphenation";
  1221.  
  1222. <:#284,9025>*menuids(84) = "189";
  1223.  
  1224. <:#284,9025>*names(85) = "Left Align";
  1225.  
  1226. <:#284,9025>*menuids(85) = "259";
  1227.  
  1228. <:#284,9025>*names(86) = "Right Align";
  1229.  
  1230. <:#284,9025>*menuids(86) = "261";
  1231.  
  1232. <:#284,9025>*names(87) = "Center";
  1233.  
  1234. <:#284,9025>*menuids(87) = "260";
  1235.  
  1236. <:#284,9025>*names(88) = "Justify";
  1237.  
  1238. <:#284,9025>*menuids(88) = "262";
  1239.  
  1240. <:#284,9025>*names(89) = "Upper Case";
  1241.  
  1242. <:#284,9025>*menuids(89) = "273";
  1243.  
  1244. <:#284,9025>*names(90) = "Lower Case";
  1245.  
  1246. <:#284,9025>*menuids(90) = "287";
  1247.  
  1248. <:#284,9025>*names(91) = "Initial Caps";
  1249.  
  1250. <:#284,9025>*menuids(91) = "288";
  1251.  
  1252. <:#284,9025>*names(92) = "Small Caps";
  1253.  
  1254. <:#284,9025>*menuids(92) = "289";
  1255.  
  1256. <:#284,9025>*names(93) = "Insert Page Layout";
  1257.  
  1258. <:#284,9025>*menuids(93) = "375";
  1259.  
  1260. <:#284,9025>*names(94) = "Remove Page Layout";
  1261.  
  1262. <:#284,9025>*menuids(94) = "373";
  1263.  
  1264. <:#284,9025>*names(95) = "Revert Page Layout";
  1265.  
  1266. <:#284,9025>*menuids(95) = "374";
  1267.  
  1268. <:#284,9025>*names(96) = "Insert Tab Ruler";
  1269.  
  1270. <:#284,9025>*menuids(96) = "371";
  1271.  
  1272. <:#284,9025>*names(97) = "Remove Tab Ruler";
  1273.  
  1274. <:#284,9025>*menuids(97) = "372";
  1275.  
  1276. <:#284,9025>*names(98) = "Macro Play";
  1277.  
  1278. <:#284,9025>*menuids(98) = "502";
  1279.  
  1280. <:#284,9025>*names(99) = "Macro Record";
  1281.  
  1282. <:#284,9025>*menuids(99) = "503";
  1283.  
  1284. <:#284,9025>*names(100) = "Macro Edit";
  1285.  
  1286. <:#284,9025>*menuids(100) = "501";
  1287.  
  1288. <:#284,9025>*names(101) = "Quick Record";
  1289.  
  1290. <:#284,9025>*menuids(101) = "505";
  1291.  
  1292. <:#284,9025>*names(102) = "Quick Play";
  1293.  
  1294. <:#284,9025>*menuids(102) = "506";
  1295.  
  1296. <:#284,9025>*names(103) = "Insert Bullet";
  1297.  
  1298. <:#284,9025>*menuids(103) = "836";
  1299.  
  1300. <:#284,9025>*names(104) = "Fast Format";
  1301.  
  1302. <:#284,9025>*menuids(104) = "246";
  1303.  
  1304. <:#284,9025>*names(105) = "Header Footer";
  1305.  
  1306. <:#284,9025>*menuids(105) = "377";
  1307.  
  1308. <:#284,9025>*names(106) = "Control Panel";
  1309.  
  1310. <:#284,9025>*menuids(106) = "601";
  1311.  
  1312. <:#284,9025>*names(107) = "Tab Ruler";
  1313.  
  1314. <:#284,9025>*menuids(107) = "810";
  1315.  
  1316. <:#284,9025>*names(108) = "Assign Macro To File";
  1317.  
  1318. <:#284,9025>*menuids(108) = "436";
  1319.  
  1320. <:#284,9025>*names(109) = "Toggle Clean Screen";
  1321.  
  1322. <:#284,9025>*menuids(109) = "233";
  1323.  
  1324. <:#284,9025>*names(110) = "Clean Screen Option";
  1325.  
  1326. <:#284,9025>*menuids(110) = "234";
  1327.  
  1328. <:#284,9025>*names(111) = "Mark Index Word";
  1329.  
  1330. <:#284,9025>*menuids(111) = "180";
  1331.  
  1332. <:#284,9025>*names(112) = "Mark TOC Entry";
  1333.  
  1334. <:#284,9025>*menuids(112) = "835";
  1335.  
  1336. <:#284,9025>*names(113) = "Set Default Paths";
  1337.  
  1338. <:#284,9025>*menuids(113) = "170";
  1339.  
  1340. <:#284,9025>endit:
  1341.  
  1342. <:#284,9025>hourglass(0)
  1343.  
  1344. <:#284,9025>StatusBarMsg("")
  1345.  
  1346. <:#284,9025>return 113
  1347.  
  1348. END FUNCTION<:p<* >>
  1349.  
  1350. <:#284,9025>'
  1351.  
  1352. <:#284,9025>' GetAmiPro - let them pick an AmiPro function from the passed list
  1353.  
  1354. <:#284,9025>'    Return the index into the passed array or 0 if the user canceled.
  1355.  
  1356. @Function@<:#293,9025><:><:ZGetAmiPro>FUNCTION GetAmiPro<:Z~GetAmiPro><:>(names, cnt)
  1357.  
  1358. <:#284,9025>onerror endit
  1359.  
  1360. <:#284,9025>oncancel endit
  1361.  
  1362. <:#284,9025>StatusBarMsg("One moment please...")
  1363.  
  1364. <:#284,9025>hourglass(1)
  1365.  
  1366. <:#284,9025>FillEdit(8000, &names)
  1367.  
  1368. <:#284,9025>hourglass(0)
  1369.  
  1370. <:#284,9025>endit:
  1371.  
  1372. <:#284,9025>StatusBarMsg("")
  1373.  
  1374. <:#284,9025>i = 0                        ' set default return status
  1375.  
  1376. <:#284,9025>if 1 = DialogBox(".", "funclst")        ' They hit OK?
  1377.  
  1378. <:#284,9025>    selected = GetDialogField$(9000)    ' Yes, get the text
  1379.  
  1380. <:#284,9025>    for i = 1 to cnt            ' Now run through the array
  1381.  
  1382. <:#284,9025>        if selected = *names(i)    ' to find the index
  1383.  
  1384. <:#284,9025>            break
  1385.  
  1386. <:#284,9025>        endif
  1387.  
  1388. <:#284,9025>    next
  1389.  
  1390. <:#284,9025>endif
  1391.  
  1392. <:#284,9025>return i
  1393.  
  1394. <:#284,9025>END FUNCTION
  1395.  
  1396. <:p<* >>
  1397.  
  1398. <:#284,9025>'
  1399.  
  1400. <:#568,9025>' AddToAutoExec - Add lines to the autoexec.smm file that will add a new menu item
  1401.  
  1402. <:#284,9025>'
  1403.  
  1404. @Function@<:#586,9025><:ZAddToAutoExec>FUNCTION AddToAutoexec<:Z~AddToAutoExec>(menuname, itemname, menuid, macroname, helptext, pos, accel)
  1405.  
  1406. <:#284,9025>declare OpenAutoExec()
  1407.  
  1408. <:#284,9025><:><:>OpenAutoExec()                ' open autoexec.smm and position 
  1409.  
  1410. <:#284,9025>
  1411.  
  1412. <:#284,9025>if (accel != 0)                    ' This one have an accelerator?
  1413.  
  1414. <:#284,9025>    type("accel = {accel}<[>enter]")
  1415.  
  1416. <:#284,9025>    type("menuid = {menuid}<[>enter]")
  1417.  
  1418. <:#284,9025>    type("macroname = ""{macroname}""<[>enter]")
  1419.  
  1420. <:#284,9025>    type("OnKey(accel, menuid, macroname)")
  1421.  
  1422. <:#284,9025>endif
  1423.  
  1424. <:#284,9025>if (0 != menuname)
  1425.  
  1426. <:#284,9025>    type("menuname = ""{menuname}""<[>enter]")    ' make variable assignments 
  1427.  
  1428. <:#568,9025>    type("itemname = ""{itemname}""<[>enter]")    ' so the AddmenuItem line wont be to long.
  1429.  
  1430. <:#284,9025>    if (0 != menuid)                ' We adding an AmiPro Function?
  1431.  
  1432. <:#284,9025>        type("menuid = {menuid}<[>enter]")    ' Yes
  1433.  
  1434. <:#284,9025>        if (0 = pos)
  1435.  
  1436. <:#284,9025>            type("AddmenuItem(1, {{menuname}, {{itemname}, {{menuid})")
  1437.  
  1438. <:#284,9025>        else
  1439.  
  1440. <:#284,9025>            pos = pos - 1;
  1441.  
  1442. <:#284,9025>            type("pos = {pos}<[>enter]")
  1443.  
  1444. <:#568,9025>            type("InsertMenuItem(1, {{menuname}, {{pos}, {{itemname}, {{menuid})")
  1445.  
  1446. <:#284,9025>        endif
  1447.  
  1448. <:#284,9025>    else
  1449.  
  1450. <:#284,9025>        type("macroname = ""{macroname}""<[>enter]")        ' its a macro.
  1451.  
  1452. <:#284,9025>        type("helptext = ""{helptext}""<[>enter]")
  1453.  
  1454. <:#284,9025>        if (0 = pos)
  1455.  
  1456. <:#568,9025>            type("AddmenuItem(1, {{menuname}, {{itemname}, {{macroname}, {{helptext})")
  1457.  
  1458. <:#284,9025>        else
  1459.  
  1460. <:#284,9025>            pos = pos - 1;
  1461.  
  1462. <:#284,9025>            type("pos = {pos}<[>enter]");
  1463.  
  1464. <:#284,9025>            type("InsertMenuItem(1, {{menuname}, {{pos},");
  1465.  
  1466. <:#284,9025>            type(" {{itemname}, {{macroname}, {{helptext})");
  1467.  
  1468. <:#284,9025>        endif
  1469.  
  1470. <:#284,9025>    endif
  1471.  
  1472. <:#284,9025>endif
  1473.  
  1474. <:#284,9025>Save()                    ' and save it
  1475.  
  1476. <:#284,9025>FileClose()                ' and close it
  1477.  
  1478. <:#284,9025>END FUNCTION
  1479.  
  1480. <:#284,9025>
  1481.  
  1482. <:#284,9025>' DelFromAutoExec - Add lines in the autoexec to delete a menu item.
  1483.  
  1484. <:#284,9025>
  1485.  
  1486. @Function@<:#293,9025><:ZDelFromAutoExec>FUNCTION DelFromAutoexec(<:Z~DelFromAutoExec>menuname, itemname)
  1487.  
  1488. <:#284,9025>declare OpenAutoExec()
  1489.  
  1490. <:#284,9025>OpenAutoExec()                ' open autoexec.smm and position 
  1491.  
  1492. <:#284,9025>type("menuname = ""{menuname}""<[>enter]")    ' make variable assignments 
  1493.  
  1494. <:#568,9025>type("itemname = ""{itemname}""<[>enter]")    ' so the AddmenuItem statement wont be to long.
  1495.  
  1496. <:#284,9025>type("DeleteMenuItem(1, {{menuname}, {{itemname})")
  1497.  
  1498. <:#284,9025>Save()                    ' and save it
  1499.  
  1500. <:#284,9025>FileClose()                ' and close it
  1501.  
  1502. <:#284,9025>END FUNCTION
  1503.  
  1504. '<:p<* >>
  1505.  
  1506. <:#568,9025>' OpenAutoExec - Open-Create the autoexec.smm then position the insertion point just before
  1507.  
  1508. <:#284,9025>'    the first END FUNCTION
  1509.  
  1510. <:#284,9025>'
  1511.  
  1512. @Function@<:#293,9025><:ZOpenAutoExec>FUNCTION OpenAutoExec(<:Z~OpenAutoExec>)
  1513.  
  1514. <:#284,9025>defstr fid;
  1515.  
  1516. <:#284,9025><:ZMACUTEMP><:Z~MACUTEMP>auto = FindAutoExec();            ' Determine where the autoexec is
  1517.  
  1518. <:#284,9025>if (0 = Assign(&fid, fopen(auto, "r")))    ' Does it exist?
  1519.  
  1520. <:#284,9025>    sty = GetProfileString$("AmiPro", "defstyle", "amipro.ini")
  1521.  
  1522. <:#284,9025>    if sty = ""
  1523.  
  1524. <:#284,9025>        sty = "_default.sty"
  1525.  
  1526. <:#284,9025>    endif
  1527.  
  1528. <:#284,9025>    new(sty, 0, 0)            ' No let ami create it.
  1529.  
  1530. <:#284,9025>    type("FUNCTION auto()<[>enter]")    ' And fill in an empty 
  1531.  
  1532. <:#284,9025>    type("END FUNCTION<[>enter]")    ' Function - End Function Pait
  1533.  
  1534. <:#284,9025>    type("<[>ctrlhome]")            ' Position at top of file
  1535.  
  1536. <:#284,9025>    saveas(auto, 32,"", "")            ' Create it.
  1537.  
  1538. <:#284,9025>else
  1539.  
  1540. <:#284,9025>    fclose(fid)                ' it existed. so close this
  1541.  
  1542. <:#284,9025>    FileOpen(auto, 1, "")            ' let ami open
  1543.  
  1544. <:#284,9025>endif
  1545.  
  1546. <:#284,9025>Replace(0, 0, 24576, "End function", "")    ' position at first end function
  1547.  
  1548. <:#284,9025>type("<[>home]")                    ' before the End
  1549.  
  1550. <:#284,9025>type("<[>enter]")                    ' create a line
  1551.  
  1552. <:#284,9025>type("<[>up]")                    ' position on that line
  1553.  
  1554. <:#284,9025>END FUNCTION                ' that all folks
  1555.  
  1556. <:#284,9025>'
  1557.  
  1558. <:#568,9025>' FindAutoExec - determine where the autoexec.smm file is.  If we can find it in the macro
  1559.  
  1560. <:#284,9025>'    directory or the docs directory, return the amipro directory.
  1561.  
  1562. <:#284,9025>'
  1563.  
  1564. @Function@<:#293,9025><:ZFindAutoExec>FUNCTION FindAutoExec()<:Z~FindAutoExec>
  1565.  
  1566. <:#284,9025>defstr    fid;
  1567.  
  1568. <:#284,9025>auto = strcat$(GetMacPath$(), "autoexec.smm")    ' check macro dir first
  1569.  
  1570. <:#284,9025>if (0 = Assign(&fid, fopen(auto, "r")))    ' Does it exist?
  1571.  
  1572. <:#284,9025>    auto = strcat$(GetDocPath$(), "autoexec.smm")    ' Now the docs dir
  1573.  
  1574. <:#284,9025>    if (0 = Assign(&fid, fopen(auto, "r")))    ' Does it exist?
  1575.  
  1576. <:#284,9025>        auto = strcat$(GetAmiDirectory$(), "autoexec.smm")    ' lastly amipro dir
  1577.  
  1578. <:#284,9025>    else
  1579.  
  1580. <:#284,9025>        fclose(fid)
  1581.  
  1582. <:#284,9025>    endif
  1583.  
  1584. <:#284,9025>else
  1585.  
  1586. <:#284,9025>    fclose(fid)
  1587.  
  1588. <:#284,9025>endif
  1589.  
  1590. <:#284,9025>return auto
  1591.  
  1592. END FUNCTION<:p<* >>
  1593.  
  1594. <:#284,9025>' LocateHmenu Given a menuname (File, Edit etc) return the handle to that menu.
  1595.  
  1596. <:#284,9025>
  1597.  
  1598. @Function@<:#293,9025><:ZLocateHmenu>FUNCTION LocateHmenu(menu)<:Z~LocateHmenu>
  1599.  
  1600. <:#284,9025>hWnd = GetActiveWindow()                ' Who is active
  1601.  
  1602. <:#284,9025>hPrevWnd = hWnd;
  1603.  
  1604. <:#568,9025>while 0 != Assign(&hWnd, GetParent(hWnd))    ' Go til we find a window with no parent
  1605.  
  1606. <:#284,9025>    hPrevWnd = hWnd;
  1607.  
  1608. <:#284,9025>wend
  1609.  
  1610. <:#284,9025>hWnd = hPrevWnd;
  1611.  
  1612. <:#568,9025>hMenu = GetMenu(hWnd)                ' Get the hMenu for the menu bar
  1613.  
  1614. <:#284,9025><:><:><:><:><:><:>return FindMenu(hMenu, Menu)            ' Find the menu
  1615.  
  1616. <:#284,9025>END FUNCTION
  1617.  
  1618. <:#284,9025>
  1619.  
  1620. <:#568,9025>' DelMenu - pass us a menu name (File, Edit etc) and we will display a list box with all items
  1621.  
  1622. <:#284,9025>'    From that menu and let the user delete one.
  1623.  
  1624. @Function@<:#293,9025>FUNCTION <:ZDelMenu>DelMenu<:Z~DelMenu>(Menu)
  1625.  
  1626. <:#284,9025>hWnd = GetActiveWindow()
  1627.  
  1628. <:#284,9025>hPrevWnd = hWnd;
  1629.  
  1630. <:#284,9025>while 0 != Assign(&hWnd, GetParent(hWnd))
  1631.  
  1632. <:#284,9025>    hPrevWnd = hWnd;
  1633.  
  1634. <:#284,9025>wend
  1635.  
  1636. <:#284,9025>hWnd = hPrevWnd;
  1637.  
  1638. <:#284,9025>hMenu = GetMenu(hWnd)
  1639.  
  1640. <:#284,9025><:><:><:><:><:><:>if (0 != Assign(&hMenu, FindMenu(hMenu, Menu)))    ' If we can find that menu
  1641.  
  1642. <:#284,9025><:><:><:><:>    LoadTheBox(hMenu, 9000);                ' Load the list box
  1643.  
  1644. <:#284,9025>    if (1 = DialogBox(".", "DelMenu"))            ' Let em pick one
  1645.  
  1646. <:#284,9025>        item = GetDialogField$(9000)
  1647.  
  1648. <:#284,9025>        DeleteMenuItem(1, menu, item)        ' Delete it
  1649.  
  1650. <:#284,9025>        if (Decide("Make this permanent?"))
  1651.  
  1652. <:#284,9025>            DelFromAutoExec(menu, item)
  1653.  
  1654. <:#284,9025>        endif
  1655.  
  1656. <:#284,9025>    endif
  1657.  
  1658. <:#284,9025>endif
  1659.  
  1660. END FUNCTION<:p<* >>
  1661.  
  1662. <:#568,9025>' LoadTheBox - given a hMenu and id load it with all menu items, includeing seiarators.
  1663.  
  1664. <:#284,9025>'
  1665.  
  1666. @Function@<:#293,9025>FUNCTION <:ZLoadTheBox>LoadTheBox<:Z~LoadTheBox>(hMenu, id)
  1667.  
  1668. <:#284,9025>defstr    menuname;
  1669.  
  1670. <:#284,9025>menucnt = GetMenuItemCount(hMenu)        'Find out how many
  1671.  
  1672. <:#284,9025>for i = 0 to menucnt - 1
  1673.  
  1674. <:#284,9025>    GetMenuString(hMenu, i, &menuname, 80, MF_BYPOSITION)    ' Get one
  1675.  
  1676. <:#284,9025>    if (0 << tlen(menuname))
  1677.  
  1678. <:#284,9025>        FillEdit(id, menuname)
  1679.  
  1680. <:#284,9025>    else
  1681.  
  1682. <:#284,9025>        FillEdit(id, "------------------------------------")
  1683.  
  1684. <:#284,9025>    endif
  1685.  
  1686. <:#284,9025>next
  1687.  
  1688. <:#284,9025>
  1689.  
  1690. <:#284,9025>END FUNCTION
  1691.  
  1692. <:#284,9025>'
  1693.  
  1694. <:#284,9025>' FindMenu - Given a hMenu and name, return a handle that that menu.
  1695.  
  1696. @Function@<:#293,9025>FUNCTION <:ZFindMenu>FindMenu<:Z~FindMenu>(hMenu, Name)
  1697.  
  1698. <:#284,9025>defstr    menuname;
  1699.  
  1700. <:#284,9025>menucnt = GetMenuItemCount(hMenu)        ' How many
  1701.  
  1702. <:#284,9025>for i = 0 to menucnt - 1
  1703.  
  1704. <:#284,9025>    GetMenuString(hMenu, i, &menuname, 80, MF_BYPOSITION)
  1705.  
  1706. <:#284,9025>    if (Name = menuname)            ' Match?
  1707.  
  1708. <:#284,9025>        hMenu = GetSubMenu(hMenu, i);    ' Yes, get its handle.
  1709.  
  1710. <:#284,9025>        return hMenu;
  1711.  
  1712. <:#284,9025>    endif
  1713.  
  1714. <:#284,9025>next
  1715.  
  1716. <:#284,9025>return 0
  1717.  
  1718. <:#284,9025>END FUNCTION
  1719.  
  1720. <:#284,9025>
  1721.  
  1722. <:p<* >>
  1723.  
  1724. <:#284,9025>
  1725.  
  1726. @Function@<:#293,9025>DIALOG    DelMenu
  1727.  
  1728. <:#568,9025>-2134376448    5    98    46    176    86    ""    ""    "Delete Menu Item"
  1729.  
  1730. <:#284,9025>FONT    8    "Helv"
  1731.  
  1732. <:#284,9025>130    4    40    14    1    1342242817    "button"    "OK"    0 
  1733.  
  1734. <:#284,9025>130    20    40    14    2    1342242816    "button"    "Cancel"    0 
  1735.  
  1736. <:#284,9025>5    40    120    42    9000    1352728577    "listbox"    ""    0 
  1737.  
  1738. <:#284,9025>6    30    56    8    1000    1342177280    "static"    "&Menu items:"    0 
  1739.  
  1740. <:#568,9025>5    7    99    17    1001    1342177280    "static"    "Select a menu item to delete."    0 
  1741.  
  1742. <:#284,9025>END DIALOG
  1743.  
  1744. <:#284,9025>
  1745.  
  1746. @Function@<:#293,9025>DIALOG    PickMenu
  1747.  
  1748. <:#568,9025>-2134376448    6    89    47    200    78    ""    ""    "Customize Ami Pro"
  1749.  
  1750. <:#284,9025>FONT    8    "Helv"
  1751.  
  1752. <:#284,9025>5    20    56    54    9000    1352728577    "listbox"    ""    0 
  1753.  
  1754. <:#284,9025>149    4    44    14    2    1342242816    "button"    "Done"    0 
  1755.  
  1756. <:#568,9025>67    20    126    14    5    1342242816    "button"    "&Add an Ami Pro Function or Macro..."    0 
  1757.  
  1758. <:#568,9025>67    36    126    14    6    1342242816    "button"    "&Delete a menu item..."    0 
  1759.  
  1760. <:#284,9025>6    9    56    8    1000    1342177280    "static"    "&Menus:"    0 
  1761.  
  1762. <:#568,9025>67    53    126    14    7    1342242816    "button"    "Assign Key Commands..."    0 
  1763.  
  1764. <:#284,9025>END DIALOG
  1765.  
  1766. <:#284,9025>
  1767.  
  1768. @Function@<:#293,9025><:>DIALOG    AddItem
  1769.  
  1770. <:#284,9025>-2134376448    20    35    26    260    104    ""    ""    "Add Menu Item"
  1771.  
  1772. <:#284,9025>FONT    8    "Helv"
  1773.  
  1774. <:#284,9025>5    16    82    8    1000    1342177282    "static"    "Name for Menu:"    0 
  1775.  
  1776. <:#284,9025>89    14    84    12    8000    1350631552    "edit"    ""    0 
  1777.  
  1778. <:#284,9025>5    30    82    8    1006    1342177282    "static"    "&Insert before:"    0 
  1779.  
  1780. <:#568,9025>99    78    141    8    1001    1342177280    "static"    "Optional help text for macro functions only:"    0 
  1781.  
  1782. <:#568,9025>183    41    71    14    3    1342242816    "button"    "Ami Pro &Function..."    0 
  1783.  
  1784. <:#284,9025>183    57    71    14    4    1342242816    "button"    "&Macro..."    0 
  1785.  
  1786. <:#284,9025>99    88    138    12    8001    1350631552    "edit"    ""    0 
  1787.  
  1788. <:#284,9025>9    78    18    12    8003    1350631552    "edit"    ""    0 
  1789.  
  1790. <:#284,9025>5    56    86    44    20    1342177287    "button"    "&Shortcut key"    0 
  1791.  
  1792. <:#284,9025>49    67    38    10    21    1342242819    "button"    "&Control"    0 
  1793.  
  1794. <:#284,9025>49    77    38    10    22    1342242819    "button"    "&Shift"    0 
  1795.  
  1796. <:#284,9025>49    87    38    10    23    1342242819    "button"    "Al&t"    0 
  1797.  
  1798. <:#284,9025>5    4    82    8    1002    1342177282    "static"    "Add to me&nu:"    0 
  1799.  
  1800. <:#284,9025>214    6    40    14    1    1342242817    "button"    "OK"    0 
  1801.  
  1802. <:#284,9025>214    22    40    14    2    1342242816    "button"    "Cancel"    0 
  1803.  
  1804. <:#284,9025>108    4    84    8    1003    1342177280    "static"    ""    0 
  1805.  
  1806. <:#568,9025>5    42    82    8    1004    1342177282    "static"    "Fun&ction/macro to add:"    0 
  1807.  
  1808. <:#284,9025>89    42    84    8    1005    1342177280    "static"    ""    0 
  1809.  
  1810. <:#284,9025>9    67    38    10    1007    1342177280    "static"    "&Keystroke:"    0 
  1811.  
  1812. <:#284,9025>89    28    84    58    9500    1344274435    "combobox"    ""    0 
  1813.  
  1814. <:#284,9025>END DIALOG
  1815.  
  1816. <:#284,9025>
  1817.  
  1818. <:#284,9025>
  1819.  
  1820. @Function@<:#293,9025>DIALOG    AddAccel
  1821.  
  1822. <:#568,9025>-2134376448    12    93    28    208    72    ""    ""    "Add Keyboard Shortcut"
  1823.  
  1824. <:#284,9025>FONT    8    "Helv"
  1825.  
  1826. <:#568,9025>128    36    74    14    3    1342242816    "button"    "Ami Pro &Function..."    0 
  1827.  
  1828. <:#284,9025>128    52    74    14    4    1342242816    "button"    "&Macro..."    0 
  1829.  
  1830. <:#284,9025>10    34    18    12    8003    1350631552    "edit"    ""    0 
  1831.  
  1832. <:#284,9025>6    14    90    44    20    1342177287    "button"    "Shortcut key"    0 
  1833.  
  1834. <:#284,9025>50    26    36    10    21    1342242819    "button"    "&Control"    0 
  1835.  
  1836. <:#284,9025>50    36    38    10    22    1342242819    "button"    "&Shift"    0 
  1837.  
  1838. <:#284,9025>50    46    38    10    23    1342242819    "button"    "&Alt"    0 
  1839.  
  1840. <:#284,9025>162    4    40    14    1    1342242817    "button"    "OK"    0 
  1841.  
  1842. <:#284,9025>162    20    40    14    2    1342242816    "button"    "Cancel"    0 
  1843.  
  1844. <:#284,9025>6    4    64    10    1004    1342177280    "static"    "Function/macro:"    0 
  1845.  
  1846. <:#284,9025>74    4    80    10    1005    1342177280    "static"    "text"    0 
  1847.  
  1848. <:#284,9025>10    26    38    8    1007    1342177280    "static"    "Keystroke:"    0 
  1849.  
  1850. <:#284,9025>END DIALOG
  1851.  
  1852. <:#284,9025>
  1853.  
  1854. <:#284,9025>
  1855.  
  1856. @Function@<:#293,9025>DIALOG MacroLst
  1857.  
  1858. <:#284,9025>-2134376448 6 108 30 154 90 "" "" "Add Macro "
  1859.  
  1860. <:#284,9025>FONT 8 "Helv"
  1861.  
  1862. <:#284,9025>8 16 60 12 8001 1350631552 "edit" "" 0 
  1863.  
  1864. <:#284,9025>8 32 60 54 9001 1352728579 "listbox" "" 0 
  1865.  
  1866. <:#284,9025>72 38 74 8 7999 1342177280 "static" "" 0 
  1867.  
  1868. <:#284,9025>106 4 40 14 1 1342242817 "button" "OK" 0 
  1869.  
  1870. <:#284,9025>106 20 40 14 2 1342242816 "button" "Cancel" 0 
  1871.  
  1872. <:#284,9025>8 6 68 8 1001 1342177280 "static" "&Macro to execute:" 0 
  1873.  
  1874. <:#284,9025>END DIALOG
  1875.  
  1876. <:#284,9025>
  1877.  
  1878. <:#284,9025>
  1879.  
  1880. @Function@<:#293,9025>DIALOG FuncLst
  1881.  
  1882. <:#284,9025>-2134376448 4 112 28 158 68 "" "" "Add Function"
  1883.  
  1884. <:#284,9025>FONT 8 "Helv"
  1885.  
  1886. <:#284,9025>6 16 100 46 9000 1352728579 "listbox" "" 0 
  1887.  
  1888. <:#284,9025>6 6 66 8 1000 1342177280 "static" "&Ami Pro functions:" 0 
  1889.  
  1890. <:#284,9025>112 6 40 14 1 1342242817 "button" "OK" 0 
  1891.  
  1892. <:#284,9025>112 22 40 14 2 1342242816 "button" "Cancel" 0 
  1893.  
  1894. @Function@<:#293,9025>END DIALOG
  1895.  
  1896. >
  1897.  
  1898. [Embedded]
  1899. 00045154
  1900. >
  1901. [macsum] 26
  1902. CustMenu 0 0 8 41
  1903. AddItem 690 6 14 86
  1904. ComboCallBack 2736 3 3 189
  1905. InitCombo 2846 1 5 198
  1906. AddAccelerator 3327 3 10 218
  1907. DetermineAccel 4414 0 4 271
  1908. ShowAccel 5067 1 2 313
  1909. AddAccelStuff 5458 2 4 332
  1910. LoadMenus 5962 1 6 357
  1911. GetMacro 6394 0 2 374
  1912. LoadAmiFuns 6684 2 1 398
  1913. GetAmiPro 12560 2 3 636
  1914. AddToAutoexec 12920 7 1 660
  1915. DelFromAutoexec 13811 2 1 701
  1916. OpenAutoExec 13989 0 4 714
  1917. FindAutoExec 14437 0 3 740
  1918. LocateHmenu 14791 1 4 757
  1919. DelMenu 15058 1 5 770
  1920. LoadTheBox 15548 2 4 791
  1921. FindMenu 15913 2 4 806
  1922. DelMenu 16256 0 -1 821
  1923. PickMenu 16603 0 -1 831
  1924. AddItem 17034 0 -1 842
  1925. AddAccel 18153 0 -1 868
  1926. MacroLst 18846 0 -1 886
  1927. FuncLst 19206 0 -1 898
  1928. [macse]
  1929. 14 CustMenu
  1930. 0 1317
  1931. 13
  1932. 11 00000109
  1933. 0 3 "Macro not available while running under HP NewWave."
  1934. 6 0
  1935. 15
  1936. 9
  1937. 5 20
  1938. 21 1 [X]
  1939. 5 200
  1940. 21 2 [X]
  1941. 5 200
  1942. 21 3 [X]
  1943. 16 LoadMenus &1
  1944. 13
  1945. 8 4
  1946. 16 LoadAmiFuns &2 &3
  1947. 13
  1948. 8 5
  1949. 0 789 ""
  1950. 0 31 8000 &1
  1951. 5 1
  1952. 0 26 "." "PickMenu"
  1953. 13
  1954. 0 805 &6 [X]
  1955. 13
  1956. 18 5
  1957. 11 00000678
  1958. 0 27 9000
  1959. 13
  1960. 8 7
  1961. 7 ""
  1962. 6 7
  1963. 18 1
  1964. 11 00000651
  1965. 5 5
  1966. 6 6
  1967. 18 0
  1968. 11 00000469
  1969. 0 296 1
  1970. 16 AddItem "{7}" "{5}" &2 &3 "{4}" &1
  1971. 0 296 0
  1972. 10 00000651
  1973. 10 00000651
  1974. 5 6
  1975. 6 6
  1976. 18 0
  1977. 11 00000560
  1978. 0 296 1
  1979. 16 DelMenu "{7}"
  1980. 0 296 0
  1981. 10 00000651
  1982. 10 00000651
  1983. 5 7
  1984. 6 6
  1985. 18 0
  1986. 11 00000651
  1987. 0 296 1
  1988. 16 AddAccelerator "{5}" &2 &3
  1989. 0 296 0
  1990. 10 00000651
  1991. 0 31 8000 &1
  1992. 10 00000240
  1993. 6 0
  1994. 15
  1995. 9
  1996. 14 AddItem
  1997. 5 0
  1998. 8 7
  1999. 7 ""
  2000. 8 8
  2001. 7 ""
  2002. 8 9
  2003. 7 ""
  2004. 8 10
  2005. 7 ""
  2006. 8 11
  2007. 7 ""
  2008. 8 12
  2009. 5 0
  2010. 8 13
  2011. 5 0
  2012. 8 14
  2013. 5 0
  2014. 8 15
  2015. 5 0
  2016. 8 16
  2017. 0 271 "Cust1" 1
  2018. 0 271 "Cust2" 1
  2019. 0 264 "Cust1" 0
  2020. 16 LocateHmenu "{0}"
  2021. 13
  2022. 0 264 "Cust2" [X]
  2023. 5 2
  2024. 8 17
  2025. 6 17
  2026. 5 0
  2027. 18 1
  2028. 6 17
  2029. 5 1
  2030. 18 1
  2031. 1 1
  2032. 11 00000957
  2033. 0 31 1003 "{0}"
  2034. 0 31 1005 "{10}"
  2035. 0 31 8000 "{9}"
  2036. 0 31 8001 "{11}"
  2037. 0 31 8002 "{14}"
  2038. 16 ShowAccel "{15}"
  2039. 0 802
  2040. 13
  2041. 0 16 [X] "!InitCombo"
  2042. 13
  2043. 0 41 0 [X]
  2044. 0 802
  2045. 13
  2046. 0 16 [X] "!ComboCallback"
  2047. 13
  2048. 0 41 9500 [X]
  2049. 5 0
  2050. 0 26 "." "additem"
  2051. 13
  2052. 0 805 &17 [X]
  2053. 13
  2054. 18 1
  2055. 11 00000661
  2056. 0 27 8000
  2057. 13
  2058. 8 9
  2059. 0 27 8001
  2060. 13
  2061. 8 11
  2062. 0 265 "Cust1"
  2063. 13
  2064. 8 14
  2065. 16 DetermineAccel
  2066. 13
  2067. 8 15
  2068. 5 4
  2069. 6 17
  2070. 18 0
  2071. 11 00000797
  2072. 7 ""
  2073. 16 GetMacro
  2074. 13
  2075. 0 805 &12 [X]
  2076. 13
  2077. 18 1
  2078. 11 00000784
  2079. 6 12
  2080. 8 8
  2081. 6 8
  2082. 8 10
  2083. 5 0
  2084. 8 7
  2085. 10 00000944
  2086. 5 3
  2087. 6 17
  2088. 18 0
  2089. 11 00000944
  2090. 5 0
  2091. 16 GetAmiPro &2 "{1}"
  2092. 13
  2093. 0 805 &13 [X]
  2094. 13
  2095. 18 1
  2096. 11 00000944
  2097. 7 ""
  2098. 8 18
  2099. 6 13
  2100. 22 3
  2101. 8 7
  2102. 6 13
  2103. 22 2
  2104. 8 10
  2105. 10 00000231
  2106. 0 266 "Cust1"
  2107. 0 266 "Cust2"
  2108. 6 17
  2109. 6 0
  2110. 7 ""
  2111. 18 1
  2112. 6 7
  2113. 5 0
  2114. 18 1
  2115. 6 8
  2116. 7 ""
  2117. 18 1
  2118. 1 2
  2119. 1 1
  2120. 1 1
  2121. 11 00001961
  2122. 6 15
  2123. 11 00001130
  2124. 16 AddAccelStuff "{9}" "{15}"
  2125. 13
  2126. 8 9
  2127. 6 7
  2128. 5 0
  2129. 18 1
  2130. 11 00001494
  2131. 5 0
  2132. 6 14
  2133. 18 0
  2134. 11 00001229
  2135. 0 516 1 "{0}" "{9}" "{7}"
  2136. 10 00001276
  2137. 6 14
  2138. 5 1
  2139. 3 1
  2140. 0 527 1 "{0}" [X] "{9}" "{7}"
  2141. 6 15
  2142. 11 00001481
  2143. 0 1050
  2144. 13
  2145. 5 1
  2146. 18 5
  2147. 11 00001456
  2148. 0 286 "AmiPro" "defstyle" "amipro.ini"
  2149. 13
  2150. 8 19
  2151. 6 19
  2152. 7 ""
  2153. 18 0
  2154. 11 00001436
  2155. 7 "_default.sty"
  2156. 8 19
  2157. 2 101 1 "{19}" 0 0
  2158. 2 422 1 "{15}" "{7}" ""
  2159. 10 00001829
  2160. 5 0
  2161. 6 14
  2162. 18 0
  2163. 11 00001571
  2164. 0 516 1 "{0}" "{9}" "{8}" "{11}"
  2165. 10 00001625
  2166. 6 14
  2167. 5 1
  2168. 3 1
  2169. 0 527 1 "{0}" [X] "{9}" "{8}" "{11}"
  2170. 6 15
  2171. 11 00001829
  2172. 0 1050
  2173. 13
  2174. 5 1
  2175. 18 5
  2176. 11 00001805
  2177. 0 286 "AmiPro" "defstyle" "amipro.ini"
  2178. 13
  2179. 8 19
  2180. 6 19
  2181. 7 ""
  2182. 18 0
  2183. 11 00001785
  2184. 7 "_default.sty"
  2185. 8 19
  2186. 2 101 1 "{19}" 0 0
  2187. 2 422 1 "{15}" 0 "{8}"
  2188. 0 2 "Keep settings for next session?"
  2189. 13
  2190. 11 00001948
  2191. 16 AddToAutoexec "{0}" "{9}" "{7}" "{8}" "{11}" "{14}" "{15}"
  2192. 10 00002034
  2193. 5 1
  2194. 6 17
  2195. 18 0
  2196. 11 00002034
  2197. 0 3 "Not all necessary information found"
  2198. 6 6
  2199. 15
  2200. 9
  2201. 14 ComboCallBack
  2202. 0 44 "{0}" "{1}"
  2203. 13
  2204. 8 4
  2205. 0 1036 "{4}" 1031 0 0
  2206. 13
  2207. 8 5
  2208. 0 264 "Cust1" "{5}"
  2209. 6 3
  2210. 15
  2211. 9
  2212. 14 InitCombo
  2213. 0 265 "Cust2"
  2214. 13
  2215. 8 3
  2216. 0 43 "{0}" 9500 ""
  2217. 0 284 "user,GetMenuItemCount,HH" "{3}"
  2218. 13
  2219. 8 4
  2220. 5 0
  2221. 8 5
  2222. 6 4
  2223. 5 1
  2224. 3 1
  2225. 6 5
  2226. 18 2
  2227. 12 00000202
  2228. 10 00000406
  2229. 5 1
  2230. 6 5
  2231. 3 0
  2232. 8 5
  2233. 10 00000117
  2234. 0 284 "user,GetMenuString,HHHFHH" "{3}" "{5}" &2 80 1024
  2235. 5 0
  2236. 0 134 "{2}"
  2237. 13
  2238. 18 5
  2239. 11 00000337
  2240. 0 43 "{0}" 9500 "{2}"
  2241. 10 00000393
  2242. 0 43 "{0}" 9500 "------------------------------------"
  2243. 10 00000169
  2244. 0 44 "{0}" 9500
  2245. 13
  2246. 0 265 "Cust1"
  2247. 13
  2248. 0 1036 [X] 1038 [X] 0
  2249. 6 1
  2250. 15
  2251. 9
  2252. 14 AddAccelerator
  2253. 5 0
  2254. 8 4
  2255. 7 ""
  2256. 8 5
  2257. 7 ""
  2258. 8 6
  2259. 5 0
  2260. 8 7
  2261. 5 0
  2262. 8 8
  2263. 7 ""
  2264. 8 9
  2265. 5 2
  2266. 8 10
  2267. 6 10
  2268. 5 0
  2269. 18 1
  2270. 6 10
  2271. 5 1
  2272. 18 1
  2273. 1 1
  2274. 11 00000567
  2275. 0 31 1005 "{6}"
  2276. 16 ShowAccel "{8}"
  2277. 5 0
  2278. 0 26 "." "addaccel"
  2279. 13
  2280. 0 805 &10 [X]
  2281. 13
  2282. 18 1
  2283. 11 00000278
  2284. 16 DetermineAccel
  2285. 13
  2286. 8 8
  2287. 5 4
  2288. 6 10
  2289. 18 0
  2290. 11 00000411
  2291. 7 ""
  2292. 16 GetMacro
  2293. 13
  2294. 0 805 &9 [X]
  2295. 13
  2296. 18 1
  2297. 11 00000398
  2298. 6 9
  2299. 8 5
  2300. 6 5
  2301. 8 6
  2302. 5 0
  2303. 8 4
  2304. 10 00000554
  2305. 5 3
  2306. 6 10
  2307. 18 0
  2308. 11 00000554
  2309. 5 0
  2310. 16 GetAmiPro &1 "{0}"
  2311. 13
  2312. 0 805 &7 [X]
  2313. 13
  2314. 18 1
  2315. 11 00000554
  2316. 7 ""
  2317. 8 11
  2318. 6 7
  2319. 22 2
  2320. 8 4
  2321. 6 7
  2322. 22 1
  2323. 8 6
  2324. 10 00000093
  2325. 6 10
  2326. 6 8
  2327. 5 0
  2328. 18 1
  2329. 6 4
  2330. 5 0
  2331. 18 1
  2332. 6 5
  2333. 7 ""
  2334. 18 1
  2335. 1 2
  2336. 1 1
  2337. 1 1
  2338. 11 00001002
  2339. 0 1050
  2340. 13
  2341. 5 1
  2342. 18 5
  2343. 11 00000811
  2344. 0 286 "AmiPro" "defstyle" "amipro.ini"
  2345. 13
  2346. 8 12
  2347. 6 12
  2348. 7 ""
  2349. 18 0
  2350. 11 00000791
  2351. 7 "_default.sty"
  2352. 8 12
  2353. 2 101 1 "{12}" 0 0
  2354. 6 4
  2355. 5 0
  2356. 18 1
  2357. 11 00000877
  2358. 2 422 1 "{8}" "{4}" ""
  2359. 10 00000900
  2360. 2 422 1 "{8}" 0 "{5}"
  2361. 0 2 "Make this permanent?"
  2362. 13
  2363. 11 00000989
  2364. 16 AddToAutoexec 0 0 "{4}" "{5}" 0 0 "{8}"
  2365. 10 00001075
  2366. 5 1
  2367. 6 10
  2368. 18 0
  2369. 11 00001075
  2370. 0 3 "Not all necessary information found"
  2371. 6 3
  2372. 15
  2373. 9
  2374. 14 DetermineAccel
  2375. 5 0
  2376. 8 2
  2377. 0 27 8003
  2378. 13
  2379. 8 3
  2380. 7 ""
  2381. 6 3
  2382. 18 1
  2383. 11 00000629
  2384. 5 1
  2385. 0 134 "{3}"
  2386. 13
  2387. 18 0
  2388. 11 00000187
  2389. 0 133 "{3}" 1 1
  2390. 13
  2391. 0 18 [X]
  2392. 13
  2393. 0 40 [X]
  2394. 13
  2395. 8 2
  2396. 10 00000478
  2397. 7 "F"
  2398. 0 133 "{3}" 1 1
  2399. 13
  2400. 0 18 [X]
  2401. 13
  2402. 18 0
  2403. 0 134 "{3}"
  2404. 13
  2405. 5 1
  2406. 3 1
  2407. 0 807 "{3}" [X]
  2408. 13
  2409. 0 805 &1 [X]
  2410. 13
  2411. 0 277 [X]
  2412. 13
  2413. 1 1
  2414. 11 00000415
  2415. 0 784 "[112]"
  2416. 13
  2417. 0 40 [X]
  2418. 13
  2419. 5 1
  2420. 3 1
  2421. 8 2
  2422. 6 2
  2423. 6 1
  2424. 3 0
  2425. 8 2
  2426. 10 00000478
  2427. 0 3 "Invalid key.  It must be A - Z or F1 to F12"
  2428. 5 0
  2429. 15
  2430. 9
  2431. 0 27 21
  2432. 13
  2433. 11 00000529
  2434. 6 2
  2435. 5 16384
  2436. 25 2
  2437. 8 2
  2438. 0 27 22
  2439. 13
  2440. 11 00000579
  2441. 6 2
  2442. 5 4096
  2443. 25 2
  2444. 8 2
  2445. 0 27 23
  2446. 13
  2447. 11 00000629
  2448. 6 2
  2449. 5 8192
  2450. 25 2
  2451. 8 2
  2452. 6 2
  2453. 15
  2454. 9
  2455. 6 0
  2456. 15
  2457. 9
  2458. 14 ShowAccel
  2459. 5 0
  2460. 6 0
  2461. 18 1
  2462. 11 00000379
  2463. 6 0
  2464. 5 16384
  2465. 25 1
  2466. 0 31 21 [X]
  2467. 6 0
  2468. 5 4096
  2469. 25 1
  2470. 0 31 22 [X]
  2471. 6 0
  2472. 5 8192
  2473. 25 1
  2474. 0 31 23 [X]
  2475. 6 0
  2476. 5 255
  2477. 25 1
  2478. 8 0
  2479. 0 784 "[112]"
  2480. 13
  2481. 0 40 [X]
  2482. 13
  2483. 8 2
  2484. 6 2
  2485. 6 0
  2486. 18 4
  2487. 6 0
  2488. 6 2
  2489. 5 12
  2490. 3 0
  2491. 18 4
  2492. 1 1
  2493. 11 00000348
  2494. 5 49
  2495. 6 0
  2496. 6 2
  2497. 3 1
  2498. 3 0
  2499. 0 39 [X]
  2500. 13
  2501. 0 16 "F" [X]
  2502. 13
  2503. 0 31 8003 [X]
  2504. 10 00000379
  2505. 0 39 "{0}"
  2506. 13
  2507. 0 31 8003 [X]
  2508. 6 1
  2509. 15
  2510. 9
  2511. 14 AddAccelStuff
  2512. 7 ""
  2513. 8 3
  2514. 6 1
  2515. 5 16384
  2516. 25 1
  2517. 11 00000091
  2518. 0 16 "{3}" "Ctrl+"
  2519. 13
  2520. 8 3
  2521. 6 1
  2522. 5 4096
  2523. 25 1
  2524. 11 00000153
  2525. 0 16 "{3}" "Shift+"
  2526. 13
  2527. 8 3
  2528. 6 1
  2529. 5 8192
  2530. 25 1
  2531. 11 00000213
  2532. 0 16 "{3}" "Alt+"
  2533. 13
  2534. 8 3
  2535. 6 1
  2536. 5 255
  2537. 25 1
  2538. 8 1
  2539. 0 784 "[112]"
  2540. 13
  2541. 0 40 [X]
  2542. 13
  2543. 8 4
  2544. 6 4
  2545. 6 1
  2546. 18 4
  2547. 6 1
  2548. 6 4
  2549. 5 12
  2550. 3 0
  2551. 18 4
  2552. 1 1
  2553. 11 00000411
  2554. 5 49
  2555. 6 1
  2556. 6 4
  2557. 3 1
  2558. 3 0
  2559. 0 39 [X]
  2560. 13
  2561. 0 16 "F" [X]
  2562. 13
  2563. 8 5
  2564. 10 00000432
  2565. 0 39 "{1}"
  2566. 13
  2567. 8 5
  2568. 0 16 "{3}" "{5}"
  2569. 13
  2570. 8 3
  2571. 0 16 "{0}" "    " "{3}"
  2572. 13
  2573. 15
  2574. 9
  2575. 6 2
  2576. 15
  2577. 9
  2578. 14 LoadMenus
  2579. 0 284 "user,GetActiveWindow,H"
  2580. 13
  2581. 0 284 "user,GetMenu,HH" [X]
  2582. 13
  2583. 8 2
  2584. 0 284 "user,GetMenuItemCount,HH" "{2}"
  2585. 13
  2586. 8 3
  2587. 5 1
  2588. 8 5
  2589. 5 0
  2590. 8 6
  2591. 6 3
  2592. 5 1
  2593. 3 1
  2594. 6 6
  2595. 18 2
  2596. 12 00000242
  2597. 10 00000408
  2598. 5 1
  2599. 6 6
  2600. 3 0
  2601. 8 6
  2602. 10 00000157
  2603. 0 284 "user,GetMenuString,HHHFHH" "{2}" "{6}" &4 80 1024
  2604. 6 4
  2605. 7 ""
  2606. 18 1
  2607. 6 4
  2608. 7 "&Window"
  2609. 18 1
  2610. 1 1
  2611. 11 00000395
  2612. 6 5
  2613. 6 4
  2614. 23 0
  2615. 6 5
  2616. 5 1
  2617. 3 0
  2618. 8 5
  2619. 10 00000209
  2620. 6 5
  2621. 15
  2622. 9
  2623. 6 1
  2624. 15
  2625. 9
  2626. 14 GetMacro
  2627. 20 00000256
  2628. 19 00000256
  2629. 0 789 "One moment please..."
  2630. 0 295
  2631. 13
  2632. 0 781 [X]
  2633. 0 31 9001 "*.smm"
  2634. 0 789 ""
  2635. 5 1
  2636. 0 26 "." "macrolst"
  2637. 13
  2638. 18 0
  2639. 11 00000245
  2640. 0 290
  2641. 13
  2642. 0 27 8001
  2643. 13
  2644. 0 16 [X] [X]
  2645. 13
  2646. 0 17 [X]
  2647. 13
  2648. 8 1
  2649. 10 00000256
  2650. 7 ""
  2651. 8 1
  2652. 6 1
  2653. 15
  2654. 9
  2655. 0 789 ""
  2656. 6 0
  2657. 15
  2658. 9
  2659. 14 LoadAmiFuns
  2660. 20 00005831
  2661. 19 00005831
  2662. 0 789 "Loading control files..."
  2663. 5 1
  2664. 7 "New"
  2665. 23 0
  2666. 5 1
  2667. 7 "101"
  2668. 23 1
  2669. 5 2
  2670. 7 "Open"
  2671. 23 0
  2672. 5 2
  2673. 7 "102"
  2674. 23 1
  2675. 5 3
  2676. 7 "Save"
  2677. 23 0
  2678. 5 3
  2679. 7 "103"
  2680. 23 1
  2681. 5 4
  2682. 7 "Save As"
  2683. 23 0
  2684. 5 4
  2685. 7 "104"
  2686. 23 1
  2687. 5 5
  2688. 7 "Revert"
  2689. 23 0
  2690. 5 5
  2691. 7 "105"
  2692. 23 1
  2693. 5 6
  2694. 7 "Import/Export"
  2695. 23 0
  2696. 5 6
  2697. 7 "107"
  2698. 23 1
  2699. 5 7
  2700. 7 "Import Picture"
  2701. 23 0
  2702. 5 7
  2703. 7 "141"
  2704. 23 1
  2705. 5 8
  2706. 7 "File Management"
  2707. 23 0
  2708. 5 8
  2709. 7 "108"
  2710. 23 1
  2711. 5 9
  2712. 7 "Document Description"
  2713. 23 0
  2714. 5 9
  2715. 7 "109"
  2716. 23 1
  2717. 5 10
  2718. 7 "Rename Doc Info Fields"
  2719. 23 0
  2720. 5 10
  2721. 7 "125"
  2722. 23 1
  2723. 5 11
  2724. 7 "Links"
  2725. 23 0
  2726. 5 11
  2727. 7 "115"
  2728. 23 1
  2729. 5 12
  2730. 7 "Merge"
  2731. 23 0
  2732. 5 12
  2733. 7 "110"
  2734. 23 1
  2735. 5 13
  2736. 7 "Print"
  2737. 23 0
  2738. 5 13
  2739. 7 "111"
  2740. 23 1
  2741. 5 14
  2742. 7 "Printer Setup"
  2743. 23 0
  2744. 5 14
  2745. 7 "112"
  2746. 23 1
  2747. 5 15
  2748. 7 "Exit"
  2749. 23 0
  2750. 5 15
  2751. 7 "113"
  2752. 23 1
  2753. 5 16
  2754. 7 "Master Document"
  2755. 23 0
  2756. 5 16
  2757. 7 "146"
  2758. 23 1
  2759. 5 17
  2760. 7 "Undo"
  2761. 23 0
  2762. 5 17
  2763. 7 "151"
  2764. 23 1
  2765. 5 18
  2766. 7 "Cut"
  2767. 23 0
  2768. 5 18
  2769. 7 "153"
  2770. 23 1
  2771. 5 19
  2772. 7 "Copy"
  2773. 23 0
  2774. 5 19
  2775. 7 "154"
  2776. 23 1
  2777. 5 20
  2778. 7 "Paste"
  2779. 23 0
  2780. 5 20
  2781. 7 "155"
  2782. 23 1
  2783. 5 21
  2784. 7 "Paste Link"
  2785. 23 0
  2786. 5 21
  2787. 7 "157"
  2788. 23 1
  2789. 5 22
  2790. 7 "Insert Date"
  2791. 23 0
  2792. 5 22
  2793. 7 "158"
  2794. 23 1
  2795. 5 23
  2796. 7 "Footnotes"
  2797. 23 0
  2798. 5 23
  2799. 7 "160"
  2800. 23 1
  2801. 5 24
  2802. 7 "Defaults"
  2803. 23 0
  2804. 5 24
  2805. 7 "162"
  2806. 23 1
  2807. 5 25
  2808. 7 "Full Page"
  2809. 23 0
  2810. 5 25
  2811. 7 "201"
  2812. 23 1
  2813. 5 26
  2814. 7 "Custom View"
  2815. 23 0
  2816. 5 26
  2817. 7 "202"
  2818. 23 1
  2819. 5 27
  2820. 7 "Standard"
  2821. 23 0
  2822. 5 27
  2823. 7 "203"
  2824. 23 1
  2825. 5 28
  2826. 7 "Enlarged"
  2827. 23 0
  2828. 5 28
  2829. 7 "204"
  2830. 23 1
  2831. 5 29
  2832. 7 "Facing Pages"
  2833. 23 0
  2834. 5 29
  2835. 7 "212"
  2836. 23 1
  2837. 5 30
  2838. 7 "Layout Mode"
  2839. 23 0
  2840. 5 30
  2841. 7 "210"
  2842. 23 1
  2843. 5 31
  2844. 7 "Draft Mode"
  2845. 23 0
  2846. 5 31
  2847. 7 "211"
  2848. 23 1
  2849. 5 32
  2850. 7 "Display Preferences"
  2851. 23 0
  2852. 5 32
  2853. 7 "206"
  2854. 23 1
  2855. 5 33
  2856. 7 "Show Tab Ruler"
  2857. 23 0
  2858. 5 33
  2859. 7 "207"
  2860. 23 1
  2861. 5 34
  2862. 7 "Hide Side Bar"
  2863. 23 0
  2864. 5 34
  2865. 7 "109"
  2866. 23 1
  2867. 5 35
  2868. 7 "Envelope"
  2869. 23 0
  2870. 5 35
  2871. 7 "237"
  2872. 23 1
  2873. 5 36
  2874. 7 "Font"
  2875. 23 0
  2876. 5 36
  2877. 7 "251"
  2878. 23 1
  2879. 5 37
  2880. 7 "Alignment"
  2881. 23 0
  2882. 5 37
  2883. 7 "263"
  2884. 23 1
  2885. 5 38
  2886. 7 "Spacing"
  2887. 23 0
  2888. 5 38
  2889. 7 "252"
  2890. 23 1
  2891. 5 39
  2892. 7 "Normal"
  2893. 23 0
  2894. 5 39
  2895. 7 "253"
  2896. 23 1
  2897. 5 40
  2898. 7 "Bold"
  2899. 23 0
  2900. 5 40
  2901. 7 "254"
  2902. 23 1
  2903. 5 41
  2904. 7 "Italic"
  2905. 23 0
  2906. 5 41
  2907. 7 "255"
  2908. 23 1
  2909. 5 42
  2910. 7 "Underline"
  2911. 23 0
  2912. 5 42
  2913. 7 "256"
  2914. 23 1
  2915. 5 43
  2916. 7 "Word Underline"
  2917. 23 0
  2918. 5 43
  2919. 7 "256"
  2920. 23 1
  2921. 5 44
  2922. 7 "Caps"
  2923. 23 0
  2924. 5 44
  2925. 7 "264"
  2926. 23 1
  2927. 5 45
  2928. 7 "Special Effects"
  2929. 23 0
  2930. 5 45
  2931. 7 "258"
  2932. 23 1
  2933. 5 46
  2934. 7 "Create Style"
  2935. 23 0
  2936. 5 46
  2937. 7 "301"
  2938. 23 1
  2939. 5 47
  2940. 7 "Modify Style"
  2941. 23 0
  2942. 5 47
  2943. 7 "302"
  2944. 23 1
  2945. 5 48
  2946. 7 "Use Another Style Sheet"
  2947. 23 0
  2948. 5 48
  2949. 7 "304"
  2950. 23 1
  2951. 5 49
  2952. 7 "Save As A New Style Sheet"
  2953. 23 0
  2954. 5 49
  2955. 7 "305"
  2956. 23 1
  2957. 5 50
  2958. 7 "Style Management"
  2959. 23 0
  2960. 5 50
  2961. 7 "303"
  2962. 23 1
  2963. 5 51
  2964. 7 "Select a Style"
  2965. 23 0
  2966. 5 51
  2967. 7 "306"
  2968. 23 1
  2969. 5 52
  2970. 7 "Show Styles Box"
  2971. 23 0
  2972. 5 52
  2973. 7 "307"
  2974. 23 1
  2975. 5 53
  2976. 7 "Insert/Remove Layout"
  2977. 23 0
  2978. 5 53
  2979. 7 "351"
  2980. 23 1
  2981. 5 54
  2982. 7 "Modify Layout"
  2983. 23 0
  2984. 5 54
  2985. 7 "352"
  2986. 23 1
  2987. 5 55
  2988. 7 "Floating Header/Footer"
  2989. 23 0
  2990. 5 55
  2991. 7 "360"
  2992. 23 1
  2993. 5 56
  2994. 7 "Tab Ruler"
  2995. 23 0
  2996. 5 56
  2997. 7 "355"
  2998. 23 1
  2999. 5 57
  3000. 7 "Page Numbering"
  3001. 23 0
  3002. 5 57
  3003. 7 "356"
  3004. 23 1
  3005. 5 58
  3006. 7 "Line Numbering"
  3007. 23 0
  3008. 5 58
  3009. 7 "359"
  3010. 23 1
  3011. 5 59
  3012. 7 "Page Break"
  3013. 23 0
  3014. 5 59
  3015. 7 "357"
  3016. 23 1
  3017. 5 60
  3018. 7 "Add a Frame"
  3019. 23 0
  3020. 5 60
  3021. 7 "409"
  3022. 23 1
  3023. 5 61
  3024. 7 "Frame Layout"
  3025. 23 0
  3026. 5 61
  3027. 7 "402"
  3028. 23 1
  3029. 5 62
  3030. 7 "Graphics Scaling"
  3031. 23 0
  3032. 5 62
  3033. 7 "403"
  3034. 23 1
  3035. 5 63
  3036. 7 "Image Processing"
  3037. 23 0
  3038. 5 63
  3039. 7 "410"
  3040. 23 1
  3041. 5 64
  3042. 7 "Go To"
  3043. 23 0
  3044. 5 64
  3045. 7 "452"
  3046. 23 1
  3047. 5 65
  3048. 7 "Find Replace"
  3049. 23 0
  3050. 5 65
  3051. 7 "451"
  3052. 23 1
  3053. 5 66
  3054. 7 "Spelling"
  3055. 23 0
  3056. 5 66
  3057. 7 "453"
  3058. 23 1
  3059. 5 67
  3060. 7 "Thesaurus"
  3061. 23 0
  3062. 5 67
  3063. 7 "455"
  3064. 23 1
  3065. 5 68
  3066. 7 "Glossary"
  3067. 23 0
  3068. 5 68
  3069. 7 "467"
  3070. 23 1
  3071. 5 69
  3072. 7 "Sort"
  3073. 23 0
  3074. 5 69
  3075. 7 "456"
  3076. 23 1
  3077. 5 70
  3078. 7 "Generate Toc, Index"
  3079. 23 0
  3080. 5 70
  3081. 7 "465"
  3082. 23 1
  3083. 5 71
  3084. 7 "Tables"
  3085. 23 0
  3086. 5 71
  3087. 7 "457"
  3088. 23 1
  3089. 5 72
  3090. 7 "Insert Note"
  3091. 23 0
  3092. 5 72
  3093. 7 "282"
  3094. 23 1
  3095. 5 73
  3096. 7 "Insert Merge Field"
  3097. 23 0
  3098. 5 73
  3099. 7 "182"
  3100. 23 1
  3101. 5 74
  3102. 7 "Insert Doc Info"
  3103. 23 0
  3104. 5 74
  3105. 7 "183"
  3106. 23 1
  3107. 5 75
  3108. 7 "Insert Power Field"
  3109. 23 0
  3110. 5 75
  3111. 7 "568"
  3112. 23 1
  3113. 5 76
  3114. 7 "Update Power Field"
  3115. 23 0
  3116. 5 76
  3117. 7 "571"
  3118. 23 1
  3119. 5 77
  3120. 7 "Update All Power Fields"
  3121. 23 0
  3122. 5 77
  3123. 7 "267"
  3124. 23 1
  3125. 5 78
  3126. 7 "Next Power Field"
  3127. 23 0
  3128. 5 78
  3129. 7 "569"
  3130. 23 1
  3131. 5 79
  3132. 7 "Previous Power Field"
  3133. 23 0
  3134. 5 79
  3135. 7 "570"
  3136. 23 1
  3137. 5 80
  3138. 7 "Mark Index"
  3139. 23 0
  3140. 5 80
  3141. 7 "180"
  3142. 23 1
  3143. 5 81
  3144. 7 "Mark Glossary"
  3145. 23 0
  3146. 5 81
  3147. 7 "199"
  3148. 23 1
  3149. 5 82
  3150. 7 "Revision Marking"
  3151. 23 0
  3152. 5 82
  3153. 7 "187"
  3154. 23 1
  3155. 5 83
  3156. 7 "Protect Text"
  3157. 23 0
  3158. 5 83
  3159. 7 "188"
  3160. 23 1
  3161. 5 84
  3162. 7 "No Hyphenation"
  3163. 23 0
  3164. 5 84
  3165. 7 "189"
  3166. 23 1
  3167. 5 85
  3168. 7 "Left Align"
  3169. 23 0
  3170. 5 85
  3171. 7 "259"
  3172. 23 1
  3173. 5 86
  3174. 7 "Right Align"
  3175. 23 0
  3176. 5 86
  3177. 7 "261"
  3178. 23 1
  3179. 5 87
  3180. 7 "Center"
  3181. 23 0
  3182. 5 87
  3183. 7 "260"
  3184. 23 1
  3185. 5 88
  3186. 7 "Justify"
  3187. 23 0
  3188. 5 88
  3189. 7 "262"
  3190. 23 1
  3191. 5 89
  3192. 7 "Upper Case"
  3193. 23 0
  3194. 5 89
  3195. 7 "273"
  3196. 23 1
  3197. 5 90
  3198. 7 "Lower Case"
  3199. 23 0
  3200. 5 90
  3201. 7 "287"
  3202. 23 1
  3203. 5 91
  3204. 7 "Initial Caps"
  3205. 23 0
  3206. 5 91
  3207. 7 "288"
  3208. 23 1
  3209. 5 92
  3210. 7 "Small Caps"
  3211. 23 0
  3212. 5 92
  3213. 7 "289"
  3214. 23 1
  3215. 5 93
  3216. 7 "Insert Page Layout"
  3217. 23 0
  3218. 5 93
  3219. 7 "375"
  3220. 23 1
  3221. 5 94
  3222. 7 "Remove Page Layout"
  3223. 23 0
  3224. 5 94
  3225. 7 "373"
  3226. 23 1
  3227. 5 95
  3228. 7 "Revert Page Layout"
  3229. 23 0
  3230. 5 95
  3231. 7 "374"
  3232. 23 1
  3233. 5 96
  3234. 7 "Insert Tab Ruler"
  3235. 23 0
  3236. 5 96
  3237. 7 "371"
  3238. 23 1
  3239. 5 97
  3240. 7 "Remove Tab Ruler"
  3241. 23 0
  3242. 5 97
  3243. 7 "372"
  3244. 23 1
  3245. 5 98
  3246. 7 "Macro Play"
  3247. 23 0
  3248. 5 98
  3249. 7 "502"
  3250. 23 1
  3251. 5 99
  3252. 7 "Macro Record"
  3253. 23 0
  3254. 5 99
  3255. 7 "503"
  3256. 23 1
  3257. 5 100
  3258. 7 "Macro Edit"
  3259. 23 0
  3260. 5 100
  3261. 7 "501"
  3262. 23 1
  3263. 5 101
  3264. 7 "Quick Record"
  3265. 23 0
  3266. 5 101
  3267. 7 "505"
  3268. 23 1
  3269. 5 102
  3270. 7 "Quick Play"
  3271. 23 0
  3272. 5 102
  3273. 7 "506"
  3274. 23 1
  3275. 5 103
  3276. 7 "Insert Bullet"
  3277. 23 0
  3278. 5 103
  3279. 7 "836"
  3280. 23 1
  3281. 5 104
  3282. 7 "Fast Format"
  3283. 23 0
  3284. 5 104
  3285. 7 "246"
  3286. 23 1
  3287. 5 105
  3288. 7 "Header Footer"
  3289. 23 0
  3290. 5 105
  3291. 7 "377"
  3292. 23 1
  3293. 5 106
  3294. 7 "Control Panel"
  3295. 23 0
  3296. 5 106
  3297. 7 "601"
  3298. 23 1
  3299. 5 107
  3300. 7 "Tab Ruler"
  3301. 23 0
  3302. 5 107
  3303. 7 "810"
  3304. 23 1
  3305. 5 108
  3306. 7 "Assign Macro To File"
  3307. 23 0
  3308. 5 108
  3309. 7 "436"
  3310. 23 1
  3311. 5 109
  3312. 7 "Toggle Clean Screen"
  3313. 23 0
  3314. 5 109
  3315. 7 "233"
  3316. 23 1
  3317. 5 110
  3318. 7 "Clean Screen Option"
  3319. 23 0
  3320. 5 110
  3321. 7 "234"
  3322. 23 1
  3323. 5 111
  3324. 7 "Mark Index Word"
  3325. 23 0
  3326. 5 111
  3327. 7 "180"
  3328. 23 1
  3329. 5 112
  3330. 7 "Mark TOC Entry"
  3331. 23 0
  3332. 5 112
  3333. 7 "835"
  3334. 23 1
  3335. 5 113
  3336. 7 "Set Default Paths"
  3337. 23 0
  3338. 5 113
  3339. 7 "170"
  3340. 23 1
  3341. 0 296 0
  3342. 0 789 ""
  3343. 5 113
  3344. 15
  3345. 9
  3346. 6 2
  3347. 15
  3348. 9
  3349. 14 GetAmiPro
  3350. 20 00000102
  3351. 19 00000102
  3352. 0 789 "One moment please..."
  3353. 0 296 1
  3354. 0 31 8000 &0
  3355. 0 296 0
  3356. 0 789 ""
  3357. 5 0
  3358. 8 3
  3359. 5 1
  3360. 0 26 "." "funclst"
  3361. 13
  3362. 18 0
  3363. 11 00000336
  3364. 0 27 9000
  3365. 13
  3366. 8 4
  3367. 5 1
  3368. 8 3
  3369. 6 1
  3370. 6 3
  3371. 18 2
  3372. 12 00000275
  3373. 10 00000336
  3374. 5 1
  3375. 6 3
  3376. 3 0
  3377. 8 3
  3378. 10 00000200
  3379. 6 4
  3380. 6 3
  3381. 22 0
  3382. 18 0
  3383. 11 00000323
  3384. 10 00000336
  3385. 10 00000242
  3386. 6 3
  3387. 15
  3388. 9
  3389. 6 2
  3390. 15
  3391. 9
  3392. 14 AddToAutoexec
  3393. 16 OpenAutoExec
  3394. 6 6
  3395. 5 0
  3396. 18 1
  3397. 11 00000181
  3398. 0 6 "accel = {6}[13]"
  3399. 0 6 "menuid = {2}[13]"
  3400. 0 6 "macroname = ""{3}""[13]"
  3401. 0 6 "OnKey(accel, menuid, macroname)"
  3402. 5 0
  3403. 6 0
  3404. 18 1
  3405. 11 00000861
  3406. 0 6 "menuname = ""{0}""[13]"
  3407. 0 6 "itemname = ""{1}""[13]"
  3408. 5 0
  3409. 6 2
  3410. 18 1
  3411. 11 00000548
  3412. 0 6 "menuid = {2}[13]"
  3413. 5 0
  3414. 6 5
  3415. 18 0
  3416. 11 00000424
  3417. 0 6 "AddmenuItem(1, {{menuname}, {{itemname}, {{menuid})"
  3418. 10 00000535
  3419. 6 5
  3420. 5 1
  3421. 3 1
  3422. 8 5
  3423. 0 6 "pos = {5}[13]"
  3424. 0 6 "InsertMenuItem(1, {{menuname}, {{pos}, {{itemname}, {{menuid})"
  3425. 10 00000861
  3426. 0 6 "macroname = ""{3}""[13]"
  3427. 0 6 "helptext = ""{4}""[13]"
  3428. 5 0
  3429. 6 5
  3430. 18 0
  3431. 11 00000726
  3432. 0 6 "AddmenuItem(1, {{menuname}, {{itemname}, {{macroname}, {{helptext})"
  3433. 10 00000861
  3434. 6 5
  3435. 5 1
  3436. 3 1
  3437. 8 5
  3438. 0 6 "pos = {5}[13]"
  3439. 0 6 "InsertMenuItem(1, {{menuname}, {{pos},"
  3440. 0 6 " {{itemname}, {{macroname}, {{helptext})"
  3441. 2 103 1
  3442. 2 147 1
  3443. 6 7
  3444. 15
  3445. 9
  3446. 14 DelFromAutoexec
  3447. 16 OpenAutoExec
  3448. 0 6 "menuname = ""{0}""[13]"
  3449. 0 6 "itemname = ""{1}""[13]"
  3450. 0 6 "DeleteMenuItem(1, {{menuname}, {{itemname})"
  3451. 2 103 1
  3452. 2 147 1
  3453. 6 2
  3454. 15
  3455. 9
  3456. 14 OpenAutoExec
  3457. 16 FindAutoExec
  3458. 13
  3459. 8 2
  3460. 5 0
  3461. 0 259 "{2}" "r"
  3462. 13
  3463. 0 805 &1 [X]
  3464. 13
  3465. 18 0
  3466. 11 00000330
  3467. 0 286 "AmiPro" "defstyle" "amipro.ini"
  3468. 13
  3469. 8 3
  3470. 6 3
  3471. 7 ""
  3472. 18 0
  3473. 11 00000208
  3474. 7 "_default.sty"
  3475. 8 3
  3476. 2 101 1 "{3}" 0 0
  3477. 0 6 "FUNCTION auto()[13]"
  3478. 0 6 "END FUNCTION[13]"
  3479. 0 6 "[16420]"
  3480. 2 104 1 "{2}" 32 "" ""
  3481. 10 00000363
  3482. 0 260 "{1}"
  3483. 2 102 1 "{2}" 1 ""
  3484. 2 488 1 0 0 24576 "End function" ""
  3485. 0 6 "[36]"
  3486. 0 6 "[13]"
  3487. 0 6 "[38]"
  3488. 6 0
  3489. 15
  3490. 9
  3491. 14 FindAutoExec
  3492. 0 295
  3493. 13
  3494. 0 16 [X] "autoexec.smm"
  3495. 13
  3496. 8 2
  3497. 5 0
  3498. 0 259 "{2}" "r"
  3499. 13
  3500. 0 805 &1 [X]
  3501. 13
  3502. 18 0
  3503. 11 00000317
  3504. 0 268
  3505. 13
  3506. 0 16 [X] "autoexec.smm"
  3507. 13
  3508. 8 2
  3509. 5 0
  3510. 0 259 "{2}" "r"
  3511. 13
  3512. 0 805 &1 [X]
  3513. 13
  3514. 18 0
  3515. 11 00000291
  3516. 0 798
  3517. 13
  3518. 0 16 [X] "autoexec.smm"
  3519. 13
  3520. 8 2
  3521. 10 00000304
  3522. 0 260 "{1}"
  3523. 10 00000330
  3524. 0 260 "{1}"
  3525. 6 2
  3526. 15
  3527. 9
  3528. 6 0
  3529. 15
  3530. 9
  3531. 14 LocateHmenu
  3532. 0 284 "user,GetActiveWindow,H"
  3533. 13
  3534. 8 2
  3535. 6 2
  3536. 8 3
  3537. 5 0
  3538. 0 284 "user,GetParent,HH" "{2}"
  3539. 13
  3540. 0 805 &2 [X]
  3541. 13
  3542. 18 1
  3543. 11 00000169
  3544. 6 2
  3545. 8 3
  3546. 10 00000067
  3547. 6 3
  3548. 8 2
  3549. 0 284 "user,GetMenu,HH" "{2}"
  3550. 13
  3551. 8 4
  3552. 16 FindMenu "{4}" "{0}"
  3553. 13
  3554. 15
  3555. 9
  3556. 6 1
  3557. 15
  3558. 9
  3559. 14 DelMenu
  3560. 0 284 "user,GetActiveWindow,H"
  3561. 13
  3562. 8 2
  3563. 6 2
  3564. 8 3
  3565. 5 0
  3566. 0 284 "user,GetParent,HH" "{2}"
  3567. 13
  3568. 0 805 &2 [X]
  3569. 13
  3570. 18 1
  3571. 11 00000165
  3572. 6 2
  3573. 8 3
  3574. 10 00000063
  3575. 6 3
  3576. 8 2
  3577. 0 284 "user,GetMenu,HH" "{2}"
  3578. 13
  3579. 8 4
  3580. 5 0
  3581. 16 FindMenu "{4}" "{0}"
  3582. 13
  3583. 0 805 &4 [X]
  3584. 13
  3585. 18 1
  3586. 11 00000478
  3587. 16 LoadTheBox "{4}" 9000
  3588. 5 1
  3589. 0 26 "." "DelMenu"
  3590. 13
  3591. 18 0
  3592. 11 00000478
  3593. 0 27 9000
  3594. 13
  3595. 8 5
  3596. 0 520 1 "{0}" "{5}"
  3597. 0 2 "Make this permanent?"
  3598. 13
  3599. 11 00000478
  3600. 16 DelFromAutoExec "{0}" "{5}"
  3601. 6 1
  3602. 15
  3603. 9
  3604. 14 LoadTheBox
  3605. 0 284 "user,GetMenuItemCount,HH" "{0}"
  3606. 13
  3607. 8 4
  3608. 5 0
  3609. 8 5
  3610. 6 4
  3611. 5 1
  3612. 3 1
  3613. 6 5
  3614. 18 2
  3615. 12 00000159
  3616. 10 00000353
  3617. 5 1
  3618. 6 5
  3619. 3 0
  3620. 8 5
  3621. 10 00000074
  3622. 0 284 "user,GetMenuString,HHHFHH" "{0}" "{5}" &3 80 1024
  3623. 5 0
  3624. 0 134 "{3}"
  3625. 13
  3626. 18 5
  3627. 11 00000289
  3628. 0 31 "{1}" "{3}"
  3629. 10 00000340
  3630. 0 31 "{1}" "------------------------------------"
  3631. 10 00000126
  3632. 6 2
  3633. 15
  3634. 9
  3635. 14 FindMenu
  3636. 0 284 "user,GetMenuItemCount,HH" "{0}"
  3637. 13
  3638. 8 4
  3639. 5 0
  3640. 8 5
  3641. 6 4
  3642. 5 1
  3643. 3 1
  3644. 6 5
  3645. 18 2
  3646. 12 00000157
  3647. 10 00000319
  3648. 5 1
  3649. 6 5
  3650. 3 0
  3651. 8 5
  3652. 10 00000072
  3653. 0 284 "user,GetMenuString,HHHFHH" "{0}" "{5}" &3 80 1024
  3654. 6 1
  3655. 6 3
  3656. 18 0
  3657. 11 00000306
  3658. 0 284 "user,GetSubMenu,HHH" "{0}" "{5}"
  3659. 13
  3660. 8 0
  3661. 6 0
  3662. 15
  3663. 9
  3664. 10 00000124
  3665. 5 0
  3666. 15
  3667. 9
  3668. 6 2
  3669. 15
  3670. 9
  3671. DIALOG DelMenu
  3672. -2134376448 5 98 46 176 86 "" "" "Delete Menu Item" 
  3673. FONT 8 "Helv" 
  3674. 130 4 40 14 1 1342242817 "button" "OK" 0 
  3675. 130 20 40 14 2 1342242816 "button" "Cancel" 0 
  3676. 5 40 120 42 9000 1352728577 "listbox" "" 0 
  3677. 6 30 56 8 1000 1342177280 "static" "&Menu items:" 0 
  3678. 5 7 99 17 1001 1342177280 "static" "Select a menu item to delete." 0 
  3679. DIALOG PickMenu
  3680. -2134376448 6 89 47 200 78 "" "" "Customize Ami Pro" 
  3681. FONT 8 "Helv" 
  3682. 5 20 56 54 9000 1352728577 "listbox" "" 0 
  3683. 149 4 44 14 2 1342242816 "button" "Done" 0 
  3684. 67 20 126 14 5 1342242816 "button" "&Add an Ami Pro Function or Macro..." 0 
  3685. 67 36 126 14 6 1342242816 "button" "&Delete a menu item..." 0 
  3686. 6 9 56 8 1000 1342177280 "static" "&Menus:" 0 
  3687. 67 53 126 14 7 1342242816 "button" "Assign Key Commands..." 0 
  3688. DIALOG AddItem
  3689. -2134376448 20 35 26 260 104 "" "" "Add Menu Item" 
  3690. FONT 8 "Helv" 
  3691. 5 16 82 8 1000 1342177282 "static" "Name for Menu:" 0 
  3692. 89 14 84 12 8000 1350631552 "edit" "" 0 
  3693. 5 30 82 8 1006 1342177282 "static" "&Insert before:" 0 
  3694. 99 78 141 8 1001 1342177280 "static" "Optional help text for macro functions only:" 0 
  3695. 183 41 71 14 3 1342242816 "button" "Ami Pro &Function..." 0 
  3696. 183 57 71 14 4 1342242816 "button" "&Macro..." 0 
  3697. 99 88 138 12 8001 1350631552 "edit" "" 0 
  3698. 9 78 18 12 8003 1350631552 "edit" "" 0 
  3699. 5 56 86 44 20 1342177287 "button" "&Shortcut key" 0 
  3700. 49 67 38 10 21 1342242819 "button" "&Control" 0 
  3701. 49 77 38 10 22 1342242819 "button" "&Shift" 0 
  3702. 49 87 38 10 23 1342242819 "button" "Al&t" 0 
  3703. 5 4 82 8 1002 1342177282 "static" "Add to me&nu:" 0 
  3704. 214 6 40 14 1 1342242817 "button" "OK" 0 
  3705. 214 22 40 14 2 1342242816 "button" "Cancel" 0 
  3706. 108 4 84 8 1003 1342177280 "static" "" 0 
  3707. 5 42 82 8 1004 1342177282 "static" "Fun&ction/macro to add:" 0 
  3708. 89 42 84 8 1005 1342177280 "static" "" 0 
  3709. 9 67 38 10 1007 1342177280 "static" "&Keystroke:" 0 
  3710. 89 28 84 58 9500 1344274435 "combobox" "" 0 
  3711. DIALOG AddAccel
  3712. -2134376448 12 93 28 208 72 "" "" "Add Keyboard Shortcut" 
  3713. FONT 8 "Helv" 
  3714. 128 36 74 14 3 1342242816 "button" "Ami Pro &Function..." 0 
  3715. 128 52 74 14 4 1342242816 "button" "&Macro..." 0 
  3716. 10 34 18 12 8003 1350631552 "edit" "" 0 
  3717. 6 14 90 44 20 1342177287 "button" "Shortcut key" 0 
  3718. 50 26 36 10 21 1342242819 "button" "&Control" 0 
  3719. 50 36 38 10 22 1342242819 "button" "&Shift" 0 
  3720. 50 46 38 10 23 1342242819 "button" "&Alt" 0 
  3721. 162 4 40 14 1 1342242817 "button" "OK" 0 
  3722. 162 20 40 14 2 1342242816 "button" "Cancel" 0 
  3723. 6 4 64 10 1004 1342177280 "static" "Function/macro:" 0 
  3724. 74 4 80 10 1005 1342177280 "static" "text" 0 
  3725. 10 26 38 8 1007 1342177280 "static" "Keystroke:" 0 
  3726. DIALOG MacroLst
  3727. -2134376448 6 108 30 154 90 "" "" "Add Macro " 
  3728. FONT 8 "Helv" 
  3729. 8 16 60 12 8001 1350631552 "edit" "" 0 
  3730. 8 32 60 54 9001 1352728579 "listbox" "" 0 
  3731. 72 38 74 8 7999 1342177280 "static" "" 0 
  3732. 106 4 40 14 1 1342242817 "button" "OK" 0 
  3733. 106 20 40 14 2 1342242816 "button" "Cancel" 0 
  3734. 8 6 68 8 1001 1342177280 "static" "&Macro to execute:" 0 
  3735. DIALOG FuncLst
  3736. -2134376448 4 112 28 158 68 "" "" "Add Function" 
  3737. FONT 8 "Helv" 
  3738. 6 16 100 46 9000 1352728579 "listbox" "" 0 
  3739. 6 6 66 8 1000 1342177280 "static" "&Ami Pro functions:" 0 
  3740. 112 6 40 14 1 1342242817 "button" "OK" 0 
  3741. 112 22 40 14 2 1342242816 "button" "Cancel" 0 
  3742. 00045179
  3743.