Jump to content
Macro Express Forums

Automate multiple input with increased number?


Recommended Posts

Hello,

 

I am a beginner in Macro Express. I hope I could get some help.

 

I am using Macro Express Pro version 4.3.0.1 for a game. So far I have managed to automate simple routines, however what I need to do next is beyond my capability. To be honest i am not sure if it could be done with ME. It will take weeks to do it manually, not to mention carpal tunnel.

 

I need ME to check combination of few items. For example, I need to find out the secret formula to create a special menu from a few stack-able items: 50 pork, 25 beef, 15 pepper and 30 sugar.

 

The steps would be as follow:

1. Hit the 'c' key and the create menu appears

2. Choose and add the pork from the list and enter number.

3. Choose and add beef from the list and enter number

4. Choose and add pepper from the list and enter number

5. Choose and add sugar from the list and enter number.

6. OK

 

I need ME to repeat it until the last possible combination entered.

1 beef, 1 pork, 1 pepper, 1 sugar

1 beef, 1 pork, 1 pepper, 2 sugar

etc

until 25 beef, 50 pork, 15 pepper and 30 sugar entered.

 

And is it possible to create a log for this macro?

 

Any help is appreciated. Thank you very much.

 

 

 

 

Link to comment
Share on other sites

Sounds like MEP could do it. Create an array variable for the items ingredients. Do an input loop to induct all the ingredients and when the user responds with an empty, stop. You will need to increment a counter as you do this so you know how many there are. Then make a nested loop to iterate thru each possible combination. The only part I'm not sure about is if you have a variable number of ingredients how you could possibly have a variable number of nested levels of the loop. I'd have to think on that one for a bit.

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...