AutoHotkey: TC Fav Menu: Features and Installation: Difference between revisions

From TotalcmdWiki
Jump to navigation Jump to search
No edit summary
No edit summary
(One intermediate revision by the same user not shown)
Line 2: Line 2:


<p class=MsoNormal style='margin-left:36.0pt'><span style='font-size:20.0pt;
<p class=MsoNormal style='margin-left:36.0pt'><span style='font-size:20.0pt;
font-family:Verdana'>TC FavMenu </span></p>
font-family:Verdana'>FavMenu</span></p>


<p class=MsoNormal style='margin-left:36.0pt'><span style='font-size:18.0pt;
<p class=MsoNormal style='margin-left:36.0pt'><span style='font-size:18.0pt;
Line 21: Line 21:
font-family:"Verdana Ref"'>&nbsp;</span></p>
font-family:"Verdana Ref"'>&nbsp;</span></p>


<p class=MsoNormal style='margin-left:36.0pt'><span style='font-family:"Verdana Ref"'>TC
<p class=MsoNormal style='margin-left:36.0pt'><span style='font-family:"Verdana Ref"'>FavMenu
FavMenu is standard Open/Save dialog enhancer and application launcher. It uses
is Windows OS enhancer and application launcher. It stores information about
the ini file to store information about your favorite folders and applications
your favorite folders and executables and let you quickly use your favorites</span></p>
and it is designed so to be portable.</span></p>
 
<p class=MsoNormal style='margin-left:36.0pt'><span style='font-family:"Verdana Ref"'>within
system dialogs (Open/Save, Browse For Folder, Office2003 dialogs),  Console
(cmd.exe),  Widows Explorer  and  Total Commander.</span></p>


<p class=MsoNormal style='margin-left:36.0pt'><span style='font-family:"Verdana Ref"'>&nbsp;</span></p>
<p class=MsoNormal style='margin-left:36.0pt'><span style='font-family:"Verdana Ref"'>&nbsp;</span></p>


<p class=MsoNormal style='margin-left:36.0pt'><span style='font-family:"Verdana Ref"'>Format
<p class=MsoNormal style='margin-left:36.0pt'><span style='font-family:"Verdana Ref"'>Format
of the menu ini file is compatibile with the Total Commander file manager <i>directory
of the menu configuration file is compatibile with the Total Commander file
menu</i>, and was originaly written to work as addon for this file manager but
manager <i>directory menu</i>, and was originaly written to work as addon for
it can be used without it (with some options disabled). All features of the TC
this file manager. All features of the TC directory menu are supported,
directory menu are supported, including plugins and pseudovariables.
including plugins and pseudovariables. Furthermore, TC doesn’t need to be
Furthermore, TC doesn’t need to be started. </span></p>
started.</span></p>


<p class=MsoNormal style='margin-left:36.0pt'><span style='font-family:"Verdana Ref"'>&nbsp;</span></p>
<p class=MsoNormal style='margin-left:36.0pt'><span style='font-family:"Verdana Ref"'>&nbsp;</span></p>


<p class=MsoNormal style='margin-left:36.0pt'><span style='font-family:"Verdana Ref"'>Menu
<p class=MsoNormal style='margin-left:36.0pt'><span style='font-family:"Verdana Ref"'>Menu
Editor can be used to create, edit, delete and organise menu items. This is complete
Editor can be used to create, edit, delete and organise menu items. This is also
replacement of TC’s internal <i>directory menu </i>editor witch adds many new
complete replacement of TC’s internal <i>directory menu  </i>editor witch adds
options. It can be used together with FavMenu or as separate application.</span></p>
many new options. It can be used together with FavMenu or separate.</span></p>


<p class=MsoNormal style='margin-left:36.0pt'><span style='font-family:"Verdana Ref"'>&nbsp;</span></p>
<p class=MsoNormal style='margin-left:36.0pt'><span style='font-family:"Verdana Ref"'>&nbsp;</span></p>
Line 63: Line 66:
font-family:"Courier New"'>.exe</span><span style='font-family:"Verdana Ref"'>
font-family:"Courier New"'>.exe</span><span style='font-family:"Verdana Ref"'>
or </span><span style='font-size:13.0pt;font-family:"Courier New"'>.ahk</span><span
or </span><span style='font-size:13.0pt;font-family:"Courier New"'>.ahk</span><span
style='font-family:"Verdana Ref"'>  files. If you want Total Commander
style='font-family:"Verdana Ref"'>  files. To run </span><span
executable and its configuration file wincmd.ini to be automaticaly recognised
style='font-size:13.0pt;font-family:"Courier New"'>.ahk</span><span
start application from within TC. To run </span><span style='font-size:13.0pt;
style='font-family:"Verdana Ref"'>, you must have <a
font-family:"Courier New"'>.ahk</span><span style='font-family:"Verdana Ref"'>,
href="http://www.autohotkey.com/">AutoHotKey</a> installed.</span></p>
you must have AutoHotKey installed. Make
 
sure you have something in the TC directory menu before start using the
<p class=MsoNormal style='margin-left:36.0pt'><span style='font-family:"Verdana Ref"'>If
program.</span></p>
you choose to run exe versions you can safely delete *.ahk files and \include
folder.</span></p>
 
<p class=MsoNormal style='margin-left:36.0pt'><span style='font-family:"Verdana Ref"'>&nbsp;</span></p>
 
<p class=MsoNormal style='margin-left:36.0pt'><span style='font-family:"Verdana Ref"'>If
you want Total Commander executable and its configuration file wincmd.ini to be
automaticaly recognised start FavMenu from within TC (not required if you
installed TC normally or you have COMMANDER_PATH environment variable set in
the system). </span></p>
 
<p class=MsoNormal style='margin-left:36.0pt'><span style='font-family:"Verdana Ref"'>Make
sure you have something in the TC directory menu before start using the program.</span></p>


<p class=MsoNormal style='margin-left:36.0pt'><b><span style='font-size:14.0pt;
<p class=MsoNormal style='margin-left:36.0pt'><b><span style='font-size:14.0pt;
Line 77: Line 92:
font-family:"Verdana Ref"'>&nbsp;</span></b></p>
font-family:"Verdana Ref"'>&nbsp;</span></b></p>


<div style='border:solid windowtext 1.0pt;padding:1.0pt 4.0pt 1.0pt 4.0pt;
<div style='border:solid windowtext 1.0pt;padding:1.0pt 21.0pt 1.0pt 4.0pt;
margin-left:41.6pt;margin-right:222.0pt'>
margin-left:41.6pt;margin-right:222.0pt'>


<p class=MsoNormal style='margin-left:3.2pt;text-indent:-3.2pt;border:none;
<p class=MsoNormal style='margin-left:3.2pt;text-indent:-3.2pt;border:none;
padding:0cm'><b><span style='font-size:14.0pt;font-family:"Verdana Ref"'>TC
padding:0cm'><b><span style='font-size:14.0pt;font-family:"Verdana Ref"'>FAVMENU 
FAVMENU  FEATURES</span></b></p>
FEATURES</span></b></p>


</div>
</div>
Line 92: Line 107:


<p class=MsoNormal style='margin-left:36.0pt'><span style='font-family:"Verdana Ref"'>-
<p class=MsoNormal style='margin-left:36.0pt'><span style='font-family:"Verdana Ref"'>-
Full TC favorites. Possible items in the menu are:</span></p>
Favmenu supports several types of menu items.  Possible menu items are ( full
TC compatibility):</span></p>


