02-19-2015, 02:36 PM
Yes, then let end_convert wait for a key etc before EndThread.
Macro M1
Trigger $sm "Test convert"
Not tested with multiple waiting threads. Probably will need more code.
Macro M1
Trigger $sm "Test convert"
;\
function $files
str f
foreach f files
,out f
,mac "sub.Convert" "" f
,mac "sub.End"
#sub Convert
function $f
lock
AddTrayIcon "$qm$\copy.ico" F"converting {f}"
mes F"converting {f}"
#sub End
wait 0 K C ;;Ctrl
EndThread "M1:Convert"
Not tested with multiple waiting threads. Probably will need more code.