Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
enum threads help
#2
here's how you can get all the threads running.

Display all threads
int i n=EnumQmThreads(0 0 0 0)
ARRAY(QMTHREAD) a.create(n)
for i 0 EnumQmThreads(&a[0] n 0 0)
out _s.getmacro(a[i].qmitemid 1)


but have you thought about this...when you start the function have it add 1 to a global variable; when it ends have it subtract 1 from that variable. then you can always have a count of how many are running.
An old blog on QM coding and automation.

The Macro Hook


Messages In This Thread

Forum Jump:


Users browsing this thread: 9 Guest(s)