<p class=MsoNormal style='margin-left:36.0pt'><span style='font-family:"Verdana Ref"'>&nbsp;</span></p>
<p class=MsoNormal style='margin-left:36.0pt'><span style='font-family:"Verdana Ref"'>&nbsp;</span></p>
Line 99: Line 115:
  style='margin-left:50.55pt;border:none;border-bottom:solid windowtext 1.0pt'>
  style='margin-left:50.55pt;border:none;border-bottom:solid windowtext 1.0pt'>
  <tr style='height:22.9pt'>
  <tr style='height:22.9pt'>
   <td width=161 style='width:120.7pt;border:none;background:#FFCC00;padding:
   <td width=169 style='width:126.45pt;border:none;background:#FFCC00;
  0cm 5.4pt 0cm 5.4pt;height:22.9pt'>
  padding:0cm 5.4pt 0cm 5.4pt;height:22.9pt'>
   <p class=MsoNormal><b><span style='font-size:10.0pt;font-family:Arial'>MENU
   <p class=MsoNormal><b><span style='font-size:10.0pt;font-family:Arial'>MENU ITEM
   TYPE</span></b></p>
   TYPE</span></b></p>
   </td>
   </td>
   <td width=195 style='width:145.9pt;border:none;background:#FFCC00;padding:
   <td width=187 style='width:140.15pt;border:none;background:#FFCC00;
  0cm 5.4pt 0cm 5.4pt;height:22.9pt'>
  padding:0cm 5.4pt 0cm 5.4pt;height:22.9pt'>
   <p class=MsoNormal><b><span style='font-size:10.0pt;font-family:Arial'>COMMAND</span></b></p>
   <p class=MsoNormal><b><span style='font-size:10.0pt;font-family:Arial'>COMMAND</span></b></p>
   </td>
   </td>
Line 114: Line 130:
  </tr>
  </tr>
  <tr style='height:22.9pt'>
  <tr style='height:22.9pt'>
   <td width=161 style='width:120.7pt;border:none;padding:0cm 5.4pt 0cm 5.4pt;
   <td width=169 style='width:126.45pt;border:none;padding:0cm 5.4pt 0cm 5.4pt;
   height:22.9pt'>
   height:22.9pt'>
   <p class=MsoNormal><span style='font-size:10.0pt;font-family:Arial'>PATH</span></p>
   <p class=MsoNormal><span style='font-size:10.0pt;font-family:Arial'>PATH</span></p>
   </td>
   </td>
   <td width=195 style='width:145.9pt;border:none;padding:0cm 5.4pt 0cm 5.4pt;
   <td width=187 style='width:140.15pt;border:none;padding:0cm 5.4pt 0cm 5.4pt;
   height:22.9pt'>
   height:22.9pt'>
   <p class=MsoNormal><span style='font-family:"Courier New"'>cd path</span></p>
   <p class=MsoNormal><span style='font-family:"Courier New"'>cd path</span></p>
Line 129: Line 145:
  </tr>
  </tr>
  <tr style='height:22.9pt'>
  <tr style='height:22.9pt'>
   <td width=161 style='width:120.7pt;border:none;padding:0cm 5.4pt 0cm 5.4pt;
   <td width=169 style='width:126.45pt;border:none;padding:0cm 5.4pt 0cm 5.4pt;
   height:22.9pt'>
   height:22.9pt'>
   <p class=MsoNormal><span style='font-size:10.0pt;font-family:Arial'>TC PLUGIN</span></p>
   <p class=MsoNormal><span style='font-size:10.0pt;font-family:Arial'>TC PLUGIN</span></p>
   </td>
   </td>
   <td width=195 style='width:145.9pt;border:none;padding:0cm 5.4pt 0cm 5.4pt;
   <td width=187 style='width:140.15pt;border:none;padding:0cm 5.4pt 0cm 5.4pt;
   height:22.9pt'>
   height:22.9pt'>
   <p class=MsoNormal><span style='font-family:"Courier New"'>cd \\\plugin</span></p>
   <p class=MsoNormal><span style='font-family:"Courier New"'>cd \\\plugin</span></p>
Line 144: Line 160:
  </tr>
  </tr>
  <tr style='height:22.9pt'>
  <tr style='height:22.9pt'>
   <td width=161 style='width:120.7pt;border:none;padding:0cm 5.4pt 0cm 5.4pt;
   <td width=169 style='width:126.45pt;border:none;padding:0cm 5.4pt 0cm 5.4pt;
   height:22.9pt'>
   height:22.9pt'>
   <p class=MsoNormal><span style='font-size:10.0pt;font-family:Arial'>PSEUDOVARIABLE</span></p>
   <p class=MsoNormal><span style='font-size:10.0pt;font-family:Arial'>PSEUDOVARIABLE
  </span></p>
   </td>
   </td>
   <td width=195 style='width:145.9pt;border:none;padding:0cm 5.4pt 0cm 5.4pt;
   <td width=187 style='width:140.15pt;border:none;padding:0cm 5.4pt 0cm 5.4pt;
   height:22.9pt'>
   height:22.9pt'>
   <p class=MsoNormal><span style='font-family:"Courier New"'>cd %$var%\path</span></p>
   <p class=MsoNormal><span style='font-family:"Courier New"'>cd %$var%\path</span></p>
Line 159: Line 176:
  </tr>
  </tr>
  <tr style='height:58.45pt'>
  <tr style='height:58.45pt'>
   <td width=161 style='width:120.7pt;border:none;padding:0cm 5.4pt 0cm 5.4pt;
   <td width=169 style='width:126.45pt;border:none;padding:0cm 5.4pt 0cm 5.4pt;
   height:58.45pt'>
   height:58.45pt'>
   <p class=MsoNormal><span style='font-size:10.0pt;font-family:Arial'>EXECUTABLE</span></p>
   <p class=MsoNormal><span style='font-size:10.0pt;font-family:Arial'>EXECUTABLE</span></p>
   </td>
   </td>
   <td width=195 style='width:145.9pt;border:none;padding:0cm 5.4pt 0cm 5.4pt;
   <td width=187 style='width:140.15pt;border:none;padding:0cm 5.4pt 0cm 5.4pt;
   height:58.45pt'>
   height:58.45pt'>
   <p class=MsoNormal><span style='font-family:"Courier New"'>path_to_exectable</span></p>
   <p class=MsoNormal><span style='font-family:"Courier New"'>path_to_exectable</span></p>
Line 195: Line 212:
<p class=MsoNormal style='margin-left:90.0pt;text-indent:-18.0pt'><span
<p class=MsoNormal style='margin-left:90.0pt;text-indent:-18.0pt'><span
style='font-family:Symbol'>·<span style='font:7.0pt "Times New Roman"'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
style='font-family:Symbol'>·<span style='font:7.0pt "Times New Roman"'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
</span></span><span style='font-family:"Verdana Ref"'>Open/Save dialog is
</span></span><span style='font-family:"Verdana Ref"'>Open/Save, Browse For
active (commctrl32.dll dialogs)</span></p>
Folder or Office2003 dialog  is  active :</span></p>


<p class=MsoNormal style='margin-left:36.0pt;text-indent:36.0pt'><span
<p class=MsoNormal style='margin-left:36.0pt;text-indent:36.0pt'><span
Line 239: Line 256:
   <td width=231 style='width:173.45pt;padding:0cm 5.4pt 0cm 5.4pt;height:20.4pt'>
   <td width=231 style='width:173.45pt;padding:0cm 5.4pt 0cm 5.4pt;height:20.4pt'>
   <p class=MsoNormal><span style='font-size:10.0pt;font-family:"Verdana Ref"'>run
   <p class=MsoNormal><span style='font-size:10.0pt;font-family:"Verdana Ref"'>run
   the application</span></p>
   the application or file</span></p>
   </td>
   </td>
  </tr>
  </tr>
</table>
</table>


<p class=MsoNormal style='margin-left:36.0pt'><span style='font-family:"Verdana Ref"'>&nbsp;</span></p>
<p class=MsoNormal><span style='font-family:"Verdana Ref"'>&nbsp;</span></p>
 
<p class=MsoNormal style='margin-left:90.0pt;text-indent:-18.0pt'><span
style='font-family:Symbol'>·<span style='font:7.0pt "Times New Roman"'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
</span></span><span style='font-family:"Verdana Ref"'>Console window is active:
               change the current directory if path is selected or execute
