Jump to content
Macro Express Forums

Pasting text from a rotating list of variables?


OldMacroDonald

Recommended Posts

I would like to create a macro that would paste text from a set of predefined variables that would change after every time I used the macro. For example pressing the hotkey would paste "hello" then pressing it a second time would switch to the next variable in the list "goodbye" and so on. Would I create the list through Variable Set String for each text? After that, I'm clueless as to how to get it to keep track of what has been used and switch to the next variable in the list.

I tried to program it as simply as possible with my limited knowledge of ME. I set my text string (T) variables then did an if variable set N back to 1 to correspond with the number of text strings I have. It then pastes the text variable T and modifies the N by adding 1. This method doesn't work because I thought I would be able to "nest" the variables by trying to paste %T%N1%% but that's not an option it seems. Would I need to upgrade to ME6 to be able to have that functionality? 

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...
×
×
  • Create New...