|
Post by pablom on Nov 13, 2020 8:56:51 GMT
Hello, I have written 5 macros that I need to run one after the other. I use “notepad ++” to write the macros. I have tested them several times by separate and they all work fine. I tried to schedule all of them with macro queue and they started to behave different. Meaning that they are doing clicks on places they are not supposed to click. Also one of them started to work in a loop but there is no loop on that code section.
I tried to schedule only one macro using the “macro queue” and the same thing happened. I believe that it is related to the way the queue loads the files. Perhaps it changes something or interpret the code different? The reason I am saying this is because as a different test y copied the macro I created into the mmm application and saved it as mmmacro file. Then I loaded it and it worked perfectly. This is why I believe it could be related to the “macro queue” functioning.
What could be wrong?
Thanks in advance for your help.
|
|
|
Post by philranger on Nov 13, 2020 14:28:12 GMT
Did you try to just copy and paste everything in a single macro (and maybe also "relist rows" so numbering is ok)?
|
|
|
Post by For loop on Nov 20, 2020 9:00:59 GMT
It was the relisting! It looks like its not automatic on scheduler.
One thing, i realized that FOR loops in scheduler, takes like x3 time to complete, copared to regular running scripts, what could be the reason?
|
|
|
Post by pablom on Nov 20, 2020 9:01:25 GMT
Sorry, forgot to login.
|
|
|
Post by Steve on Nov 22, 2020 6:00:50 GMT
Hi pablomAutorelist can be enabled in settings: It was the relisting! It looks like its not automatic on scheduler. One thing, i realized that FOR loops in scheduler, takes like x3 time to complete, copared to regular running scripts, what could be the reason? Your FOR loops take longer when scheduled?
|
|
|
Post by pablom on Nov 25, 2020 21:05:35 GMT
Hi pablom Autorelist can be enabled in settings: I have that option, but it looks like it does not work with scheduler.
It was the relisting! It looks like its not automatic on scheduler. One thing, i realized that FOR loops in scheduler, takes like x3 time to complete, copared to regular running scripts, what could be the reason? Your FOR loops take longer when scheduled? Yes, i will do more tests, but for some reason it takes more time.
|
|
|
Post by Steve on Nov 26, 2020 5:51:12 GMT
Do the 5 macro's all work ok when they are run independently?
|
|
|
Post by pablom on Dec 2, 2020 8:32:13 GMT
Hi, so we did more testing, when there is a FOR in the script, in scheduler it takes x2-3 more time, compared to doing it outside scheduler, so i don't know, why, but there is clearly something wrong.
|
|
|
Post by Steve on Dec 5, 2020 1:14:26 GMT
Hi pablom Do you have MMM event logging on ( www.turnssoft.com/faq2.html#eventlog)? And if you do have you tried reducing the logging limits down and dropping the verbosity?
If you have the eventlog enabled for MMM and your macro's with FOR loops are logic heavy (for example your macro's are using a lot of conditions) then this could effect your running macro's. The eventlog for MMM is useful for debugging but should be disabled, or run with reduced log limits, for logic heavy macro's.
A large macro, or series of macro's in the macro queue, could cause the eventlog to slow your macro flow. An internal BZ is logged for this here MMM_BZ2.
This could potentially be your problem.
|
|
|
Post by pablom on Dec 5, 2020 10:08:10 GMT
Hi, i have that option disabled.
Any other ideas?
|
|
|
Post by Steve on Dec 5, 2020 22:55:38 GMT
Yeah maybe it's your macro's. Could they be incorrectly formatted? Could you post them in a code block here and I'll have a look at them for syntax issues.
Cheers
|
|
|
Post by pablom on Dec 9, 2020 15:36:30 GMT
Yeah maybe it's your macro's. Could they be incorrectly formatted? Could you post them in a code block here and I'll have a look at them for syntax issues. Cheers Hi Steve, please check priv.
|
|