application / dos command</span></p>


<p class=MsoNormal style='margin-left:90.0pt;text-indent:-18.0pt'><span
<p class=MsoNormal style='margin-left:90.0pt;text-indent:-18.0pt'><span
style='font-family:Symbol'>·<span style='font:7.0pt "Times New Roman"'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
style='font-family:Symbol'>·<span style='font:7.0pt "Times New Roman"'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
</span></span><span style='font-family:"Verdana Ref"'>Any other window is activate:  
</span></span><span style='font-family:"Verdana Ref"'>Any other window is active:   
</span><span style='font-size:10.0pt;font-family:"Verdana Ref"'>open or
         open or activate file manager for folders, launch an executable otherwise.</span></p>
activate TC</span></p>
 
<p class=MsoNormal style='margin-left:72.0pt'><span style='font-family:"Verdana Ref"'>&nbsp;</span></p>


<p class=MsoNormal><span style='font-family:"Verdana Ref"'>&nbsp;</span></p>
<p class=MsoNormal><span style='font-family:"Verdana Ref"'>&nbsp;</span></p>
Line 277: Line 301:
<p class=MsoNormal style='margin-left:36.0pt'><span style='font-family:"Verdana Ref"'> 
<p class=MsoNormal style='margin-left:36.0pt'><span style='font-family:"Verdana Ref"'> 
Open selected item in new TC tab</span></p>
Open selected item in new TC tab</span></p>
<p class=MsoNormal style='margin-left:36.0pt'><span style='font-family:"Verdana Ref"'>&nbsp;</span></p>
<p class=MsoNormal style='margin-left:36.0pt'><span style='font-family:"Verdana Ref"'>-
<b>CTRL + SHIFT + Enter (on menu item)</b></span></p>
<p class=MsoNormal style='margin-left:36.0pt'><span style='font-family:"Verdana Ref"'> 
Send path of the selected item to the active window. </span></p>


<p class=MsoNormal style='margin-left:36.0pt'><span style='font-family:"Verdana Ref"'>&nbsp;</span></p>
<p class=MsoNormal style='margin-left:36.0pt'><span style='font-family:"Verdana Ref"'>&nbsp;</span></p>
Line 286: Line 318:
first run, Setup dialog will search for TC location in the registry and if not
first run, Setup dialog will search for TC location in the registry and if not
found it will also try  </span><span style='font-size:13.0pt;font-family:"Courier New"'>%COMMANDER_PATH%
found it will also try  </span><span style='font-size:13.0pt;font-family:"Courier New"'>%COMMANDER_PATH%
</span><span style='font-family:"Verdana Ref"'> environment variable. If not
</span><span style='font-family:"Verdana Ref"'> environment variable ( if not
present in the aystem, this variable  will be instantiate by TC privately.  If
present in the system, this variable will be instantiated by TC privately)  If
setup can not find Total Commander, specify full paths to </span><span
setup can not find Total Commander it will use Windows Explorer as file
manager. </span></p>
 
<p class=MsoNormal style='margin-left:45.0pt'><span style='font-family:"Verdana Ref"'>&nbsp;</span></p>
 
<p class=MsoNormal style='margin-left:45.0pt'><span style='font-family:"Verdana Ref"'>If
Favmenu didn’t find your Total Commander, specify full paths to  </span><span
style='font-size:13.0pt;font-family:"Courier New"'>totalcmd.exe</span><span
style='font-size:13.0pt;font-family:"Courier New"'>totalcmd.exe</span><span
style='font-family:"Verdana Ref"'> and </span><span style='font-size:13.0pt;
style='font-family:"Verdana Ref"'>  and  </span><span style='font-size:13.0pt;
font-family:"Courier New"'>wincmd.ini</span><span style='font-family:"Verdana Ref"'>
font-family:"Courier New"'>wincmd.ini</span><span style='font-family:"Verdana Ref"'>
yourself. </span></p>
 yourself.</span></p>


<p class=MsoNormal style='margin-left:45.0pt'><span style='font-family:"Verdana Ref"'>In
<p class=MsoNormal style='margin-left:45.0pt'><span style='font-family:"Verdana Ref"'>In
Line 301: Line 339:


<p class=MsoNormal style='margin-left:36.0pt'><span style='font-family:"Verdana Ref"'>&nbsp;</span></p>
<p class=MsoNormal style='margin-left:36.0pt'><span style='font-family:"Verdana Ref"'>&nbsp;</span></p>
<p class=MsoNormal style='margin-left:45.0pt'><span style='font-family:"Verdana Ref"'>You
can use environment variables to specify exe &amp; ini location.</span></p>


<p class=MsoNormal style='margin-left:9.0pt;text-indent:36.0pt'><span
<p class=MsoNormal style='margin-left:9.0pt;text-indent:36.0pt'><span
style='font-family:"Verdana Ref"'>Later, you can call this Setup dialog via the
style='font-family:"Verdana Ref"'>You can call this Setup dialog via the tray
tray menu.</span></p>
menu.</span></p>


<p class=MsoNormal style='margin-left:36.0pt'><span style='font-family:"Verdana Ref"'>&nbsp;</span></p>
<p class=MsoNormal style='margin-left:36.0pt'><span style='font-family:"Verdana Ref"'>&nbsp;</span></p>


<p class=MsoNormal><span style='font-family:"Verdana Ref"'>          -<b> Current
<p class=MsoNormal><span style='font-family:"Verdana Ref"'>          -<b>
directories,   Editor  &amp;   “Add current dir”  items</b></span></p>
Current directories,   Editor  &amp;   “Add current dir”  items</b></span></p>


<p class=MsoNormal style='margin-left:45.0pt'><span style='font-family:"Verdana Ref"'>If
<p class=MsoNormal style='margin-left:45.0pt'><span style='font-family:"Verdana Ref"'>If
TC is open, current left &amp; right folders will be displayed at first 2
Total Ccommander is open, current left &amp; right folders will be displayed at
positions. If they are the same only 1 will be visible.  If menu is called with
first 2 positions. If they are the same only 1 will be visible.  If menu is
TC active, this will not be displayed. </span></p>
called with TC active, this will not be displayed.</span></p>


<p class=MsoNormal style='margin-left:45.0pt'><span style='font-family:"Verdana Ref"'>&nbsp;</span></p>
<p class=MsoNormal style='margin-left:45.0pt'><span style='font-family:"Verdana Ref"'>&nbsp;</span></p>


<p class=MsoNormal style='margin-left:45.0pt'><i><span style='font-family:"Verdana Ref"'>Add
<p class=MsoNormal style='margin-left:45.0pt'><i><span style='font-size:14.0pt'>Add
current dir</span></i><span style='font-family:"Verdana Ref"'> item works only
current dir</span></i><span style='font-family:"Verdana Ref"'> item works NOT
when TC is active and has the same meaning as in TC.</span></p>
only if TC is active. It is also supported in all system dialogs (except
Office) and in Console. This will surely work for all hard disk folders but you
may have problems with so called virtual folders since many of them don’t have
physical representation on the hard disk. You can’t use Desktop folders for
now, but that may be added in the future.</span></p>


<p class=MsoNormal style='margin-left:45.0pt'><span style='font-family:"Verdana Ref"'>&nbsp;</span></p>
<p class=MsoNormal style='margin-left:45.0pt'><span style='font-family:"Verdana Ref"'>&nbsp;</span></p>


