Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Pausing a Function/Macro
#8
Gintaras Wrote:Simply pausing macro from outside (manually or by an external function) is not possible. It is possible only if the macro itself checks for some condition. For example, if the macro executes some code repeatedly, it can check a global variable, and, if the variable says to wait, it waits.

Example
In macro:
Code:
Copy      Help
int+ g_pauseMacroX
rep
,if(g_pauseMacroX) wait 0 -V g_pauseMacroX
,;...

In function:
Code:
Copy      Help
int+ g_pauseMacroX
g_pauseMacroX=1
;...
g_pauseMacroX=0





I used the above example. What does that error mean? Maybe if I know I can start looking which is giving me the error, the macro or the function.


Messages In This Thread

Forum Jump:


Users browsing this thread: 3 Guest(s)