skrommel:
is there any reason why you used this:
Run,Explorer.exe /e`,%drive%:\
instead of this? (this is how it says to do it in the ahk help file)
Run,explore %drive%:\
Also, I had to get rid of those TrayTips...they make my
very large hidden taskbar fly out halfway across the screen.
I would rather there be no message to the user at all when it is successful...just do what it is supposed to do and open it...and give a message box if it fails instead of a traytip.
new version with changes:
#NoEnv
#SingleInstance,Force
SetBatchLines,-1
Loop,% Asc("Z")-Asc("A")+1
{
drive:=Chr(Asc("A")+A_Index-1)
Hotkey,RCtrl & %drive%,OPEN
}
Return
OPEN:
StringTrimLeft,drive,A_ThisHotkey,8
IfNotExist, %drive%:\
MsgBox You do not have an %drive% drive.
Else
{
Run,explore %drive%:\
}
Return
Of course this compact version introduces one of the errors of English grammar that annoys me the most into the message box (a/an mis-usage).