<p class=MsoNormal style='margin-left:45.0pt'><i><span style='font-family:"Verdana Ref"'>Configure…</span></i><span
<p class=MsoNormal style='margin-left:45.0pt'><i><span style='font-size:14.0pt'>Configure…</span></i><span
style='font-family:"Verdana Ref"'> item (Editor) can also be set as a last item
style='font-family:"Verdana Ref"'> item (Editor) can also be set as a last item
in the menu. This method is preferable to set the Editor,  since you will not
in the menu. This method is preferable to set the Editor,  since you will not
have double configuration enteries in the Favmenu, because this item is not  contained
have double configuration enteries when using TCs original directory menu,
in  the menu declaration.</span></p>
because this item is not contained in the menu declaration. This also ensures
that this item is always last in the menu.</span></p>


<p class=MsoNormal style='text-indent:36.0pt'><span style='font-family:"Verdana Ref"'>&nbsp;</span></p>
<p class=MsoNormal style='text-indent:36.0pt'><span style='font-family:"Verdana Ref"'>&nbsp;</span></p>


<p class=MsoNormal style='margin-left:45.0pt'><span style='font-family:"Verdana Ref"'>All
<p class=MsoNormal style='margin-left:45.0pt'><span style='font-family:"Verdana Ref"'>All
3 can be enabled/disabled via Setup dialog.</span></p>
3 special items can be enabled/disabled via Setup dialog.</span></p>


<p class=MsoNormal style='margin-left:36.0pt'><span style='font-family:"Verdana Ref"'>&nbsp;</span></p>
<p class=MsoNormal style='margin-left:36.0pt'><span style='font-family:"Verdana Ref"'>&nbsp;</span></p>
Line 342: Line 388:
<p class=MsoNormal style='margin-left:45.0pt'><span style='font-family:"Verdana Ref"'>Menu
<p class=MsoNormal style='margin-left:45.0pt'><span style='font-family:"Verdana Ref"'>Menu
is refreshed on every call, so if you update your favorites in TC changes will
is refreshed on every call, so if you update your favorites in TC changes will
be  seen immediately.</span></p>
be seen immediately.</span></p>


<p class=MsoNormal style='margin-left:36.0pt'><span style='font-family:"Verdana Ref"'>&nbsp;</span></p>
<p class=MsoNormal style='margin-left:36.0pt'><span style='font-family:"Verdana Ref"'>&nbsp;</span></p>
Line 357: Line 403:
style='font-size:13.0pt;font-family:"Courier New"'>File Name</span><span
style='font-size:13.0pt;font-family:"Courier New"'>File Name</span><span
style='font-family:"Verdana Ref"'>  and you will not have any problems.</span></p>
style='font-family:"Verdana Ref"'>  and you will not have any problems.</span></p>
<p class=MsoNormal style='margin-left:36.0pt'><span style='font-family:"Verdana Ref"'>&nbsp;</span></p>
<p class=MsoNormal style='margin-left:36.0pt'><span style='font-family:"Verdana Ref"'>-
<b>Console Support</b></span></p>
<p class=MsoNormal style='margin-left:45.0pt'><span style='font-family:"Verdana Ref"'>If
cmd.exe is active window selecting path from FavMenu will change the path in
the command line. If you select executable from the menu, it will be typed on the
command line and executed. This allows console <i>commands</i> and <i>applications</i>
to be added to the FavMenu. </span></p>
<p class=MsoNormal style='margin-left:45.0pt'><span style='font-family:"Verdana Ref"'>For
instance, you can create menu item: </span><span style='font-size:13.0pt;
font-family:"Courier New"'>dir /b | sort</span><span style='font-family:Verdana'>
</span></p>
<p class=MsoNormal style='margin-left:45.0pt'><span style='font-family:Verdana'>Menu
items pointing to console commands (not applications) are NOT compatibile with
Total Commander. If you need to run original TC directory menu, you will not be
able to execute them.</span></p>
<p class=MsoNormal style='margin-left:45.0pt'><span style='font-family:Verdana'>&nbsp;</span></p>
<p class=MsoNormal style='margin-left:45.0pt'><span style='font-family:Verdana'>If
you want to run executables with long file names in console, you must use
quotes. This is not required for non-console usage.</span></p>
<p class=MsoNormal style='margin-left:45.0pt'><span style='font-family:Verdana'>If
you want to edit the line before posting it, you can use CTRL SHIFT ENTER.</span></p>
<p class=MsoNormal style='margin-left:45.0pt'><span style='font-family:Verdana'>&nbsp;</span></p>
<p class=MsoNormal style='margin-left:45.0pt'><span style='font-family:Verdana'>You
can NOT run console <i>commands</i> from the system, only if console window is
active. It is pretty pointless to run them from the system, since they are executed
in the context of the current command line directory. The above command can be
executed from the system by changing it to: </span><u><span style='font-family:
"Courier New"'>cmd /K</span></u><span style='font-family:"Courier New"'> dir /b
| sort</span></p>
<p class=MsoNormal style='margin-left:45.0pt'><span style='font-family:"Courier New"'>&nbsp;</span></p>
<p class=MsoNormal style='margin-left:45.0pt'><span style='font-family:Verdana'>In
Setup-&gt;Integration tab you can set custom command to be executed after the
directory is open. The default is set to </span><span style='font-family:"Courier New"'>dir
/w /oGN</span><span style='font-family:Verdana'> so you are able to see
contents of the folder after you change to it. You can change this to whatever
you like (note that errors here will not be detected). If you want to display
the folder in empty console window you can change this entery to   </span><span
style='font-family:"Courier New"'>cls &amp; dir /w /oGN</span></p>


<p class=MsoNormal style='margin-left:36.0pt'><span style='font-family:"Verdana Ref"'>&nbsp;</span></p>
<p class=MsoNormal style='margin-left:36.0pt'><span style='font-family:"Verdana Ref"'>&nbsp;</span></p>
Line 366: Line 463:
can specify an icon to display beside menu item. Icons are 12x12 with first
can specify an icon to display beside menu item. Icons are 12x12 with first
pixel holding transparent color. You have more then 100 icons included in the
pixel holding transparent color. You have more then 100 icons included in the
package for you private use.</span></p>
package for you private use. Use relative path names when setting icons if you
want them to be portable.</span></p>


<p class=MsoNormal><span style='font-family:"Verdana Ref"'>&nbsp;</span></p>
<p class=MsoNormal><span style='font-family:"Verdana Ref"'>&nbsp;</span></p>
Line 385: Line 483:
<table class=MsoTableGrid border=0 cellspacing=0 cellpadding=0
<table class=MsoTableGrid border=0 cellspacing=0 cellpadding=0
  style='margin-left:44.6pt;border-collapse:collapse'>
  style='margin-left:44.6pt;border-collapse:collapse'>
<tr style='height:20.65pt'>
  <td width=253 style='width:190.05pt;background:silver;padding:0cm 5.4pt 0cm 5.4pt;
  height:20.65pt'>
  <p class=MsoNormal><b><span style='font-size:10.0pt;font-family:Verdana'>PSEUDOVARIABLE</span></b></p>
  </td>
  <td width=479 style='width:359.35pt;background:silver;padding:0cm 5.4pt 0cm 5.4pt;
  height:20.65pt'>
  <p class=MsoNormal><b><span style='font-size:10.0pt;font-family:Verdana'>TYPICAL
  LOCATION</span></b></p>
  </td>
</tr>
  <tr style='height:14.0pt'>
  <tr style='height:14.0pt'>
   <td width=253 style='width:190.05pt;padding:0cm 5.4pt 0cm 5.4pt;height:14.0pt'>
   <td width=253 style='width:190.05pt;padding:0cm 5.4pt 0cm 5.4pt;height:14.0pt'>
Line 391: Line 500:
   <td width=479 style='width:359.35pt;padding:0cm 5.4pt 0cm 5.4pt;height:14.0pt'>
   <td width=479 style='width:359.35pt;padding:0cm 5.4pt 0cm 5.4pt;height:14.0pt'>
   <p class=MsoNormal><span style='font-size:10.0pt;font-family:Verdana'>Application
   <p class=MsoNormal><span style='font-size:10.0pt;font-family:Verdana'>Application
   Data, new for NT4</span></p>
   Data</span></p>
   </td>
   </td>
  </tr>
  </tr>
