After messing around I decided staying away from the mouse may be better.
This seems like a simple approach. You may want to stick in an #IfWinActive
but I don't use Control-UpArrow much that I can remember. With calls to
EmptyWorkingSet it hangs in the tray at around 350 KB.
Edit: added an error notifier ToolTip for drive letters than don't exist.
It disappears after 3 seconds.
; KeyDrive - another approach to opening a drive with a hotkey
; Author - MilesAhead
; Usage - Press Control Up Arrow, and when prompted, press a letter.
; if that drive letter exists it should open in Explorer.
#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
SendMode Input ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.
ToolTip,Press a letter to open Explorer to that drive,(A_ScreenWidth / 2) - 100,A_ScreenHeight / 2
dr := keypress . ":\"
ToolTip,%keypress%:\ Drive Does Not Exist!,(A_ScreenWidth / 2) - 100,A_ScreenHeight / 2
Return DllCall("psapi.dll\EmptyWorkingSet", "UInt", -1)
MsgBox, 4160, KeyDrive, Press Control Up Arrow then a letter to Open that drive in Explorer, 10