AutoHotKey: Explorer Directory Tree

From TotalcmdWiki
Revision as of 22:54, 1 June 2008 by White (talk | contribs) (Added category AutoHotkey scripts)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

This script replaces Directory Tree box with the Windows folder tree.

;Explorer directory tree for Total Commander
;Author : Vigk
#noEnv
#singleInstance, force
!F10::
	ifWinNotActive, ahk_class TTOTAL_CMD
	{
		send {!F10}
		return
	}
	controlGetText, cdir, TMypanel2
	stringTrimRight, cdir, cdir, 1
	fileSelectFolder, sdir, *%cdir%, 2, Directory Tree
	ifEqual, sdir, , return
	postMessage, 1075, 2912, , , ahk_class TTOTAL_CMD
	sleep 40			; waits for the text box to be created
	controlSetText, TInEdit.UnicodeClass1, %sdir%, ahk_class TTOTAL_CMD
	controlSend, TInEdit.UnicodeClass1, {Enter}, ahk_class TTOTAL_CMD
return

Back to AutoHotkey