Is there anything I missed that causes it not to work the first time, intermittently?
Code: Select all
Drives := "CDE"
Loop Parse, Drives
if FileExist(A_LoopField ":\Dropbox"){
Drive:=A_Loopfield
break
}
GroupAdd, SaveDialogs, ahk_class CabinetWClass
GroupAdd, SaveDialogs, ahk_class WorkerW
GroupAdd, SaveDialogs, Browse...
GroupAdd, SaveDialogs, Open
#If WinActive("ahk_group SaveDialogs")
::;ahk::
SendInput %Drive%:\Dropbox\AHK{Enter}
return