Is it possible to queue/concatenate strings (filenames) and pass them in concatenated form to a function, all inside the same loop without using a timer creating a separate thread? If so how would that look like?
Code: Select all
Loop %0% ; For each parameter (or file dropped onto a script):
{
GivenPath := %A_Index% ; Fetch the contents of the variable whose name is contained in A_Index.
;msgbox % GivenPath
Loop %GivenPath%, 1
latest_file .= """" A_LoopFileLongPath """ "
; lots of if expressions here to loop through
Function(latest_file)
}
Function(latest_file) {
If latest_file =
return
Else
{
msgbox % latest_file
;pipe_name := "PipeExample"
;FileOpen("\\.\pipe\" pipe_name, "w", "UTF-8-RAW").Write(latest_file)
}
}