Accessing a running macro with keywords or parameters
Posted: Sat May 11, 2019 2:31 pm
I'm doing my own Healer macro, basically, I have it kind of finished, but it is not done with the adeptness that I desire. I want to be able to access instance variables or method parameters while a macro is running. I guess in a way that is similar to plugins. I have seen *.INI files set up with keywords with [ ] around them. So if for a very ruff example:
|** Sample *.INI **|
[Keyword]
name=off
|**********************|
and I type:
/keyword name=on |** To make the change **|
|**************** Sample Macro Method *******************|
/declare name String local NULL
Sub Name(String newName)
/echo ${newName}
/return
I would be able to indirectly access parameters in methods. I know that this might not make much sense, but that is really where I'm at. I know nothing about this, but I want to do my macro right and not have to repeat my work again. Would I use a /call statement to get the information from the *.IN file, how does the information get changed in the *.INI? If you could set me in a forward direction, I might be able to elaborate on this.
|** Sample *.INI **|
[Keyword]
name=off
|**********************|
and I type:
/keyword name=on |** To make the change **|
|**************** Sample Macro Method *******************|
/declare name String local NULL
Sub Name(String newName)
/echo ${newName}
/return
I would be able to indirectly access parameters in methods. I know that this might not make much sense, but that is really where I'm at. I know nothing about this, but I want to do my macro right and not have to repeat my work again. Would I use a /call statement to get the information from the *.IN file, how does the information get changed in the *.INI? If you could set me in a forward direction, I might be able to elaborate on this.