Any idea to run several macros at once ?

  • Автор темы Автор темы veeco
  • Дата начала Дата начала

veeco

Client
Регистрация
27.05.2011
Сообщения
112
Реакции
1
Баллы
18
hello,
currently i use a lot of steps for automated things... i would like to know:
1. If i can run several macros at once in a single step ?
2. If there some kind like "function"/"Sub Template".. the we can run over and over (reusable) for repeated task ( hint: in UBOT, they called it "subs")
 
I saved stuff like a mainloop, file-lock, debugging steps etc and copy'n paste them, when I need them.
Why do you want to run several macros at once? You can run several templates at once, or one template several times, but several macros at the same time doesn't make sense. You have always to make sure, that a macro has access to the data it needs. If you could fire several at once, you'd have to put in lots of code to make sure they care for dependencies, evaluate data before processing etc. That's all taken care off, when you just work through your macros one step at a time.
btw, nothing speaks against nested macros (perhaps that's what you're looking for):
Instead of
{-Pause-|-1-} for a 1 second pause, you could nest macros:
{-Pause-|-{-Random.Int-|-3-|-8-}-} gives you a pause with a randomized duration between 3 and 8 seconds.
{-Random.Int-|-3-|-8-} replaces the '1'
 
i got flow that some thing like this
1. scrape the page
2. assign to keys(variables)
3. do some math
4. return the value..

for this purpose i should done at least three steps... instead i think it would be great if there's way to create a new macros that can contain several macros at one..

advanced nested macros ? yeah.. that might be it ...
 
Put it into a loop and use a counter to step through. I hope that the developers implement a sub-routine module or something like ubot has. It would be nice to see.
 

Кто просматривает тему: (Всего: 0, Пользователи: 0, Гости: 0)