I really really hate the SHBrowseForFolder() thing they give you in Windows. How about this for an OpenFolder Hack using the standard FileOpen Dialog? Might seem different at first but any users who like hotkey gizmos might not mind Alt-RightClicking the Mouse as alternative to using that lame folder browser!!
ahk script that demonstrates folder selected by Alt Right Clicking the mouse
ahk script that demonstrates folder selected by Alt Right Clicking the mouse
Code
; use FiLeOpen Dialog instead of that stupid BrowseForFolder thing!
#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.
selectopen = 1
FileSelectFile,SelectedFolder,2,%A_MyDocuments%\*.*,Alt Right Mouse Click to select Folder,All Files(*.*)
selectopen = 0
If ErrorLevel
ExitApp
!RButton::
If %selectopen%
{
Clipboard =
Send ^c
ClipWait,2
SelectedFolder = %Clipboard%
Send {Esc}
MsgBox, 0, , Folder Selected is %Clipboard%
ExitApp
}



