sava
New Member
Posts: 4
|
Post by sava on Jul 11, 2019 7:36:33 GMT
Hi Steve,
I wanted to check in about this when using Remarks for GOTO, and was wondering if you can reproduce it with simplified example. I was able to reproduce it on a new VM with a fresh MMM install.
I created this mini "y/n" macro as a test, edited it with the Pencil editor, and confirmed that it correctly (performs GOTO line 5 if you chose "n" at line 1). However, if you save and reload, run and choose "n", it goes straight to "Macro Playback finished" and never hits Remark2/line5.
If you choose Relist Rows, it works again, until you save and reload. It also works saves/loads/runs correctly if you use literal line #s instead of Remarks. Do you know why this is?
1 | RUN ACTION | INPUT BOX | Enter y or n::y or n::STRING4
2 | IF | STRING VARIABLE | %STRING4% | IS | n | GOTO MACRO LINE | Remark2
3 | RUN ACTION | MESSAGE PROMPT | You chose y::Result::0
4 | RUN ACTION | GOTO MACRO LINE | Remark3
* | Remark2
5 | RUN ACTION | MESSAGE PROMPT | You chose n::Result::0
* | Remark3
6 | RUN ACTION | MESSAGE PROMPT | Done::Result::0
Thank you,
Stephan
|
|
|
Post by Steve on Jul 12, 2019 6:52:23 GMT
Hi Sava, Thanks for the new thread. This is the tail end of our previous thread: ' Auto Relist on Play' can be enabled in options. This should fix your formatting issues after the save and run. I can't replicate your issue with save's and loads and formatting. Also to improve performance of the running macro you can remove all the Left Click Down/Release if you don't need a drag event in favor for simply Left Click. 281 | 680 | 370 | 225 | Left Click Down 282 | 680 | 370 | 225 | Left Click Release 281 | 680 | 370 | 225 | Left ClickYour line: 237 | IF | STRING VARIABLE | %STRING1% | IS | | DEFINE STRING VARIABLE | %STRING1%::4Should be: 237 | IF | STRING VARIABLE | %STRING1% | IS | | DEFINE STRING VARIABLE | %STRING1%::4
|
|
sava
New Member
Posts: 4
|
Post by sava on Jul 13, 2019 1:28:06 GMT
Steve,
Thanks very much for taking a look at this and your recommendations. I will give it a try this weekend and let you know the outcome.
Cheers, Stephan
|
|