Hallo,
is it possible to transfer one global variable into the next xml file.
transfering variables from one .cml to other
Forum rules
Only post additional bot resources here. Please do not ask unrelated questions.
Only post additional bot resources here. Please do not ask unrelated questions.
Re: transfering variables from one .cml to other
What do you mean by that? In theory you can save a var in a file between the run of 2 files.
Yeah I know this would be a lot of overhead I wrote an extension for MM2 which would solve it for that but for MM and RomBot I don't see an easy solution.
Yeah I know this would be a lot of overhead I wrote an extension for MM2 which would solve it for that but for MM and RomBot I don't see an easy solution.
Jack-of-all-trades, but master-of-only of a few
My Reps:
https://github.com/BlubBlab/Micromacro-with-OpenCV (My version of MM2 with OpenCV and for MS Visual Studio)
https://github.com/BlubBlab/rom-bot (rombot with no stop WP and advanced human emulation mode and some other extensions)
https://github.com/BlubBlab/Micromacro-2-Bot-Framework ( A work in progress )
My Tools : viewtopic.php?f=10&t=6226
My Reps:
https://github.com/BlubBlab/Micromacro-with-OpenCV (My version of MM2 with OpenCV and for MS Visual Studio)
https://github.com/BlubBlab/rom-bot (rombot with no stop WP and advanced human emulation mode and some other extensions)
https://github.com/BlubBlab/Micromacro-2-Bot-Framework ( A work in progress )
My Tools : viewtopic.php?f=10&t=6226
Re: transfering variables from one .cml to other
An easy solution would be to keep all the values you want to keep in a table then save the table using the table.save command, eg.
Then when you want to load them again use
Code: Select all
table.save(mySavedValues,"filename.txt")
Code: Select all
mySavedValues = table.load("filename.txt")
- Please consider making a small donation to me to support my continued contributions to the bot and this forum. Thank you. Donate
- I check all posts before reading PMs. So if you want a fast reply, don't PM me but post a topic instead. PM me for private or personal topics only.
- How to: copy and paste in micromacro
________________________
Quote:- “They say hard work never hurt anybody, but I figure, why take the chance.”
- Ronald Reagan
Re: transfering variables from one .cml to other
Thanks Rock.
Sry for my bad english but know what i meen
Sry for my bad english but know what i meen
Re: transfering variables from one .cml to other
I used userfunction addon_Variables.lua and include there all needed global Variables.
Who is online
Users browsing this forum: Bing [Bot] and 1 guest