Jump to content
Macro Express Forums


  • Content Count

  • Joined

  • Last visited

  • Days Won


Everything posted by Samrae

  1. If you intended to have your macro wait 15 seconds after the Bookmarks window closes you should not use Macro Stop. No macro commands, including the Delay command at the end, will run after the Macro Stop command. Instead use Break. That skips to the macro command after the End Repeat. However, in this case, neither Break nor Macro Stop is needed because setting T77 to Done will stop the repeat loop. Try something like this: // Run the macro until the window is closed. Variable Set String %T[77]% to "Not" Repeat Until %T[77]% Equals "Done" If Not Window "Bookmarks - Google Chrome" is ru
  2. The delay after End Repeat will never be used. It should look like this: Macro Stop End If Delay: 15 Seconds End Repeat Without the delay inside the repeat loop Macro Express will run these macro commands as quickly as possible without slowing or stopping. It will use 100% of one of your CPU cores. This puts your macro into what your computer considers an infinite loop. I wouldn't be surprised if more than Chrome freezes. And Terry is right, your delay command contains 15 milliseconds instead of 15 seconds.
  3. Another way to accomplish this is to not let the macro halt until the window has been closed. If a specific macro is running it cannot be activated again. This demonstrates using Notepad. Text Box Display: Note_pad is running Repeat Until %Done% Equals "Done" If Not Window "Notepad" is running Variable Set String %Done% to "Done" Macro Stop End If Delay: 1000 milliseconds End Repeat <TEXT BOX DISPLAY Title="Note_pad is running" Content="{\\rtf1\\ansi\\ansicpg1252\\deff0\\deflang1033{\\fonttbl{\\f0\\fnil Tahoma;}}\r\n{\\colortbl ;\\red0\\green0\\blue255;}\r\n\\viewkin
  4. That issue was fixed in a later version of Macro Express Pro 4. The latest version of Macro Express Pro 4 is v available here. However, in the long run, I think you''ll be happy having upgraded to Macro Express Pro 6.
  5. Here are some suggestions that may help: 1. There is a command to extract the filename from a full path. Take a look at the "Variable Set From File path" macro command. 2. Add a "Wait for File to be Ready" macro command before the "If File Exists"" macro command. Macro Express may get to the If File Exist command before Windows has finished copying the file. 3. Since you already have the filenames and file paths consider using the "Copy File/Files" macro command to copy the files. It is generally easier to copy the files using Macro Express instead of manipulating Windows
  6. Generally, in Windows, this appears as CRLF, not LFCR. Try this: Variable Modify String: Replace "-A%CR%%LF%" in %Temp% with ""
  7. Try using Ctrl+a, not Ctrl+A. When you use Ctrl+A Macro Express sends: <Ctrl Down><Shift Down>a<Shift Up><Ctrl Up>. Many programs will not respond to that.
  8. Seems to work for me. Note that the Macro Express Script Editor automatically highlights a macro command when it has been entered so the background color is blue. But, if you close the macro and reopen it the background color appears correctly.
  9. To copy the macro: highlight acantor's example in the second box (the one that starts with <VARIABLE) , type Ctrl+c to copy to the clipboard, open a new macro in Macro Express and type Ctrl+v to paste.
  10. Make sure they are defined in both macro A and macro B and that they are set as Global variables in both.
  11. After further testing it looks like using MacExp.exe works if Macro Express Pro is not already running.
  12. I tested this on both Windows 7 and Windows 10 1903. I used a batch file instead of the Run dialog. This does not work: "C:\Program Files (x86)\Macro Express Pro 6\macexp.exe" /ATest Text Box Display This does: "C:\Program Files (x86)\Macro Express Pro 6\Meproc.exe" /ATest Text Box Display The results were the same for Windows 7 and Windows 10.
  13. Mikecox, What version of Macro Express are you using? And what version of Windows?
  14. acantor: To avoid having 300 new windows put the first Text Box Display before the Repeat Start command: Variable Set Integer %Count% to 1 Text Box Display: Progress <--- BEFORE Repeat Start Repeat Start (Repeat 10 times) Delay: 1000 milliseconds Variable Modify Integer %Count%: Increment Text Box Update: Progress Text Box Close: Progress End Repeat
  15. Something like this might work: Variable Set Integer %MacroNumber% to a random value between 1 and 8 Switch( %MacroNumber% ) Case: 1 Macro Run: Macro 1 End Case Case: 2 Macro Run: Macro 2 End Case Case: 3 Macro Run: Macro 3 End Case Case: 4 Macro Run: Macro 4 End Case Case: 5 Macro Run: Macro 5 End Case Case: 6 Macro Run: Macro 6 End Case Case: 7 Macro Run: Macro 7 End Case Case: 8 Macro Run: Macro 8 End Case End Switch
  16. You may want to try the new "HTTP Get" command in Macro Express Pro v If it works for you please post here. I am curious to know how it works.
  17. There are hotkeys to abort or pause macros. See Options, Preferences, Playback, Miscellaneous. Does that do what you need?
  18. Are you in the folder where the Macro Express program files are installed? cd "C:\Program Files (x86)\Macro Express Pro" macexp.exe /ATerminate Macro Express or include the full path "C:\Program Files (x86)\Macro Express Pro\macexp.exe" /ATerminate Macro Express
  19. Do your Mouse Activated macros have only one mouse button selected? (Only Right-Click?)
  20. Yes. I find a little white space helps make things more understandable, especially if I look at the macro a few days, weeks or months later.
  21. Oops. I'm sorry kunkel321. I'm used a pre-beta test version of Macro Express Pro 6 when I wrote that macro. I switched back to the released version and updated the macro in my post above. Please try to copy/paste again.
  • Create New...