AutoHotkey: Reset the MultiRenameTool automatically: Difference between revisions

From TotalcmdWiki
Jump to navigation Jump to search
No edit summary
(hotkey solution added)
Line 1: Line 1:
This script will wait for the Multirename Tool to appear, and reset the data automatically.
When you open the Multi Rename Tool usually the last used values of the current session are restored. That may be not desired. To prevent this here two solutions:


  #Persistent
== Solution 1 ==
 
 
  ;This script will wait for the Multirename Tool to appear, and reset the data automatically.
   
   
  loop
  #Persistent
 
  loop
  {
  WinWait ahk_class TMultiRename
  Send {F2}{Home}{Down}{Enter}
  WinWaitClose
  }
 
 
 
== Solution 2 ==
 
; If the MRT-WIndow is opened it is sufficient to press [Alt]+[Backspace] to
; load the default settings.
  ~!BS::
  if not WinActive ( "ahk_class TMultiRename" )
    Return
  {
  {
WinWait ahk_class TMultiRename
  Send {F2}{Home}{Down}{Enter}
  Send {F2}{Home}{Down}{Enter}
  WinWaitClose
  WinWaitClose
  }
  }
Return


<BR>
<BR>

Revision as of 13:10, 27 September 2005

When you open the Multi Rename Tool usually the last used values of the current session are restored. That may be not desired. To prevent this here two solutions:

Solution 1

;This script will wait for the Multirename Tool to appear, and reset the data automatically.

 #Persistent
 
 loop
 {
 	WinWait ahk_class TMultiRename
 	Send {F2}{Home}{Down}{Enter}
 	WinWaitClose
 }


Solution 2

; If the MRT-WIndow is opened it is sufficient to press [Alt]+[Backspace] to 
; load the default settings. 
~!BS::
 if not WinActive ( "ahk_class TMultiRename" )
   Return
{
	 
	Send {F2}{Home}{Down}{Enter}
	WinWaitClose
}
Return





Back to AutoHotkey