Jump to content
Macro Express Forums

Text + (N+Step#*10) .... repeat for x steps


gproxy
 Share

Recommended Posts

Hello,

 

 

I have a feeling that Macro Express can do this but am at a loss trying to find the appropriate commands.

 

Let's say I have a starting N#= 100.

 

I need to add that to the end of a url, paste to a browser, and then run some operations.

 

Then repeat with the same url with N# +10.

 

The url constructs would look like:

 

www.macroexpress.com/100

www.macroexpress.com/110

www.macroexpress.com/120

www.macroexpress.com/130

www.macroexpress.com/140

etc.

 

 

Thanks

Link to comment
Share on other sites

but what command/process can I use to add %N1% to the end of a text string like "www.macroexpress.com/" ?

 

Variable Set String T99 = www.macroexpress.com/

 

Variable Modify Integer [convert N1 integer to a string, for example into T1]

 

Variable Modify String [append T1 to T99]

 

 

There are lots of goodies hidden in the "Variable Modify" and "Variable Set" commands for strings / integers / decimals.

Link to comment
Share on other sites

Thanks alot rberq!,

 

Stumbled across the "modify integer into a text string" command while you were posting. The integer as a text string could then be used with the append text function which is key to make it all work.

 

Amazing the commands buried in Macro Express... who was the guy/gal to forese the uses lol.

 

So my macro reads something like this now:

 

Set Integer N=90

 

Repeat START

 

-Variable Set String T2 "www.macroexpress.com/"

-Variable Modify Integer N1= 10 + N1

-Variable Modify Integer: Convert N1 to text string T1

-Variable Modify String: Append T1 to T2

-Variable Modify String: Save T2 to clipboard

 

(Do misc functions with the construct)

 

Repeat END

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...