Moderator: MacroQuest Developers
Code: Select all
Sub Main
:Loop
/echo In the main loop
/delay 10
/goto :Loop
/return
Sub Blah
/echo this is the blah loop and your /call blah while this was running worked.
/endmacro
/return
Code: Select all
#define doCheck v88
Sub Main
/varset doCheck "NULL"
:Loop
/echo Here we do some stuff that must be done before chkBuff can be called properly
/delay 10
/if "$doCheck"!="NULL" {
/call chkBuff
/varset doCheck "NULL"
}
/echo Doing stuff that must be done after chkBuff, or allways for that matter
/goto :Loop
/return
Sub chkBuff
/echo Doing chkBuff.
/return