Jump to content
Macro Express Forums


  • Content Count

  • Joined

  • Last visited

  • Days Won


Posts posted by Samrae

  1. A clue to the answer is in acantor's answer. TextType <CONTROL><ESC> works like Control Key Down, ESC, Control Key Up. This can also be written like this: TextType <CTRLD><ESC><CTRLU>

    If you use <WIN> in a TestType command it affects the next keystroke. For example, use TextType <WIN>e to bring up File Explorer. This can also be written like this: TextType <WIND>e<WINU>.

    So, as garlicnonions & Stan said, to bring up the Start Menu To just press and release the Windows key: TextType: <WIND><WINU>

    All modifier keys work this way in Macro Express and Macro Express Pro. Any of these affect the next keystroke: <ALT>, <CTRL>, <SHIFT> and <WIN>.

  2. 3 hours ago, James534 said:

    5. I closed the program and restarted it but I can still use the old keyboard command to bring up the macro, which seems odd, even though it is not there in the macro express explorer.  

    That makes it appear that there is another macro in one of your macro files with that activation.

    2 hours ago, James534 said:

    I do see the following programs loaded , is this normal ?

    These are normal. MacExp.exe is the macro player. MacExit.exe is the macro explorer. MEProx64.exe provides an interface between the 32-bit player (macexp.exe) and 64-bit programs that are running. If you had multiple copies of Macro Express running you would see more than one copy of MacExp.exe in task manager.

    If you have more than one macro file loaded try closing all but one of your macro files.

  3. When you define an array variable you need to specify the number of elements. Sometimes that is tricky if you aren't sure how many you will need. I usually just guess high. So, for your array variable that needs 0-107 elements I would specify 150 or 200 elements.

    Sometimes I use the Get Array Length command in my macros to check to display a warning if the array size is too small. That prompts me to edit the macro and increase the size of the array.

    To access elements in the array use something like %ArrayVar[1]%,  %ArrayVar[99]%,  etc. You can also use another variable to access the array. %ArrayVar[%Idx%]%.

    Also note that array variables start with 1, not 0. %ArrayVar[1]% is okay but %ArrayVar[0]% is not.

  4. Try the Wait for File to be Ready command.

    If Folder Exists: "\\SCANSERVERHOST\PPLImageDepot\Processing Temp"
      Repeat with Folder C:\Scans // PLow thru the folder
        Clear Variables
        Variable Set From File path // Get teh file extension
        Variable Set From File: Set to the Size of a File (C:\Scans\%File%)
        If File Exists: "C:\Scans\%File%"
          If Variable %Size% Is Greater Than "0"
            Wait for File to be Ready: C:\Scans\%File%
            Copy File/Files: "C:\Scans\%File%" to "c:\Scans Sav"
            Move File/Files: "C:\Scans\%File%" to "\\SCANSERVERHOST\PPLImageDepot\Processing Temp\%File%"
            On Error
              Catch Error: File could not be located
                Macro Stop
              End Catch Error
            End Error
          End If
        End If
      End Repeat
    End If


  5. Some thoughts:

    Windows programs have the ability to define their own mouse cursors. If the program has it's own arrow mouse icon then the If Mouse Cursor: Arrow will not work. Maybe you can use the if Mouse Cursor: change command instead.

    If one program is running with elevated privileges (as admin) then Macro Express cannot interact with it. See if running Macro Express as Administrator helps.

  6. Make sure you are using a Windows server on AWS. Also, be sure that the applications running on AWS are not sandboxed. Macro Express needs to see all other applications that are running in order to interact with them. Sandboxing isolates each application from the others. And lastly, as I mentioned in response to your other post, be sure that there is not a setting or feature that prevents the processing of keystrokes when the AWS server does not have focus.

    My minimal knowledge of Amazon AWS comes from reading information online and not from working experience. I may not be able to help any further. Perhaps another forum member has more experience with AWS and could provide further advice.

  7. I have experience using VMWare virtual machine software but I have not used a virtual private server. (Other virtual machine software include VirtualBox, HyperV, and Parallels.) My suggestions may or may not apply to a VPS.

    Check for any options that may affect how macros run. Some VM's have a setting to determine how hotkeys work. For example, there may be a setting that determines whether a hotkey is sent to the host computer or to the virtual machine.

    Some virtual software assumes that if your keyboard and mouse are not connected that there is no reason to process keystrokes and mouse events. This is how Windows Terminal Services work. It may be that the VPS you are using works that way also.

    When I use a virtual machine both my computer and VMWare must be running.


  8. Windows itself only allows one dialog to receive keystrokes and mouse clicks. That window is the one that has focus or is the active window.

    You can have a macro that runs while you are interacting with a different window but it is tricky. First, the application where you want the macro to run must support Window Controls. Not all programs do. Then your macro needs to interact with that window with only Window Controls, not keystrokes or mouse clicks.

    Another approach is to create a virtual machine. When a virtual machine is running it looks and acts like a separate computer. The VM can run in a separate window on your main workstation. The VM has to be configured with Windows and your application along with Macro Express would need to be installed on the VM. It gets a bit involved but it works well.

  9. In order for a macro to run you need to do two things. First, select an activation. Second, write the macro script. Then, when the activation is performed, the script runs.

    From your screenshots it looks like you have created a menu macro. To activate a macro when using a menu macro you have to see the menu and you have to choose an item on the menu.

    Is the menu displayed?

    What happens when you select an item on the menu?

  10. You can include end of line character(s) when saving information to a text file. You should be able to save the end of paragraph character once you identify what that character is.

    The end of line character(s) differ depending on what computer system you are using. For Windows this would be CR followed by LF or CRLF. However, if your destination computer is Linux this may be LF and for Apple this may be only either CR. I will leave it to you to determine which specific character(s) you need for end of paragraph or end of line.

    To include these characters in your macros use the "Variable Set to ASCII Char" command. This is a sample from my macros that sets variables for CR, LF and TAB.

    Variable Set to ASCII Char 13 to %CR%
    Variable Set to ASCII Char 10 to %LF%
    Variable Set to ASCII Char 9 to %TAB%

    For more information about ASCII Characters enter "ASCII characters" into your preferred search engine.

    • Like 1
  11. Has anyone tried to edit macros in the Direct Editor instead of the Script Editor? I haven't had the need to do this yet but it seems like one approach that may work. A Ctrl+R brings up a Find and Replace dialog in the Direct Editor.

    If you need more powerful editing tools you could open a macro in the Direct Editor, copy it to the clipboard, paste into a text editor, make changes, and then copy from the text editor and paste it back into the direct editor.

    This is not a substitute for a global Find/Replace.

  12. It is more difficult to help because you posted a screen shot instead of an actual macro. A macro can be attached to posts in this forum. Here are a couple of things that I would change:

    1. If your testdat.txt file contains only one item per line I would use the Text File Begin/End Process commands instead of the ASCII File Begin/End Process commands. But, the ASCII File Begin Process should work.

    2. Either of those commands put the content of the testdat.txt file into a variable. It is not necessary to include this command:

      Variable Set String %T1% from File: "Testdat.txt"

    3. You may want to move this line just below the ASCII File Begin Process command:

      Variable Set %N1% to ASCII value of %T1%

  13. On 10/31/2017 at 10:25 AM, terrypin said:

    ...it destroys all the many categories into which my two thousand macros are organised.

    This is true if you highlight the macros in the Macro Explorer grid. But if you click File, Export macros a dialog comes up listing the macros that contains this option:

        [ ] Include the category information in the new file

    Have you tried this way to export macros this way?

  14. Terry, I'm sorry. You did use the attachment link. I don't know why it would refer to dropbox, however.

    Like Cory, I downloaded the file from the link and opened it in Macro Express Pro. There were no macros in the file. I then packed the file and the size was set to 60 bytes. That is the size of an empty macro file.

    Maybe it will work better if you copy it from the dropbox link to a folder on your hard drive and then attempt to attach it from there.

  • Create New...