but if I take out the msgboxes, the value of fileList is the most recent clipboard value from line 7, instead of retaining the list of selected files I assigned it in line 3
did I not "lock in" the value of fileList properly in line 3?
Code: Select all
!f::
send ^c; get filepath list
fileList := clipboard
sleep 100
Send ^l; goto current directory field
sleep 100
send ^c; get current directory
clipwait
InputBox, folder, folder
folder := RegExReplace(folder, "/", "\")
FileCreateDir, %clipboard%\%folder%
sleep 500
msgbox %fileList% <----------------------------- why necessary?
Loop, parse, fileList, `n, `r
{
msgbox %A_LoopField% <-------------------- why necessary?
SplitPath A_LoopField, OutFileName, OutDir, OutExtension, OutNameNoExt, OutDrive
;OutNameNoExtFix = RegExReplace(OutNameNoExt, " ", "_");
FileMove %A_LoopField%, %clipboard%\%folder%\%OutNameNoExt%.%OutExtension%
}
return