I then define the STRING variable to one of the macro files given the value of INTEGER1 using an IF condition.Īt line 5 I run that macro file using the FOR EACH LINE IN statement.Īt line 6 I increment the INTEGER variable counter.Īt line 7 if the INTEGER counter is less than 3 then we loop back to line 1, otherwise we end the macro. I use the RANDOM variable to define a random value of 1, 2, or 3 to INTEGER1. Here I have 3 macros named macro1.mmmacro through to macro3.mmmacro. One way to get this working, and there would be few diffent ways to get this working using conditions, could be something like this:ġ | RUN ACTION | DEFINE INTEGER VARIABLE | %INTEGER1%::%RANDOM_1-3%Ģ | IF | INTEGER VARIABLE | %INTEGER1% | = | 1 | DEFINE STRING VARIABLE | %STRING%::macro1.mmmacroģ | IF | INTEGER VARIABLE | %INTEGER1% | = | 2 | DEFINE STRING VARIABLE | %STRING%::macro2.mmmacroĤ | IF | INTEGER VARIABLE | %INTEGER1% | = | 3 | DEFINE STRING VARIABLE | %STRING%::macro3.mmmacroĥ | FOR | EACH | LINE IN | D:\Macro\test\%string% | RUNĦ | RUN ACTION | DEFINE INTEGER VARIABLE | %INTEGER%:: 1ħ | IF | INTEGER VARIABLE | %INTEGER% | < | 3 | GOTO MACRO LINE | 1 Assuming you have a list of qued up macro's. No, it can't be done randomly through the macro list. Playbook from the macro list be in a random order.interesting i have never thought of that.
0 Comments
Leave a Reply. |