Jump to content
Macro Express Forums

Samrae

Members
  • Posts

    452
  • Joined

  • Last visited

  • Days Won

    22

Everything posted by Samrae

  1. 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.
  2. 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
  3. 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.
  4. 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.
  5. 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.
  6. 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.
  7. 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?
  8. 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.
  9. Contact support at https://www.macros.com/purchaseprotection.htm
  10. 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.
  11. 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%
  12. 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?
  13. I would check your internet security software. Windows Defender was causing this exact error some time ago. At times Norton Internet Security does that today. Also, what version of Macro Express are you using? Sometimes certain issues are fixed by updating to the latest version.
  14. If interested, here is an article describing How to Run Macro Express as Administrator when Windows Starts.
  15. I second Cory's suggestion. Create a new file and import only the macros you want.
  16. The first thing to try is to run Macro Express Pro as Administrator.
  17. 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.
  18. Terry, Why don't you just attach the files to the forum post? I see "Drag files here to attach, or choose files..." below.
  19. Something like this may work: Set Variable %T1% to "Path to My Documents" Replace "\Documents" with "\Google Drive\Folder A\Folder B\Shared Excel Data File.csv" in %T1%
  20. Are you logged on to Windows when the macro is supposed to run? Try setting the time to 12:01 AM and see if it makes a difference.
  21. I do not know. Have you tried it? How about Macro Express? Try the "Set Window Order Always on top" command.
×
×
  • Create New...