The following worked to open multiple files of different file types in Vista 32-bit, but it doesn't work in Windows 7 64-bit. Any ideas why? Thank you.
Code:
#IfWinActive, ahk_class CabinetWClass
Enter:: ; MultiRun
ControlGetFocus, ctl, A
IfEqual, ctl, SysListView321
{
clipback := ClipboardAll
clipboard =
Send +{appskey}a
ClipWait, 2
StringReplace, clipboard, clipboard, `n, `n, UseErrorLevel
If(Errorlevel > 15)
{
MsgBox, 49, Open %Errorlevel% items?, To stop opening items at any time, press Esc.
IfMsgBox, Cancel
{
clipboard := clipback
clipback =
Return
}
}
Loop, parse, clipboard, `n, `r
{
GetKeyState, escpress, Esc, P
IfEqual, escpress, U
Run, %A_LoopField%
Else Break
}
clipboard := clipback
clipback =
}
else Send {enter}
Return
#IfWinActive