AutoHotkey: Drives Tooltip

From TotalcmdWiki
Jump to: navigation, search

This script will show a tooltip with short info about the drives when howering with the mouse over the drives toolbar.

#Persistent

SetTimer subTimer, 500

subTimer:
	if WinActive( "ahk_class TTOTAL_CMD" )
	{
		MouseGetPos,,,,sControl
		if (InStr( sControl, "TDrivePanel"))
		{
			sToolTip := ""
			DriveGet sDriveList, LIST
			loop PARSE, sDriveList
				{
				DriveGet, sLabel, LABEL, %A_LoopField%:
				DriveGet, sType, TYPE, %A_LoopField%:
				sToolTip = %sToolTip%%A_LoopField%: %sType%`; %sLabel%`n
				}
			ToolTip %sToolTip%
		}
		else
			ToolTip
	}
	Return

Back to AutoHotkey