Code: Select all
#Requires AutoHotkey v2.0
done := False
Loop Files 'C:\*.*', 'R'
MsgBox A_Index '`n' A_LoopFilePath
Until done
MsgBox done, 'Done', 'Iconi'
Code: Select all
#Requires AutoHotkey v2.0
done := False
Loop Files 'C:\*.*', 'R'
MsgBox A_Index '`n' A_LoopFilePath
Until done
MsgBox done, 'Done', 'Iconi'
That was probably intentional, to show that the Loop Files does not work with Until. He should be getting a message box with every file on his hard drive and instead is getting none.
You seem to be suggesting that the loop should continue to recurse into the subdirectories. I have already written that this does not happen, and that is the problem. You can try it at your end to see whether you experience the same problem. The loop does run for the directory but not any subdirectories.until expression, the loop stops only when the expression evaluates to true. But done is always false.
Code: Select all
done := False
Loop, Files, C:\*.*, R
MsgBox % A_Index . "`n" . A_LoopFilePath
Until done
MsgBox done, 'Done', 'Iconi'
Code: Select all
if (ResultToBOOL(ARG1))
{
aResult = LOOP_BREAK;
return true;
}
return false;
Users browsing this forum: No registered users and 8 guests