Samrae

Members
  • Content count

    268
  • Joined

  • Last visited

  • Days Won

    6

Everything posted by Samrae

  1. Whenever I see something like "ME goes nuts and does other actions unrelated to what I want to do" it tells me that the macro needs to slow down. Try adding Delay commands to your macro. Even when I record a macro I go back and and edit the macro via the Scripting Editor to optimize it.
  2. As far as I know you need to install Macro Express on the remote computer. However, I found some articles about using Macro Express with Remote Desktop Connection that hint otherwise. It sounds like it may be possible for your macros to work on the remote computer. Maybe you could try what the articles suggest and let us know how it turns out. macros do not work when using a Remote Desktop Connection in full screen mode How can I use Macro Express with Remote Desktop Connection? using the Remote Desktop Client in full-screen mode, my macros will not work
  3. I'm not sure what you mean by "a remote browser from Windows 10". Could you explain?
  4. I do not understand what this means. Is the macro being activated? Did you try one of the techniques above? What program are you typing into?
  5. The first thing to determine is whether or not the macro is being activated. You can do this one of several ways. Put a Text Box display at the top of your macro. It may say something like "The macro has started" Put a Sound File command at the top of your macro. Open the Macro Explorer. Click Options, Preferences, Playback and the Miscellaneous tab. Click to enable the "Play a sound when a macro runs" and choose a sound. If your macro is not being activated choose a different activation. If you continue to have trouble tell us specifically what activation you are trying to use. If the macro is being activated then you can use several techniques to debug it. Here are some ideas: Use the built-in debugger to step line by line through your macro Put Text Box Display commands throughout your macro
  6. Try "Variable Set String: Prompt" and "Variable Set Integer: Prompt" commands. Something like this may get you started: Variable Set String %Used%: Prompt Variable Set String %New%: Prompt Variable Set Integer %iUnits%: Prompt Text Type (Simulate Keystrokes): Finished with %Used% vehicles vs %New% in ___ 2016 (%Units%) <VARIABLE SET STRING Option="\x01" Destination="%Used%" Prompt="Enter used vehicles" Mask="FALSE" OnTop="FALSE" Left="Center" Top="Center" Monitor="0"/> <VARIABLE SET STRING Option="\x01" Destination="%New%" Prompt="Enter new vehicles" Mask="FALSE" OnTop="FALSE" Left="Center" Top="Center" Monitor="0"/> <VARIABLE SET INTEGER Option="\x01" Destination="%iUnits%" Prompt="Enter number of units" Mask="FALSE" OnTop="FALSE" Left="Center" Top="Center" Monitor="0"/> <TEXT TYPE Action="0" Text="Finished with %Used% vehicles vs %New% in ___ 2016 (%Units%)"/>
  7. The non-portable version of Macro Express Pro can be configured with certain macro files that cannot be closed by the user. These are referred to as Persistent macro files. You can save macros with Macro Express Pro Portable in one or more macro files.
  8. The only way I am aware of to run Macro Express Pro as administrator without the UAC prompt is via the Task Scheduler. Your description of the task in Task Scheduler differs from this documentation: How to Run Macro Express as Administrator when Windows Starts. That example does not use cmd.exe. Because I do not load Macro Express Pro as admin I use the standard Macro Express Pro startup option found in Options, Preferences, Startup. If a startup macro does not consistently run when Macro Express Pro is loaded when Windows starts you may want to try the "Wait for [ ] seconds before initializing the program" setting found in Options, Preferences, Startup. This article has more information: Startup macros do not work when Macro Express is loaded when Windows starts.
  9. We have drifted a bit from the original topic for this thread but ... Linux, Unix and MacOS use LF as a line terminator. As mentioned, Windows uses CRLF. This difference can cause issues with files retrieved from different systems.
  10. Here are two other ways to append a carriage return to a text file. Note that in Windows lines are terminated with two control characters: CR LF 1. The "Variable Modify String: Append %T1% to Text File" has a checkbox that says to include CR/LF. You could use this with an empty variable to append only CRLF. 2. This is what I do. At the top of my macro I include these: Variable Set %T13% to ASCII Char of 13 Variable Set %T10% to ASCII Char of 10 Then when setting strings I do something like this: Variable Set String %T1% "SomeValue%T13%%T10%"
  11. Try this: Variable Set Integer %N1% to 0 Text File Begin Process: "FileIn.txt" Variable Modify Integer: Inc (%N1%) Text File End Process // Here %N1% contains the number of lines Copy and paste this code: <IVAR2:01:01:0><BTFBEG:001:000001:000000:c:\Users\username\Documents\FileIn.txt><NMVAR:08:01:0:0000001:0:0000000><BTFEND><REM2:><REM2:Here %N1% contains the number of lines>
  12. I think rberg's explanation is likely valid. I have a suggestion that doesn't address your original question. You can delete multiple characters by holding down the shift key and pressing the arrow right key multiple times. If you also hold down the ctrl key you can highlight a word with each arrow key press. Then when everything is highlighted you can press the delete key once.
  13. I did not understand either until you explained further. I have no idea why it used to work and does not now work. Perhaps it is caused by a Windows update or installing a new application. Have you rebooted your computer recently? Here are some ideas to try: 1. Try increasing the Delay after clipboard commands found in Options, Preferences, Delays. By default this is 250. Try a very large value, perhaps 1500, to see if it helps and then reduce the value. 2. Add Delays: Clipboard start copy "My Text" Clipboard end copy Delay 1 Seconds Clipboard paste Text type <ENTER> Clipboard start copy "My Text 2" Clipboard end copy Delay 1 Seconds Clipboard paste Text type <ENTER> Clipboard start copy "My Text 3" Clipboard end copy Delay 1 Seconds Clipboard paste Text type <ENTER> Again, use large delays to see if it helps and if it does help reduce the amount of delay. 3. I do not use the Clipboard start copy and Clipboard end copy commands. This is how I would write this sample macro: Text Type: My Text Text Type: <ENTER> Text Type: My Text 2 Text Type: <ENTER> Text Type: My Text 3 Text Type: <ENTER> Inside the Text Type commands that include My Text click the box that says "Use Clipboard to Paste Text". You may still need some small delays. I usually need to add delays after typing <ENTER>: Text Type: My Text Text Type: <ENTER> Delay 0.1 Seconds Text Type: My Text 2 Text Type: <ENTER> Delay 0.1 Seconds Text Type: My Text 3 Text Type: <ENTER> Delay 0.1 Seconds
  14. For security purposes Windows (since Vista) does not allow a program running with normal privileges to interact with a program running with elevated privileges. This article describes how to run Macro Express as Administrator when Windows starts up: https://www.macros.com/faq/1.92.html
  15. This is what I do: 1. Open the macro to debug in the Scripting Editor. 2. Click Debug, Debug Windows, Variable Values to display the Variables window. 3. Highlight the line in the macro where you want to test. 4. Press Ctrl+B to set a breakpoint 5. Click the run button (green arrow) The macro will run up to the breakpoint. Note the values in the variables in the Variables window. 6. Press the F8 button to step on macro line at a time. Watch the variables change in the Variables window. I hope this helps.
  16. Just to see if it helps would you try running Macro Express as administrator?
  17. You can tell the Text Type command to send an <ENTER> by either putting in the <ENTER> tag or by pressing the Enter key on your keyboard. In this example: Line #1<ENTER> Line #2 Line #3<ENTER>Line #4<ENTER> Two Enters will be typed between Line #1 and Line #2. One because of the <ENTER> and the other because of the non-visible Enter. There will be one line between Line #2 and Line #3 and between Line #3 and Line #4.
  18. I find <ALT> often does not work, specifically with Office programs. I generally use <ALTD> and <ALTU> instead. Have you tried Text Type (Simulate Keystrokes): <ALTD><ALTU> Outlook may even want a small delay in between: Text Type (Simulate Keystrokes): <ALTD> Delay: 0.05 seconds Text Type (Simulate Keystrokes): <ALTU> or this Keystroke Speed: 30 milliseconds Text Type (Simulate Keystrokes): <ALTD><ALTU> Keystroke Speed: 0 milliseconds
  19. You may have read that backwards. Some programs do not allow Macro Express Pro to see mouse events from it or send mouse events to it. Windows calls these events messages. So, program XX does not let Macro Express Pro see messages generated from inside program XX. And it ignores messages Macro Express Pro sends messages to program XX. This starts to occur when the mouse is over program XX or when program XX is active/focused.
  20. What you are seeing is normal. When Macro Express Pro is running with standard user permissions Windows does not allow mouse events (clicks and moves) from programs running with elevated permissions (admin). The Mouse Locator also stops working inside Task Manager. To resolve this close the Mouse Locator and Macro Express, run Macro Express Pro as Administrator and click to run Mouse Locator again. Further, programs can be written to prevent mouse events from other programs (such as Macro Express Pro) regardless of there permissions levels. The information I received said that to determine if a program prevents these mouse events launch the Mouse Locator and see if it updates over that program. My testing with such a program confirmed this. When I ran Macro Express as administrator and ran the Mouse Locator it updated the coordinates over the Disk Management, Computer Management and Task Manager programs. I did not, however, try it when Disk Management said "Connecting to Virtual Disk Service". Edit: I tried it and it worked.
  21. Terry, have you tried it while running Macro Express Pro as Admin?
  22. Here are some ideas I had: 1. See if using <ALTD> and <ALTU> instead of <ALT> works better. 2. Try slowing down the typing a bit. Maybe Acrobat or your computer are responding a little slowly. Keystroke Speed: 1000 milliseconds Text Type (Simulate Keystrokes): <ALTD>v<ALTU>ma Keystroke Speed: 1 milliseconds (If this helps then adjust the 1000 milliseconds to something more reasonable that still works.) 3. To determine whether or not a macro is being activated you can, as rberg suggested, put a Text Box Display as the first line in the macro. Another idea is to put a Sound File command in the first line of the macro. Or, with v 4.7.0.1 and later you can use the "Play a sound when a macro runs" option found in the Preferences under Playback, Miscellaneous. This option will play a sound every time a macro is activated so you will want to turn it off after fixing your macro. 4. Try running Macro Express Pro as Administrator. Some programs do not allow macros to run unless Macro Express is running with Admin privileges. 5. Try turning Protected Mode off in Adobe Acrobat Reader: Open Adobe Acrobat Reader Click Edit, Preferences For Adobe Acrobat Reader DC or XI click Security (Enhanced) For Adobe Acrobat Reader X click General Click to uncheck the "Enable Protected mode at startup" setting Click the OK button to save Restart Adobe Acrobat Reader Please let us know what, if anything, helped.
  23. By the way, you should upgrade from v 3.5c to the latest version. At the time of this writing the latest version is v 3.10b. There have been hundreds of bug fixes, enhancements and security patches since v 3.5c. Your Macro Express 3 license will work with the latest version. The Revision History contains a complete list of changes.
  24. There are several ways to save variable values for use in other macros. You can save to and restore from Environment variables, the Registry, an INI File and Text Files. You may also use the Variable Save and Variable Restore commands. There is an example of saving a value between macros in the samples.mex sample macro file. This file should have been installed on your computer when you installed Macro Express. It may be in the c:\Program Files (x86)\Macro Express3 folder or it may be in your documents folder. Or you can download a copy from http://www.macros.com/samplemacros3.htm. (Do not try to use or edit the file in the Program Files (x86) folder. You should copy it to another location before using it. Windows prevents programs making changes to files in the Program Files (x86) folders.) Once you find the samples.mex macro file look at the macro "Counter_From_Run_To_Run". This macro saves a value in the file TESTVAL.TXT located in your Windows Temp folder. It increments the value and saves it back out to TESTVAL.TXT. If you study this macro you can see how it is done. For more detailed information about variables read the article How do Local and Global variables work and what is Variable Scope? This article is written for Macro Express Pro and refers to variables like %Address% instead of something like %T1% but the concepts are the same for Macro Express 3. The section titled "Making information available to different macro threads" details the ways to save and load variables.
  25. Rather than adding a Keystroke Speed command at the top of each macro you may want to adjust the Text Type Delay found in the Preferences under Delays. If these don't work you could add a Delay command at the top of each macro. What malware/anti-virus do you use? A few months ago Windows Defender was causing delays activating macros. Your symptoms are do not exactly match what you are describing but it Windows Defender (or other Internet Security software) can affect how macros work.