01-08-2015, 04:21 PM
It is not possible to pause a thread (running macro) from outside in a safe way. A thread only can pause itself, ie wait for an event.
There are Windows API functions SuspendThread and ResumeThread, but sometimes they can be dangerous, for example QM cannot correctly end a suspended thread.
There are Windows API functions SuspendThread and ResumeThread, but sometimes they can be dangerous, for example QM cannot correctly end a suspended thread.