Shai
-
Posts
4 -
Joined
-
Last visited
Content Type
Profiles
Forums
Events
Posts posted by Shai
-
-
Set the appropriate ME option to allow nested variables (refer to Kevin's response here: Variable Evaluation Level).
Then store the repeat counter into a variable (let's use %n99% in this example), and reference the source variables for %n31% in your repeat loop with:
Variable Set Integer %n31% to %n%n99%%
When %n99% is 1, this command sets %n31% to the value of %n1%; when %n99% is 28, this command sets %n31% to the value of %n28%.
I had tried to do this before but ME complained, thanks a bunch.
-
What you want to do is use something like %T%N1%% to access a sequential series of variables (%T1%, %T2%, %T3%, etc.) inside a repeat loop. To do this you need to enable the Variable Evaluation Level. If using Macro Express v 3.7 or later click Options, Preferences, Miscellaneous, Advanced and set the 'Variables Evaluation Level' to 1 or 2.
For information about this feature see the Macro Express News - July 13, 2005 newsletter and the User Submitted Macro - Variable Evaluation Level shared macro page.
Other discussions on this topic within this discussion forum can be found at these links:
Ahhhhh, I had tried to do this but ME complained so I assumed it could not be done. Thanks. Now if I can just remember the logic I was going to use it in
-
I'm trying to do a search for a series of 30 contiguous pixel colors in the positive X direction from a set of integer variables set to specific color values. When the first value is found the macro will increment to the next X coordinate and test for the second pixel color. Basically a repeat loop is going to fetch %N1% which is the first pixel color and put it into %N31%. When %N31%, which is set to %N1%'s value, is found the X coordinate will be incremented by 1 and then %N31% needs to be set to %N2% which is the second pixel color I'm looking for. This is where I'm having the problem. How to make %N31% = %N1%, then %N31% = %N2%, then %N3% and so forth. I'd like to have this in some efficient logic that increments N31 to N1 or N2 or N3 etc based on a repeat counter. But ATM I can only see to do it manually with 30 written checks. Is there a way to do this? I'm not a programmer, a hobbyist perhaps, but I'm guessing this might be a "boolean variable" falling in the domain of Macro Express Pro?
Pixel Mapping software?
in Macro Express 3.x Third Party Tools
Posted
Anyone know of software that will basically take a screen print, map all the pixels and their colors and then spit that out into a file? I've setup a macro to scan for 30 contiguous and unique pixels. Unfortunately, it takes forever. I'm trying to speed up this process.