AutoHotkey: Reset the MultiRenameTool automatically: Difference between revisions

From TotalcmdWiki
Jump to navigation Jump to search
No edit summary
(Added category AutoHotkey scripts)
 
(5 intermediate revisions by 2 users not shown)
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:


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


<BR>
<BR>
Line 14: Line 30:
<BR>Back to [[AutoHotkey]]<BR>
<BR>Back to [[AutoHotkey]]<BR>


[[Category:AutoHotkey scripts|Reset the MultiRenameTool automatically]]
[[de:AutoHotkey: Setze die Einstellungen des Mehrfach Umbenennen Tools automatisch zurück]]
[[de:AutoHotkey: Setze die Einstellungen des Mehrfach Umbenennen Tools automatisch zurück]]

Latest revision as of 11:28, 31 May 2008

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 WinActive( "ahk_class TMultiRename" )
{
	Send {F2}{Home}{Down}{Enter}
}
Return





Back to AutoHotkey