Line 405: Line 514:
  <tr style='height:14.0pt'>
  <tr style='height:14.0pt'>
   <td width=253 style='width:190.05pt;padding:0cm 5.4pt 0cm 5.4pt;height:14.0pt'>
   <td width=253 style='width:190.05pt;padding:0cm 5.4pt 0cm 5.4pt;height:14.0pt'>
   <p class=MsoNormal><span style='font-size:10.0pt;font-family:"Courier New"'>COMMON_DOCUMENTS</span></p>
   &amp;lt;p class=MsoNormal><span style='font-size:10.0pt;font-family:"Courier New"'>COMMON_DOCUMENTS</span></p>
   </td>
   </td>
   <td width=479 style='width:359.35pt;padding:0cm 5.4pt 0cm 5.4pt;height:14.0pt'>
   <td width=479 style='width:359.35pt;padding:0cm 5.4pt 0cm 5.4pt;height:14.0pt'>
Line 525: Line 634:
   <td width=479 style='width:359.35pt;padding:0cm 5.4pt 0cm 5.4pt;height:14.0pt'>
   <td width=479 style='width:359.35pt;padding:0cm 5.4pt 0cm 5.4pt;height:14.0pt'>
   <p class=MsoNormal><span style='font-size:10.0pt;font-family:Verdana'>System
   <p class=MsoNormal><span style='font-size:10.0pt;font-family:Verdana'>System
   Directory (usualy C:\WINDOWS\System32)</span></p&amp;amp;amp;gt;
   Directory (usualy C:\WINDOWS\System32)</span></p>
   </td>
   </td>
  </tr>
  </tr>
Line 541: Line 650:
<p class=MsoNormal style='margin-left:36.0pt'><span style='font-family:Verdana'>&nbsp;</span></p>
<p class=MsoNormal style='margin-left:36.0pt'><span style='font-family:Verdana'>&nbsp;</span></p>


<p class=MsoNormal style='margin-left:36.0pt'><span style='font-family:Verdana'>NOTE:
<p class=MsoNormal style='margin-left:36.0pt'><span style='font-family:Verdana'>TC
Not all above pseudovariables are currently supported in TC but they may be in
NOTE: Not all above pseudovariables are currently supported but they may be in the
future versions.</span></p>
future versions.</span></p>


Line 564: Line 673:
<p class=MsoNormal style='margin-left:36.0pt'><span style='font-family:"Verdana Ref"'>Menu
<p class=MsoNormal style='margin-left:36.0pt'><span style='font-family:"Verdana Ref"'>Menu
Editor is separate application that can be used to edit &amp; organise the
Editor is separate application that can be used to edit &amp; organise the
menu. If you already have Config.ini created by the use of the FavMenu it will
menu. If you already have Config.ini created by FavMenu it will use existing
use existing configuration. If you don’t use TC FavMenu, Menu Editor will try
configuration. If you don’t use FavMenu, Menu Editor will try to find
to find wincmd.ini or ask you on failure.</span></p>
wincmd.ini or ask you on failure.</span></p>


<p class=MsoNormal style='margin-left:36.0pt'><span style='font-size:13.0pt;
<p class=MsoNormal style='margin-left:36.0pt'><span style='font-size:13.0pt;
Line 609: Line 718:
ENTER</span></b></p>
ENTER</span></b></p>


<p class=MsoNormal style='margin-left:45.0pt'><span style='font-family:"Verdana Ref"'>Press
<p class=MsoNormal style='margin-left:45.0pt'><span style='font-family:"Verdana Ref"'>This
ENTER after changing the Command or Icon field to save changes. Selected item
key will redirect you to the next editable field for current item.</span></p>
will</span></p>
 
<p class=MsoNormal style='margin-left:45.0pt'><span style='font-family:"Verdana Ref"'>turn
<b>bold</b> and *** will appear in the dialog to inform you that the item has
been changed, but it is not yet</span></p>
 
<p class=MsoNormal style='margin-left:45.0pt'><span style='font-family:"Verdana Ref"'>saved
to the disk.  Everything will be saved into the menu configuration after you
press SAVE button.</span></p>
 
<p class=MsoNormal style='margin-left:45.0pt'><span style='font-family:"Verdana Ref"'>Button
will be grayed while save is in progress.</span></p>


<p class=MsoNormal style='margin-left:36.0pt'><span style='font-family:"Verdana Ref"'>&nbsp;</span></p>
<p class=MsoNormal style='margin-left:36.0pt'><span style='font-family:"Verdana Ref"'>&nbsp;</span></p>
Line 684: Line 781:


<p class=MsoNormal style='margin-left:36.0pt'><span style='font-family:"Verdana Ref"'>&nbsp;</span></p>
<p class=MsoNormal style='margin-left:36.0pt'><span style='font-family:"Verdana Ref"'>&nbsp;</span></p>
<p class=MsoNormal><span style='font-family:"Verdana Ref"'>&nbsp;</span></p>


<p class=MsoNormal style='margin-left:36.0pt'><span style='font-family:"Verdana Ref"'>-
<p class=MsoNormal style='margin-left:36.0pt'><span style='font-family:"Verdana Ref"'>-
Line 690: Line 789:
<p class=MsoNormal style='margin-left:36.0pt'><span style='font-family:"Verdana Ref"'>&nbsp;</span></p>
<p class=MsoNormal style='margin-left:36.0pt'><span style='font-family:"Verdana Ref"'>&nbsp;</span></p>


<p class=MsoNormal style='margin-left:45.0pt;text-indent:-9.0pt'><span
<p class=MsoNormal style='margin-left:49.7pt;text-indent:-13.7pt'><span
style='font-family:"Verdana Ref"'>-  If you have 2 submenu items with the same
style='font-family:"Verdana Ref"'>-  If you have 2 submenu items with the same
name, in order to see the second one, you must add pseudospace (ALT 0160) at
name, in order to see the second one, you must add pseudospace (ALT 0160) at
Line 715: Line 814:
</span></p>
</span></p>


<p class=MsoNormal style='margin-left:36.0pt'><span style='font-family:"Verdana Ref"'>While
<p class=MsoNormal style='margin-left:48.3pt'><span style='font-family:"Verdana Ref"'>While
building the menu, section will be iterated sequentially up to the first menuX
building the menu, section will be iterated sequentially up to the first menuX
item that doesn't exist. If, for some reason, your TC menu has &quot;hole&quot;
item that doesn't exist. If, for some reason, your TC menu has &quot;hole&quot;
in a sequence, script will rise errors or will not display the complete menu. </span></p>
in a sequence, script will rise errors or will not display the complete menu. </span></p>


<p class=MsoNormal style='margin-left:36.0pt'><span style='font-family:"Verdana Ref"'>This
<p class=MsoNormal style='margin-left:48.3pt'><span style='font-family:"Verdana Ref"'>This
menu, for instance will not work:</span></p>
menu, for instance will not work:</span></p>


Line 739: Line 838:
<p class=MsoNormal style='margin-left:36.0pt'><span style='font-family:"Verdana Ref"'>&nbsp;</span></p>
<p class=MsoNormal style='margin-left:36.0pt'><span style='font-family:"Verdana Ref"'>&nbsp;</span></p>


<p class=MsoNormal style='margin-left:36.0pt'><span style='font-family:"Verdana Ref"'>To
<p class=MsoNormal style='margin-left:48.3pt'><span style='font-family:"Verdana Ref"'>To
make sure your menu is not messed-up, open TC Favorites configuration and click
make sure your menu is not messed-up, open TC Favorites configuration and click
OK button. TC will rebuild the menu sequentially. If you still have problems, delete
OK button. TC will rebuild the menu sequentially. If you still have problems, delete
Line 754: Line 853:
<p class=MsoNormal style='margin-left:36.0pt'><span style='font-family:"Verdana Ref"'>&nbsp;</span></p>
<p class=MsoNormal style='margin-left:36.0pt'><span style='font-family:"Verdana Ref"'>&nbsp;</span></p>


