|
Post by salmonsashimi1990 on Jan 27, 2022 9:06:19 GMT
Hi all!
Instead of recording my entire work on macro, I have recorded step 1-10 (A), step 20-40 (B) and made several copies on word documents.
As such, it will look like, with 2-4 lines differing as there is different key stroke for each iteration.
(A) (B) (A) (A) (B) (B) (A) (B)
My question is, when i combined them into 1 long code and paste them back into the software, it has seem to arranged the codes by ascending numbers? How do I prevent that? Or should I save each macro blocks in different file and let the system run multiple macro files in a sequence?
I hope my question is clear for some debugging work. Thank you!
|
|
|
Post by philranger on Jan 30, 2022 20:47:59 GMT
Hello,
Syntax for line numbers do matter. But if you select a line and right-click, you can “relist”
Hoping it helps!
|
|
|
Post by Steve on Jan 30, 2022 23:47:02 GMT
Hi all! Instead of recording my entire work on macro, I have recorded step 1-10 (A), step 20-40 (B) and made several copies on word documents. As such, it will look like, with 2-4 lines differing as there is different key stroke for each iteration. (A) (B) (A) (A) (B) (B) (A) (B) My question is, when i combined them into 1 long code and paste them back into the software, it has seem to arranged the codes by ascending numbers? How do I prevent that? Or should I save each macro blocks in different file and let the system run multiple macro files in a sequence? I hope my question is clear for some debugging work. Thank you! Hi salmonsashimi1990 You can disable the auto relist by turning off 'Auto Relist on Play' from the settings menu. MMM uses the line numbers for GOTO and other redirection commands. If you are not using line numbers for flow control (ie with a GOTO action) then you can disable them with an X. Like this:
X | 1754 | 248 | 10 | Mouse Movement X | 1754 | 247 | 10 | Mouse Movement X | 1754 | 247 | 74 | Left Click Down X | 1460 | 422 | 8 | Left Click Release X | 1472 | 416 | 10 | Mouse Movement Hope this helps.
|
|
|
Post by salmonsashimi1990 on Feb 4, 2022 14:21:03 GMT
Thank you all for the suggestion! I guess it will be good to re-number so that if there is any error, it will be easier for me to use the search function and debug.
|
|