Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Dialog2 ?
#6
Lets say you have macro MACRO and function FUNCTION.
MACRO is set as Main in Make Exe dialog. It starts when the program starts.
If you want to run the function in separate thread when the program starts, use mac at the beginning of the macro.

mac "FUNCTION"

Note that when MACRO ends, the program also ends. The macro probably must wait until FUNCTION ends.
For example, it can wait using thread handle:

int ht=mac("FUNCTION")
wait 0 H ht

Or use IsThreadRunning in macro.


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)