<p class=MsoNormal style='margin-left:36.0pt'><span style='font-family:"Verdana Ref"'>&nbsp;</span></p>
<p class=MsoNormal style='margin-left:36.0pt'><span style='font-family:"Verdana Ref"'>
You can setup <u>Win</u> key shortcuts by manualy editing <i>Config.ini </i>:</span></p>


<p class=MsoNormal style='margin-left:36.0pt'><b><span style='font-size:14.0pt;
<p class=MsoNormal style='margin-left:36.0pt;text-indent:36.0pt'><span
font-family:"Verdana Ref"'>SCRIPT MERGING</span></b></p>
style='font-family:"Verdana Ref"'>Edit <i>tcKey</i> value in <i>TCFavMenu</i>
section. U can </span><span style='font-family:Verdana'>set</span><span
style='font-family:"Courier New"'>  </span><span style='font-size:13.0pt;
font-family:"Courier New"'>Lwin  or  Rwin  or  #letter.</span><span
style='font-family:"Courier New"'> </span></p>


<p class=MsoNormal style='margin-left:36.0pt'><span style='font-family:"Verdana Ref"'>If
you are AutoHotKey user, you can include Favmenu and Editor in you own scripts.</span></p>
<p class=MsoNormal style='margin-left:36.0pt'><span style='font-family:"Verdana Ref"'>This
is an example:</span></p>
<p class=MsoNormal style='margin-left:36.0pt'><span style='font-family:"Verdana Ref"'>&nbsp;</span></p>
<p class=MsoNormal style='margin-left:72.0pt'><span style='font-family:"Courier New"'>     g := 1</span></p>
<p class=MsoNormal style='margin-left:72.0pt'><span style='font-family:"Courier New"'>     SetWorkingDir
&lt;path to favmenu&gt;</span></p>
<p class=MsoNormal style='margin-left:72.0pt'><span style='font-family:"Courier New"'>     g := FavMenu_Init(g, &quot;FavMenuSubmenu&quot;, false)</span></p>
<p class=MsoNormal style='margin-left:72.0pt'><span style='font-family:"Courier New"'>     g:= Editor_Init(g, “”, false)</span></p>
<p class=MsoNormal style='margin-left:72.0pt'><span style='font-family:"Courier New"'>&nbsp;</span></p>
<p class=MsoNormal style='margin-left:72.0pt'><span style='font-family:"Courier New"'>     Menu,
Tray, Add, FavMenu :FavMenuSubmenu</span></p>
<p class=MsoNormal style='margin-left:72.0pt'><span style='font-family:"Courier New"'>Return</span></p>
<p class=MsoNormal style='margin-left:72.0pt'><span style='font-family:"Courier New"'>&nbsp;</span></p>
<p class=MsoNormal style='margin-left:72.0pt'><span style='font-family:"Courier New"'>&nbsp;</span></p>
<p class=MsoNormal style='margin-left:72.0pt'><span style='font-family:"Courier New"'>#Include
&lt;path to Favmenu &amp; Editor&gt;</span></p>
<p class=MsoNormal style='margin-left:72.0pt'><span style='font-family:"Courier New"'>#Include
FavMenu.ahk</span></p>
<p class=MsoNormal style='margin-left:72.0pt'><span style='font-family:"Courier New"'>#Include
Editor.ahk</span></p>
<p class=MsoNormal style='margin-left:36.0pt'><span style='font-family:"Courier New"'>&nbsp;</span></p>
<p class=MsoNormal style='margin-left:36.0pt'><i><span style='font-family:Verdana'>Init</span></i><span
style='font-family:Verdana'> functions must be called in your autorun section
to initialise scripts. Parameters are:</span></p>
<p class=MsoNormal style='margin-left:180.0pt;text-indent:-108.0pt'><i><span
style='font-family:Verdana'>ByRef Param1</span></i><span style='font-family:
Verdana'>     last GUI number used. This is automatically, just set the g to 1
and add g as a first parameter in every next Init function call. Function will
return new gui number incremented with the count of GUIs used in the script</span></p>
<p class=MsoNormal style='margin-left:180.0pt;text-indent:-108.0pt'><i><span
style='font-family:Verdana'>Tray submenu</span></i><span style='font-family:
Verdana'>     Since you can run several scripts together, you set here the Tray
submenu that script will use for its own menu enteries. After that, add it in
the tray with the <i>Menu</i> command. If you leave this parameter empty, the
menu will be added to the Tray itself.</span></p>
<p class=MsoNormal style='margin-left:180.0pt;text-indent:-108.0pt'><i><span
style='font-family:Verdana'>Standalone</span></i><span style='font-family:Verdana'>         Set
this to false. This flag notifies the script that it is not used standalone but
as a part of merged environment.</span></p>
<p class=MsoNormal><span style='font-family:"Courier New"'>&nbsp;</span></p>
<p class=MsoNormal><span style='font-family:"Courier New"'>     </span><span
style='font-family:Verdana'>From this point you can use following functions:</span></p>
<p class=MsoNormal><span style='font-family:"Courier New"'>&nbsp;</span></p>
<p class=MsoNormal><span style='font-family:"Courier New"'>          FavMenu_Create()        Show
the FavMenu. </span></p>
<p class=MsoNormal><span style='font-family:"Courier New"'>          Editor_Run()            Starts
the editor  </span></p>
<p class=MsoNormal><span style='font-family:"Courier New"'>          </span></p>
<p class=MsoNormal><span style='font-family:"Courier New"'>          FavMenu_Options_*       set
ini option, replace * with ini value from [TCFavMenu] section</span></p>
<p class=MsoNormal><span style='font-family:"Courier New"'>          Editor_Options_*        set
ini option, replace * with ini value from [Editor] section</span></p>
<p class=MsoNormal><span style='font-family:"Courier New"'>&nbsp;</span></p>
<p class=MsoNormal><span style='font-family:"Courier New"'>     </span></p>
7
<p class=MsoNormal><span style='font-family:Verdana'>        For instance, this
will set Win + P to show FavMenu at thre mouse position and Win + N to show the
Editor:</span></p>
<p class=MsoNormal><span style='font-family:"Courier New"'>     #p:</span></p>
<p class=MsoNormal><span style='font-family:"Courier New"'>          t  := FavMenu_Options_MenuPos      ;save current option</span></p>
<p class=MsoNormal><span style='font-family:"Courier New"'>          FavMenu_Options_MenuPos  := 1      ;mouse postion</span></p>
<p class=MsoNormal><span style='font-family:"Courier New"'>          FavMenu_Create()                  ;show
the menu</span></p>
<p class=MsoNormal><span style='font-family:"Courier New"'>          FavMenu_Options_MenuPos  := t      ;restore saved option</span></p>
<p class=MsoNormal><span style='font-family:"Courier New"'>     Return</span></p>
<p class=MsoNormal><span style='font-family:"Courier New"'>&nbsp;</span></p>
<p class=MsoNormal><span style='font-family:"Courier New"'>     #n:</span></p>
<p class=MsoNormal><span style='font-family:"Courier New"'>          Editor_Run()</span></p>
<p class=MsoNormal><span style='font-family:"Courier New"'>     return</span></p>
<p class=MsoNormal><span style='font-family:"Courier New"'>                    </span></p>
<p class=MsoNormal><span style='font-family:"Courier New"'>&nbsp;</span></p>
<p class=MsoNormal style='text-indent:36.0pt'><span style='font-family:Verdana'>If
you want to know more about script merging download my article:</span></p>
<p class=MsoNormal style='text-indent:36.0pt'><span style='font-family:Verdana'>
Autohotkey: Constructive Language Criticism &amp; Script Merging:
http://www.r-moth.com/code/Article.zip</span></p>
<p class=MsoNormal style='text-indent:36.0pt'><span style='font-family:"Courier New"'>&nbsp;</span></p>
<p class=MsoNormal><span style='font-family:"Courier New"'>&nbsp;</span></p>
<p class=MsoNormal style='margin-left:36.0pt'><b><span style='font-size:14.0pt;
font-family:"Verdana Ref"'>TO DO</span></b></p>
<p class=MsoNormal><b><span style='font-family:"Verdana Ref"'>&nbsp;</span></b></p>
<p class=MsoNormal style='margin-left:54.0pt;text-indent:-18.0pt'><span
style='font-family:"Verdana Ref"'>-<span style='font:7.0pt "Times New Roman"'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
</span></span><span style='font-family:"Verdana Ref"'>Settings to include
desired non-standard windows, by your choice, like Office dialogs,
Start-&gt;Run, console, and basicly anything you would like to paste path into.</span></p>
<p class=MsoNormal style='margin-left:54.0pt;text-indent:-18.0pt'><span
style='font-family:"Verdana Ref"'>-<span style='font:7.0pt "Times New Roman"'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
</span></span><span style='font-family:"Verdana Ref"'>Larger icons</span></p>
<p class=MsoNormal style='margin-left:54.0pt;text-indent:-18.0pt'><span
style='font-family:"Verdana Ref"'>-<span style='font:7.0pt "Times New Roman"'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
</span></span><span style='font-family:"Verdana Ref"'>Support for standard
“Browse for folders” dialogs</span></p>
<p class=MsoNormal style='margin-left:54.0pt;text-indent:-18.0pt'><span
style='font-family:"Verdana Ref"'>-<span style='font:7.0pt "Times New Roman"'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
</span></span><span style='font-family:"Verdana Ref"'>“Add current directory”
in dialogs also.</span></p>
<p class=MsoNormal style='margin-left:36.0pt'><span style='font-family:"Verdana Ref"'>&nbsp;</span></p>
<p class=MsoNormal style='margin-left:36.0pt'><span style='font-family:"Verdana Ref"'>&nbsp;</span></p>
<p class=MsoNormal style='margin-left:36.0pt'><span style='font-family:"Verdana Ref"'>&nbsp;</span></p>


