AutoHotkey: Drives Tooltip: Difference between revisions

From TotalcmdWiki
Jump to navigation Jump to search
mNo edit summary
(Added category AutoHotkey scripts)
 
Line 28: Line 28:
{{backlink|AutoHotkey|AutoHotkey}}
{{backlink|AutoHotkey|AutoHotkey}}
{{de|AutoHotkey: Tooltip für Laufwerke}}
{{de|AutoHotkey: Tooltip für Laufwerke}}
[[Category:AutoHotkey scripts|Drives Tooltip]]

Latest revision as of 11:09, 31 May 2008

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