AutoHotkey: Drives Tooltip: Difference between revisions

From TotalcmdWiki
Jump to navigation Jump to search
No edit summary
 
mNo edit summary
Line 25: Line 25:
  }
  }
  Return
  Return
{{backlink|AutoHotkey|AutoHotkey}}
{{de|AutoHotkey: Erzeuge Ordner aus Dateinamen}}

Revision as of 08:07, 24 May 2006

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