home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / SDE_300.ZIP / ASSIGN.XM! next >
Text File  |  1990-12-08  |  825b  |  42 lines

  1.  
  2. @Comment
  3.   {
  4.   An external SDE macro which allows you to assign the current
  5.   directory to one of the keys '0' through '9'. This is accomplished
  6.   via an AutoKey sequence which writes the @ChDir command, as well
  7.   as an Execute menu title, to the macro whose key is selected from
  8.   the MacroMenu displayed by this macro.
  9.  
  10.   This directory may then be jumped to by pressing the key to which
  11.   the directory was assigned.
  12.   }
  13.  
  14. @Prompt{Assign to?}
  15.  
  16. @Set
  17.   {
  18.   {akey}
  19.   {
  20.   @Menu
  21.     {
  22.     {0 key}{0}
  23.     {1 key}{1}
  24.     {2 key}{2}
  25.     {3 key}{3}
  26.     {4 key}{4}
  27.     {5 key}{5}
  28.     {6 key}{6}
  29.     {7 key}{7}
  30.     {8 key}{8}
  31.     {9 key}{9}
  32.     }
  33.   }
  34.   }
  35.  
  36. @Key
  37.   {
  38.   alt-e @Val{akey} Home Ctrl-Backspace @@Prompt{ChDir space @Vol{}:@Path{}}_
  39.   space @@ChDir{@Vol{}:@Path{}} enter escape
  40.   }
  41.  
  42.