<p class=MsoNormal style='margin-left:36.0pt'><b><span style='font-size:14.0pt;
<p class=MsoNormal style='margin-left:36.0pt'><b><span style='font-size:14.0pt;
Line 925: Line 873:


<p class=MsoNormal style='margin-left:36.0pt'><span style='font-family:"Verdana Ref"'>in
<p class=MsoNormal style='margin-left:36.0pt'><span style='font-family:"Verdana Ref"'>in
Autohotkey - www.autohotkey.com></span></p>
<a href="http://www.autohotkey.com/">AutoHotKey</a> &lt;www.autohotkey.com&gt;</span></p>


<p class=MsoNormal style='margin-left:36.0pt'><span style='font-family:"Verdana Ref"'>using
<p class=MsoNormal style='margin-left:36.0pt'><span style='font-family:"Verdana Ref"'>using
Line 935: Line 883:


<p class=MsoNormal style='margin-left:36.0pt'><span style='font-family:"Verdana Ref"'>e-mail:
<p class=MsoNormal style='margin-left:36.0pt'><span style='font-family:"Verdana Ref"'>e-mail:
        miodrag.milic@gmail.com</span></p>
        <a href="mailto:miodrag.milic@gmail.com">miodrag.milic@gmail.com</a></span></p>


<p class=MsoNormal style='margin-left:36.0pt'><span style='font-family:"Verdana Ref"'>homepage:
<p class=MsoNormal style='margin-left:36.0pt'><span style='font-family:"Verdana Ref"'>homepage:
  code.r-moth.com  |  www.r-moth.com  
  <a href="http://code.r-moth.com/">code.r-moth.com</a>  |  <a
|  r-moth.deviantart.com</span></p>
href="Utils/_Scripts/autohotkey/TC/TcFavMenu/Utils/_Scripts/autohotkey/TC/TcFavMenu/www.r-moth.com">www.r-moth.com</a>  
<a href="http://r-moth.deviantart.com/">r-moth.deviantart.com</a></span></p>


<p class=MsoNormal style='margin-left:36.0pt'><span style='font-family:"Verdana Ref"'>&nbsp;</span></p>
<p class=MsoNormal style='margin-left:36.0pt'><span style='font-family:"Verdana Ref"'>&nbsp;</span></p>

Revision as of 14:21, 5 September 2006

FavMenu

& Menu Editor

                      for Windows XP & 2K

 

 

OVERVIEW

 

FavMenu is Windows OS enhancer and application launcher. It stores information about your favorite folders and executables and let you quickly use your favorites

within system dialogs (Open/Save, Browse For Folder, Office2003 dialogs),  Console (cmd.exe),  Widows Explorer  and  Total Commander.

 

Format of the menu configuration file is compatibile with the Total Commander file manager directory menu, and was originaly written to work as addon for this file manager. All features of the TC directory menu are supported, including plugins and pseudovariables. Furthermore, TC doesn’t need to be started.

 

Menu Editor can be used to create, edit, delete and organise menu items. This is also complete replacement of TC’s internal directory menu  editor witch adds many new options. It can be used together with FavMenu or separate.

 

Both programs use the same ini file to store configuration, Config.ini.

 

 

INSTALLATION

 

You can run applications either by starting .exe or .ahk  files. To run .ahk, you must have <a href="http://www.autohotkey.com/">AutoHotKey</a> installed.

If you choose to run exe versions you can safely delete *.ahk files and \include folder.

 

If you want Total Commander executable and its configuration file wincmd.ini to be automaticaly recognised start FavMenu from within TC (not required if you installed TC normally or you have COMMANDER_PATH environment variable set in the system).

Make sure you have something in the TC directory menu before start using the program.

 

 

FAVMENU  FEATURES

 

 

- Favmenu supports several types of menu items.  Possible menu items are ( full TC compatibility):

 

MENU ITEM TYPE

COMMAND

EXAMPLES

PATH

cd path

cd c:\program files    cd %SYSTEMROOT%\System32

TC PLUGIN

cd \\\plugin

cd \\\Uninstaller      cd \\\Registry\HKEY_CURRENT_USER\Sofware

PSEUDOVARIABLE

cd %$var%\path

cd  %$DESKTOP%          cd %$PERSONAL%\My Pictures

EXECUTABLE

path_to_exectable

%$WINDOWS%\System32\Notepad.exe 

c:\boot.ini            will be resolved via associations

%w%%s%%n%              where w=C:\windows, s=\system32, n=notepad.exe

%UTILS%\Edit Plus\Editplus.exe "c:\boot.ini" "c:\1.txt"

 

 

- Enter (on menu item)

     If

·        Open/Save, Browse For Folder or Office2003 dialog  is  active :

    

SELECTION

ACTION

PATH

change the path in the dialog

TC PLUGIN

open or activate TC

EXECUTABLE

run the application or file

 

·        Console window is active:                change the current directory if path is selected or execute application / dos command

·        Any other window is active:             open or activate file manager for folders, launch an executable otherwise.

 

 

- CTRL + Enter (on menu item)

Open Properties dialog with selected item. Move around with buttons. You can change title, command and set icon.  Press Save on every individual item to save changes (title will change to notify you that save is complete).  It is much faster to use this dialog then TC's editor for single item change.

 

If Properties dialog is open you can use Favmenu to change the currently displayed item by calling the menu and pressing <ENTER>. So favmenu can not be used until Properties dialog is closed.

 

- SHIFT + Enter (on menu item)

  Open selected item in new TC tab

 

- CTRL + SHIFT + Enter (on menu item)

  Send path of the selected item to the active window.

 

- Setup dialog

