Running an imacro to automate the addition of sub-domain DNS records through the 123reg front end has presented some challenges due to my specific naming convention.
I am mapping two sets of domains as follows: - x.x.x.1 to x.x.x.128 on domain1.com - x.x.x.129 to x.x.x.254 on domain2.com
Below is the code used to map the addresses for domain1.com:
TAB T=1
SET !LOOP 1
TAG POS=1 TYPE=INPUT:TEXT FORM=NAME:advanced_DNS ATTR=NAME:hostname CONTENT=mx{{!LOOP}}
TAG POS=1 TYPE=INPUT:TEXT FORM=NAME:advanced_DNS ATTR=NAME:data_A CONTENT=x.x.x.{{!LOOP}}
TAG POS=1 TYPE=A ATTR=ID:save_dns_entries
WAIT SECONDS=2
I've been attempting to introduce a variable !VAR0 and perform some simple calculations, such as:
!VAR0 !LOOP
ADD !VAR0 -128
TAB T=1
SET !LOOP 1
TAG POS=1 TYPE=INPUT:TEXT FORM=NAME:advanced_DNS ATTR=NAME:hostname CONTENT=mx{{!VAR0}}
TAG POS=1 TYPE=INPUT:TEXT FORM=NAME:advanced_DNS ATTR=NAME:data_A CONTENT=x.x.x.{{!LOOP}}
TAG POS=1 TYPE=A ATTR=ID:save_dns_entries
WAIT SECONDS=2
This approach adds "!LOOP" to !VAR0...is there a way to assign the value of one variable to another in imacros? I understand that its mathematical capabilities are limited...