Samrae
-
Posts
451 -
Joined
-
Last visited
-
Days Won
22
Content Type
Profiles
Forums
Events
Posts posted by Samrae
-
-
There is a System Macro to load the Macro Express Pro Explorer. Press Ctrl+Alt+Shift+W. The hotkey assigned to this system macro may be changed.
-
-
BTW, Ive always used a macro to display the Mouse Locator, essentially just launching C:\Program Files\Macro Express Pro\MSLocate.exe
But it never shows the RGB values, only the MX code. I'm guessing there's a program parameter that might do it, to give the same result as running it via Tools > Launch Mouse Locator.
The secret parameter is -hex.
-
Do you need the conversion within the macro? When writing macros I do the color conversion manually. I use the Mouse Locator (click Tools, Launch Mouse Locator) to view both the integer and RGB (hex) value for the cursor underneath the cursor. As Cory mentions, the Windows Calculator in Programmer's mode allows conversion between hexadecimal and integer values.
On WIndows computers colors represented in hexadecimal format are often shown in BGR (Blue Green Red) rather than RGB (Red Green Blue). This is because Intel X86 and X86-64 processors are little-endian. The Macro Express Mouse Locator displays colors in RGB so you may need to switch the Red and Blue hexadecimal values.
You would expect numbers in RGB format to work like this:
E6 37 39 // more Red
36 E7 39 // more Green
36 37 E9 // more Blue
But it really works like this:
E6 37 39 // more Blue
36 E7 39 // more Green36 37 E9 // more Red
-
Perhaps Ctrl+Alt+Shift+Z was intended to show the macros that will run in a given window?
-
The Case statement looks for equality. Beau's example looks to see if the variable contains a number. If %T[1]% contains 4, for example, both Beau's sample and the case statement will work. However if %T[1]% contains 149 the Beau's example will find the 4 but the Case statement will not.
-
Your comment "date in a format that MEX doesn't support" made me curious so I studied help for the Date/Time command. There are a few predefined date/time formats but you can also type other formats in the Date/Time command. I cannot imagine a date/time format that Macro Express cannot do. Here are the two you mentioned:
Date/Time: Save "dd"-"MMMM"-"YYYY"-"hh"-"nn" into %T1% Date/Time: Save "yydmm" into %T1%
Note that "nn" is used for minutes because "mm" represents the month.
-
Alan,
Doesn't this do the same thing (but much shorter)?
Date/Time: Save "d MMMM YYYY" into %T1% Text Type: %T1%
-
Use "Repeat with Folder" to get each file name.
If necessary use "Variable Set From File Path" to separate the file name and extension from the full path of the file.
Use "Variable Modify String: Copy Part of %T1% to %T2%" to copy the first two characters from the file name to another variable.
Use the "Copy File or Files: " command with something like this "\server\web\com\public\%T2%\images\folder\" for the new name.
Like this:
Repeat with Folder Variable Set From File Path Variable Modify String: Copy Part of %T1% to %T2% Copy File or Files: "%T1%" Repeat End
-
Have you tried stopping and restarting Macro Express?
-
-
The way I would tackle this is to copy of the original information to a new variable, use the "Variable Set Integer from Position of Text" command to find the needed tag, then use the "Variable Modify String: Copy Part of" command to copy or delete parts of the original source information as needed. Repeat the steps with different tags.
Eventually you may wind up with a string that contains both letters and numbers. You can loop through that string one character at a time and copy out only the numbers.
-
Have you tried Ctrl-n to create a new message instead?
How are you activating your macro? Have you tried a different activation?
This attached sample macro works for me every time. Does it work for you?
-
These all worked fine under windows xp.
Windows 7 works differently than Windows XP. Just one example is the Aero interface. There can be a lot more going on between keystrokes requiring longer delays. Just because a macro worked under Windows XP doesn't mean it does not need adjustments for Windows 7.
Have you tried increasing the delays? You can always change them back if it doesn't help.
-
That is a sample to try to give you some ideas. T54 is supposed to hold a copy of the last order number. Upon reexamination of the same I see the confusion, this:
Variable Modify String: Copy %T54% to %T4%
should be this:
Variable Modify String: Copy %T4% to %T54%
I did not try to run this sample. it was provided to get you started.
I edited the example above to fix the incorrect line.
-
I tried it on both a desktop and laptop and it works correctly for me. I would ask Insight Software Solutions support.
-
Have you tried adding delays? Macro programs type much faster than humans and many times programs can't keep up.
Text Type: <ALTD>m<ALTU> Delay 0.1 Seconds Text Type: n Delay 0.1 Seconds Text Type: Your message goes here ...
-
I need to set if the next line in the csv file is the same order number as the one I am currently processing. If it is then I need to add another item. If it is not, then continue and create a new record.
The sample provided above does that. Look at the comments "// Order number matches previous" and "// Order number is unique".
I suggest you start with something and see how it works and then adjust it.
-
From your decscription it sounds like you are processing through using Excel or some other program. You may find it easier and more reliable to process the csv file within Macro Express itself. The ASCII Text Begin Process command repeats all the steps between the Begin and End commands for each line in your csv file. Each time it repeats it will put the order number in T4 from the new line in the .csv file. To compare with the previous order number you need to save the current order number into a variable that will not change. If your loop is using T1 through T6 then you could save the previous order number in T10 through T99.
There is a description in the help that describes the ASCII Text Begin/End Process commands. Open help, click the Search tab, type ASCII Text File and click the List Topics button.
-
Something like this might get you started.
ASCII File Begin Process: "test.csv" (Comma Delimited Text ) If Variable %T54% = "%T4%" // Order number matches previous Else // Order number is unique End If Variable Modify String: Copy %T4% to %T54% // copy order number to T54 ASCII File End Process
-
Note that Alt + F is not the same as Alt +f. Use lower case letters.
This is because Alt + F sends:
<Alt Down><Shift Down>f<Shift Up><Alt Up>
and Alt + f sends:
<Alt Down>f<Alt Up>
Many applications, including Excel, do not like the extra shift down and up.
-
Make sure that File Locking of Macro Files and Automatic Synchronization Update options are enabled. These were off by default in earlier versions of Macro Express.
I hear that some have used Dropbox to share a macro file. I want to try it but haven't yet.
To avoid losing macros you should make sure you have the Automatic backups turned on. Also, more recent versions of Macro Express have improved backup routines.
-
- Highlight a macro
- Right-click
- Choose Copy Macro
- In the Categories column, click the little triangle to expand the list of categories for the macro file that you want to copy to
- Click the mouse down on the copied macro and drag it to either * Unassigned * or a category in the macro file where you want the macro
- Edit the macro to change the name to remove 'Copy of'
- Highlight a macro
-
I found out why your captured macro has a Mouse Move command. In order for a captured macro to work in all cases, it needs to know where the mouse was when the macro is captured. Macro Express moves the mouse to the original location near the top of the captured macro.
Set repeat amount from prompt
in Macro Express 3.x
Posted
There is an example of using a integer variable to index string variables in the Variable Evaluation Level article in the July 2005 issue of the Macro Express News email newsletter. That article refers to a Variable Evaluation Level sample macro.
I think it says to use something like %T%N1%% but you may have to change the Variables Evaluation Level setting from 0 to 1 in the preferences. To get there open preferences, click Miscellaneous and then the Advanced button.