Jump to content
Macro Express Forums


  • Content Count

  • Joined

  • Last visited

  • Days Won


Posts posted by Samrae

  1. If your macros are getting disabled then you are not copying the macro file. Create a new macro file, perhaps name it "Menu.mex". Put your macros in it. Create the popup menu macro. Then copy the file "Menu.mex" to your users. Do not Export any macros. Do not Import any macros. Copy the entire macro file.

  2. When a popup or floating menu macro is created, it stores the index number of the macros added to the menu. When you export macros and then import them into a new macro file they are assigned new, possibly (probably?) different, index numbers in the new file but the index numbers are not updated in the menu macro. After exporting and importing you will need to recreate your menu macro file.


    Instead of exporting/importing the macros you could copy the entire macro file containing the menu macro along with the macros it contains.

  3. The playback speed is supposed to be active for a macro thread. A macro is activated, does a bunch of stuff and ends. If the "bunch of stuff" includes a Macro Run command, it is still part of that macro thread.


    I use macros that profile the workstation to determine its screen resolution and how fast or slow it is. It then adjusts things like X, Y coordinates and playback speed accordingly. This profiling is done in a separate macro called by the Macro Run command. This technique will only work if the playback speed is set for an entire macro thread.


    I say it is not a bug. It is an important feature.

  4. Will Copy and Paste command work? Note that you can highlight something, copy it to the clipboard and then save the content of the clipboard in a variable. If you repeat these steps you can save several bits of informatino in variables. Then you can type the information from the variables in the appropriate fields in your destination app.


    Look at these commands:

    Clipboard Copy
    Variable Set String %String1% from the clipboard contents
    Clipboard Paste

  5. Use "Last name:" in a "Variable Set Integer %Idx% to the position of" to mark the end of the first name. If nothing appears after the last name but spaces you can get all the characters and then use the "Variable Modify String %sTemp%: Trim" command to remove any leading and trailing spaces.


    Start with the sample provided and try it. See what happens and see where you need to adjust the macro. If you get stuck post your macro for others to help.

  6. If you have the entire page in a variable you can use the "Variable Set Integer to the position of" command to search for something in front of the name and something after the name. Something like this might get you started:

    Variable Set Integer %Idx% to the position of "First Name:" in %sTemp% // Find "First Name:" in the input string
    Variable Modify Integer: %Idx% = %Idx% + 10 // Adjust the idx to skip over "First Name:"
    Variable Modify String: Copy a substring in %sTemp%, starting at %Idx% and 99999 characters long to %FirstName% // Copy from the first name to the end of the string

    This is not complete. You will have to determine what characters follow the First Name and then do another Variable Modify String: Copy a substring command.


  7. The November 12, 2012 issue of the Macro Express News email newsletter talks about this. It says:



    In order for macros to run, Adobe’s Protected Mode feature must be turned off.


    Follow the steps below to turn off Protected Mode in Adobe Reader X and XI:

    • Open Adobe Reader
    • Click Edit, Preferences
    • For Adobe Reader X click General or for Adobe Reader XI click Security (Enhanced)
    • Click to uncheck the "Enable Protected mode at startup" setting
    • Click the OK button to save
    • Restart Adobe Reader


    You can read the entire newsletter issue here.

  8. The number appended to the end of the log file name is the index of the macro that was activated, even for macros called via the Macro Run command. If Macro_A has an index of 45 and Macro_B has an index of 38, when Macro_B is activated by itself the log file is named Macro_B38 but if Macro_A runs Macro_B via a Macro Run command the log file for Macro_B is named Macro_B45.

  9. Are these files in one or only a few folders? If so, I would use the Repeat with Folder command. Something like this may get you started:

    // Get Path to My Documents
    Set Variable %T1% to "Path to My Documents"
    Change Directory/Folder: "%T1%"
    // Rename each file in the folder, one at a time
    Repeat with Folder
      Variable Set From File Path
      Rename File or Files: "%T2%"
    Repeat End

    Copy this code and paste it into your macro:

    <REM2:Get Path to My Documents><VSETMISC:T1:Path to My Documents><DOFILE:01:NN:%T1%>><REM2:><REM2:Rename each file in the folder, one at a time><REP3:07:000001:000001:0002:0:01:%T1%><VFFILE:1:T:10:T:11:T:12:T:13:%T2%><DOFILE:06:NN:%T2%>%T12%%T13%><ENDREP>
  10. Click the Macro Recycle Bin button and delete any macros listed there.Check to see if the Ctrl+N macro runs. If not, then you should download the latest version of Macro Express 3 from www.macros.com/download.htm and install it. Some earlier versions of Macro Express 3 would still run macros when they existed in the Macro Recycle Bin.


    If the Ctrl-N macro still runs after emptying the Macro Recycle Bin then you could identify which macro is still running by systematically disabling groups of macros.


    Start by creating a new macro file by clicking File, New Macro File. This will disable all of your existing macros. Don't worry, you will be able to get them back. Make sure that Ctrl-N is no longer running a macro.


    Click File, Reopen to reopen your original macro file.


    Sometimes macros have multiple activations but only one activation is indicated in the Macro Explorer window. If this is the case you could try disabling the top half of your macros. See if the Ctrl-N macro no longer runs. If it still runs, enable those macros and disable the bottom half of your macros. Once you have identified a set of macros that contain the Ctrl-N macro you can narrow down your search. Disable a smaller and smaller number of macros until you identify the macro.

  11. I thought Macro Express Decimal Variables were Floating variables:

    From the Macro Express Pro help:

    A Decimal variable holds any type of number, such as 12.432 or -1.3. Note: A decimal variable value can range from 5.0 x 10^ -324 to 1.7 x 10^308 with 15 to 16 significant digits. This first example is a decimal expanded to include 324 leading zeros followed by the number 5, represented as .000(321 more zeros)5. The second range extends to 17 followed by 308 zeros which would look like 1700000000(300 more zeros).0. The numbers are rounded to 15 or 16 significant digits.

    Compare with the Wikipedia description of Floating Point variables.


    Macro Express does not, however, support scientific notation like 0.001017654 × 10^5.

  • Create New...