On first run, Setup dialog will search for TC location in the registry and if not found it will also try  %COMMANDER_PATH%  environment variable ( if not present in the system, this variable will be instantiated by TC privately)  If setup can not find Total Commander it will use Windows Explorer as file manager.

 

If Favmenu didn’t find your Total Commander, specify full paths to  totalcmd.exe  and  wincmd.ini  yourself.

In case you want to start TC with parameters, create link to the totalcmd.exe and edit link info as you desire. After that specify the path to the totalcmd.lnk instead totalcmd.exe.

 

You can use environment variables to specify exe & ini location.

You can call this Setup dialog via the tray menu.

 

          - Current directories,   Editor  &   “Add current dir”  items

If Total Ccommander is open, current left & right folders will be displayed at first 2 positions. If they are the same only 1 will be visible.  If menu is called with TC active, this will not be displayed.

 

Add current dir item works NOT only if TC is active. It is also supported in all system dialogs (except Office) and in Console. This will surely work for all hard disk folders but you may have problems with so called virtual folders since many of them don’t have physical representation on the hard disk. You can’t use Desktop folders for now, but that may be added in the future.

 

Configure… item (Editor) can also be set as a last item in the menu. This method is preferable to set the Editor,  since you will not have double configuration enteries when using TCs original directory menu, because this item is not contained in the menu declaration. This also ensures that this item is always last in the menu.

 

All 3 special items can be enabled/disabled via Setup dialog.

 

- Automatic Refresh

Menu is refreshed on every call, so if you update your favorites in TC changes will be seen immediately.

 

- Office Dialogs

Solid support to Office 2003 Open/Save dialogs (it doesn't work if ListView is focused)

  Make sure your carret is in the edit box next to the   File Name  and you will not have any problems.

 

- Console Support

If cmd.exe is active window selecting path from FavMenu will change the path in the command line. If you select executable from the menu, it will be typed on the command line and executed. This allows console commands and applications to be added to the FavMenu.

For instance, you can create menu item: dir /b | sort

Menu items pointing to console commands (not applications) are NOT compatibile with Total Commander. If you need to run original TC directory menu, you will not be able to execute them.

 

If you want to run executables with long file names in console, you must use quotes. This is not required for non-console usage.

If you want to edit the line before posting it, you can use CTRL SHIFT ENTER.

 

You can NOT run console commands from the system, only if console window is active. It is pretty pointless to run them from the system, since they are executed in the context of the current command line directory. The above command can be executed from the system by changing it to: cmd /K dir /b | sort

 

In Setup->Integration tab you can set custom command to be executed after the directory is open. The default is set to dir /w /oGN so you are able to see contents of the folder after you change to it. You can change this to whatever you like (note that errors here will not be detected). If you want to display the folder in empty console window you can change this entery to   cls & dir /w /oGN

 

- Icons

You can specify an icon to display beside menu item. Icons are 12x12 with first pixel holding transparent color. You have more then 100 icons included in the package for you private use. Use relative path names when setting icons if you want them to be portable.

 

- Pseudovariables

  Similar to environement variables, but has slightly different syntax (%$var%, instead %var%).

  Currently supported:

       

PSEUDOVARIABLE

TYPICAL LOCATION

APPDATA

Application Data

COMMON_APPDATA

All Users\Application Data

&lt;p class=MsoNormal>COMMON_DOCUMENTS

All Users\Documents

DESKTOP

C:\Documents and Settings\username\Desktop

FONTS

C:\Windows\Fonts

LOCAL_APPDATA

Non roaming, user\Local Settings\Application Data

MYMUSIC

My Music folder

MYPICTURES

My Pictures

PERSONAL

My Documents

PROGRAM_FILES_COMMON

C:\Program Files\Common

PROGRAM_FILES

C:\Program Files

PROGRAMS

C:\Documents and Settings\username\Start Menu\Programs

RESOURCES

%windir%\Resources\, For theme and other windows resources.

STARTMENU

C:\Documents and Settings\username\Start Menu

STARTUP

C:\Documents and Settings\username\Start Menu\Programs\Startup.

SYSTEM

System Directory (usualy C:\WINDOWS\System32)

WINDOWS

Windows Directory (usualy c:\Windows)

 

TC NOTE: Not all above pseudovariables are currently supported but they may be in the future versions.

 

 

MENU EDITOR FEATURES

 

Menu Editor is separate application that can be used to edit & organise the menu. If you already have Config.ini created by FavMenu it will use existing configuration. If you don’t use FavMenu, Menu Editor will try to find wincmd.ini or ask you on failure.

 

If you want to edit single item the fastest way is to use FavMenu’s itegrated Properties dialog (CTRL ENTER).

 

Editor can be added to the end of the Favmenu menu via its Setup dialog.

 

- SHIFT Up/Down

Move an item, or entire submenu.

While moving, when you encounter submenu, if it is expanded, current item will become its child or will be removed from it.

Otherwise, item will jump over the submenu.

 

- F2

Change the title of an item. Use & to set a shortcut and to specify separator.

 

- ENTER

This key will redirect you to the next editable field for current item.

 

- INSERT | SHIFT INSERT

Press insert to add new menu item after currently selected. Hold shift to insert new submenu.

When the last item of the submenu is deleted, submenu will be turned to simple menu item.

 

- DELETE

Remove the item or complete submenu.

 

- Browse buttons

>> buttons can be used to speed up editing.

If the first word in the command field is “cd”, browse for directory dialog will be displayed, otherwise, browse for file. You must still press ENTER to save changes.

 

- Settings

If settings tab in Menu Editor is hidden, use CTRL TAB to select it. You can change the look and behavior of the editor here.

 

 

NOTES

You may encounter some problems related to Total Commander interaction with the menu. It is the best to avoid using TC editor at all, since FavMenu Editor is much faster and functional plus TC editor will delete menu information about your icons if you set them. You can use “Add current dir” TC option without any problems.

 

 

-  If you have empty sub menus, script will not work.

 

-  If you have 2 submenu items with the same name, in order to see the second one, you must add pseudospace (ALT 0160) at the end of the title of the second one. For all subsequent items with the same name add additional pseudospace.

 

-  Menu is collected from the wincmd.ini [DirMenu] section. Format of this menu is:

 

            menuN =  title | - | -title | --

            cmdN  =  cd <path|plugin|pseudovarialbe> | executable

           

While building the menu, section will be iterated sequentially up to the first menuX item that doesn't exist. If, for some reason, your TC menu has "hole" in a sequence, script will rise errors or will not display the complete menu.

This menu, for instance will not work:

 

            [DirMenu]

       menu1=item1

       menu2=item2

       menu4=item3

 

To make sure your menu is not messed-up, open TC Favorites configuration and click OK button. TC will rebuild the menu sequentially. If you still have problems, delete everything (backup wincmd.ini first) and create your menu again. And if you still have problems (very unlikely), visit developing forum to report this. If you have any other mistakes in menu syntax script will not work.

 

-  Win9x systems are not and will not be tested. If it works, cool, but if not,  don't ask for support.

 

-  You can setup Win key shortcuts by manualy editing Config.ini :

Edit tcKey value in TCFavMenu section. U can set  Lwin  or  Rwin  or  #letter.


ABOUT

 

Created by Miodrag Milic

in <a href="http://www.autohotkey.com/">AutoHotKey</a> <www.autohotkey.com>

using Windows XP Pro

 

 

e-mail:         <a href="mailto:miodrag.milic@gmail.com">miodrag.milic@gmail.com</a>

homepage:   <a href="http://code.r-moth.com/">code.r-moth.com</a>  |  <a href="Utils/_Scripts/autohotkey/TC/TcFavMenu/Utils/_Scripts/autohotkey/TC/TcFavMenu/www.r-moth.com">www.r-moth.com</a>   |  <a href="http://r-moth.deviantart.com/">r-moth.deviantart.com</a>

 

Belgrade, Jun 2006