- Send + or cm_SpreadSelection (521) // Opens ahk_class TCOMBOINPUT
focus is now in 'ClassNN: Edit1'
type '>0-cc'
press OK-button 'ClassNN TButton3' //closes TCOMBOINPUT
Send ctrl+m //Opens ahk_class TMultiRename
press Start-button 'ClassNN: TButton4'
wait 2 Seconds for renaming to complete
send ESC or 'ClassNN: TButton3' //closes TMultiRename
Code: Select all
F9::
IfWinActive, ahk_class TTOTAL_CMD
{
SendMessage 1075, 521, , , ahk_class TTOTAL_CMD
WinWaitActive, ahk_class TCOMBOINPUT
ControlSend, Edit1, >groupname
WinWaitClose
WinWait ahk_class TMultiRename
Send, ^m
ControlClick, ClassNN TButton4, ahk_class TMultiRename, , Left, 1
;sleep, 2000
Send, {ESC}
WinWaitClose
}
Return
it's not working at all. it opens the 'selection' window and after 4 or 5 seconds writes the 'groupname' in 'Edit1'. that's it. any ideas?[/code]
edit: the goal is to do this for all the subfolders in a directory: change to one dir, select, rename, switch back to the next dir, select, rename and repeat...