Posts: 12
Threads: 6
Joined: Jul 2008
Is there a GM shortcut to Kill all running threads similar to what PAUSE does to a running macro. I had a look and couldnt find it but i could just be blind. If its not there is there a quick macro i could hook up with a global trigger to accomplish the task? Trying to manually close threads that are bugged out and activating other windows is not fun
Posts: 12,072
Threads: 140
Joined: Dec 2002
Macro
;kills all threads except some important threads
int i n=EnumQmThreads(0 0 0 0)
ARRAY(QMTHREAD) a.create(n)
for i 0 EnumQmThreads(&a[0] n 0 0)
,if(a[i].threadid=GetCurrentThreadId) continue ;;don't kill itself
,str name.getmacro(a[i].qmitemid 1)
,out name
,sel name
,,case ["ImportantThread","ImportantThread2"] ;;don't kill these
,,case else
,,shutdown -6 0 name
Posts: 12
Threads: 6
Joined: Jul 2008
Works like a charm, thanks!