I have done a fair bit of tweaking of the Simple Macro Maker lately. As the title suggests I have uploaded v0.3 to the SMM section. I also moved the memory reading example from the SMM section (which has nothing to do with memory reading) to the resource mapping section (which has a lot to do with it).
Here's a list of some of the changes:
Things that only affect the source code:
The formats for the new tags:
<while condition=""> A while block with a boolean expression condition.
<break> Breaks the current for or while loop.
<end> Ends the macro. The macro automatically ends when it
runs out of lines so no need to place it in the end.
Note that the break tag is not in yet, it is on the to do list for the next versions.
A news entry about SMM wouldn't be complete without an example so here is one *smiles*. It shows how while loops, pixel recording and the end tag can be used. PixelToWatch is a location, InitialPixelColor and PixelColor are variables.
<set_variable>
<set_variable-name>InitialPixelColor</set_variable-name>
<set_variable-value>PixelToWatch</set_variable-value>
</set_variable>
<while condition="True">
<set_variable>
<set_variable-name>PixelColor</set_variable-name>
<set_variable-value>PixelToWatch</set_variable-value>
</set_variable>
<choose>
<choose-if condition="$PixelColor!=$InitialPixelColor">
<end/>
</choose-if>
</choose>
<wait base="500"/>
</while>
It will watch a pixel and end the macro (or do anything else that one wants) when that pixel changes color.