Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Question about new macro behavior
#12
This version does not kill waiting threads.
Macro M1
Trigger $sm "Test convert"     Help - how to add the trigger to the macro
Code:
Copy      Help
;\
function $files
str f
foreach f files
,out f
,mac "sub.Convert" "" f


#sub Convert
function $f

lock

QMTHREAD qt; GetQmThreadInfo 0 &qt
mac "sub.End" "" qt.threadhandle

AddTrayIcon "$qm$\copy.ico" F"converting {f}"
mes F"converting {f}"


#sub End
function ht

rep
,wait 1 K C ;;Ctrl
,err
,,if(WaitForSingleObject(ht 0)!=WAIT_TIMEOUT) break
,,continue
,EndThread "" ht
,break


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)