Jump to content
Macro Express Forums

Samrae

Members
  • Content Count

    409
  • Joined

  • Last visited

  • Days Won

    21

Everything posted by Samrae

  1. Does Casper run with elevated (admin) privileges? If so you will need to run Macro Express with elevated privileges.
  2. I do not know Python but here are some suggestions. 1. To make information available to a separate program you would need to have Macro Express save it somewhere the other program has access to. I can think of two options: You could write to a file or you could write to the registry. There are macro commands to write and read to either place. I would think there are Python commands to read and write to a file or the registry. 2. There are two ways to launch a macro via an external program such as a Python script. a) Have Python call Macro Express this way:
  3. Ctrl+Alt+Shift+X starts and stops the Capture Macro process.
  4. I recently decided to investigate the purpose of the C:\Windows\WinSxS folder. You may discover that it gets huge containing many gigabytes of of files. I thought I could shrink my backups by cleaning up these files (it didn't). From a Google search: Because of what this folder is used for I would expect Windows to prevent any attempt to run programs from there. Thank you Terry for showing the correct path to SnippingTool.exe.
  5. When you launch Macro Express and then close it the size and position of the Macro Express windows will be remembered. The next time it launches it will come up in that position. For those macro commands that display something, most allow you to set the position. The Basic pause does not allow you to specify the position but the Complex Pause command will.
  6. Your response tells us that it is possible to run a macro on the remote computer (assuming you ran Notepad on the remote computer). At this point I would not worry about Window Controls (sorry Cory). Maybe later but not right now. This is how I would approach this. (Do all this on the remote machine.) Put a Macro Stop command in your macro. Start by putting it after the launch of ACT and, perhaps, the first keystrokes. Run it. If something does not work adjust the macro commands until it does. If it does what it is supposed to move the Macro Stop command down in your macro. Run tha
  7. The Pause command is in the Timing categories of macros. The Pause command displays a message and stops the macro until you click on the Resume button. To easily find commands you can type in the search box underneath All Commands box. You can click in the box or press Alt+Down Arrow. To return to the script pane you can press Alt+Right Arrow.
  8. When Macro Express runs it can type keystrokes and move or click the mouse much faster than a human can do it manually. Each computer and application responds differently. I would expect that connecting to your neighbor's computer via RDP is much, much slower than running ACT on your laptop. It is possible that the problem is as Cory describes where keystrokes and mouse movements are not occurring because of the RDP connection and the application having focus. However, it could also be that the macro is just running too fast. Here are some suggestions. 1. Tr
  9. Sometimes <ALT>i does not work. Try using <ALTD>i<ALTU>. While I sometime run across a program where things like <ALT>i do not work I have never had an instance where <ALTD>i<ALTU> failed for me. Text Type (Simulate Keystrokes): <ALTD>i<ALTU> Delay: 500 milliseconds Text Type (Simulate Keystrokes): t Delay: 500 milliseconds
  10. Here are some observations: Activities Emailer.mex 1. I would recommend a delay after the Activate or Launch command. It may take some time for the computer to load the program and be ready to accept keystrokes. This might be why it does not work on the remote computer. 2. Since you are not doing any mouse movements or clicks you could remove the Window Resize command. 3. Line 16 is Text Type (Simulate Keystrokes): <CTRL> <SPACE> Did you intent to have <ctrl><space><space> ? There is an extra space between >
  11. First check your Shortkeys playback settings found in the Shortkey preferences. What program are you typing into? If you are using Edge try a different browser. If that fixes the problem then download the Chromium based Edge.
  12. There is another example of using the ASCII Text File Process command in the samples.mex macro file. This file should be located somewhere in your My Documents folder. You can also copy it from the folder where the Macro Express Program files is installed (do not try to use it from the Program Files folder). C:\Program Files (x86)\Macro Express Pro 6\samples.mex Or, you can download it from this page: Sample Macros Look for the macro "Process a CSV Delimited File".
  13. You could also try adding a "Wait for File to be Ready" command in front of the Delete File/Files command: Lock Player Text Type (Simulate Keystrokes): <ALT>fl Delay: 1000 milliseconds Wait for File to be Ready: C:\Web\n1\generated\files-are-okay.txt Delete File/Files: "C:\Web\n1\generated\files-are-okay.txt" Delay: 250 milliseconds Window Activate: Mozilla Firefox Wait for Window Title: Mozilla Firefox Text Type (Simulate Keystrokes): <CONTROL>4 Delay: 500 milliseconds Text Type (Simulate Keystrokes): <CONTROL><F5> // Use <CONTROL><F5> to refresh browse
  14. Building on what Cory said: Does the macro work if you move the file to something like "C:\Users\Public\Web\n1\generated\files-are-okay.txt"?
  15. You don't say how you get your html file. But, since you have upgraded to Macro Express Pro you should check out the new HTTP Get command. This command allows you to specify a URL and a variable. Macro Express Pro will load the html and save it to the specified variable.
  16. When you copy and paste a macro the variables are, in fact, not created. Macro Express (and Macro Express Pro) looks through the script for variables and prompts you to create them. There are at least 2 prompts per variable. Normally it works just fine to press the ENTER key a bunch of times until it stops asking for new variables. But, there are some rare cases where a command support different variable types. For example, it might allow either a string or an integer. In these cases Macro Express tries to make a good guess about which type of variable to define but once in a while
  17. I have found Window Activate and Wait for Window Title work well for the main window of an application but not always for dialogs that the application might pop up.
  18. It might work best to use Mouse Move: Relative to Current Window. I find it better to work with positions relative to the active window because I rarely have my applications at full screen. When they come up they are usually in slightly different positions. Another thing to consider is if the button moves when the active window is resized. If this is the case then your macro would be more reliable if you set the window to a specific size. Here is an actual example from one of my macros: Window Move and Size: Move "CMS: *Defect" to (635,320) and size to 990 x 750 Mouse Move: 90,
  19. Here is an article about how have a macro send a text / SMS message to your phone: Send Text Messages to Mobile Phones
  20. For Windows the value for 'RETURN' is actually a CR followed by LF. You can define variables to represent CR and LF: Variable Set to ASCII Char 13 to %CR% Variable Set to ASCII Char 10 to %LF% Then you could use something like this: If Variable %x% Contains "Hello%CR%%LF%There" to search for Hello there There are a couple of ways to search for parts of the message. If Variable %x% Contains "Hello" AND If Variable %x% Contains "there" MessageBox: Result True Else MessageBox: Result False End If Another way would be to parse the message using the Variable Modify S
  21. There is nothing inherently risky about saving data in the registry as long as you know and remember which registry area (key) you use. Using the registry may be somewhat faster than reading from a file. However, depending on what your macro is doing, you may not notice the difference. There is a potential side effect of using values in the area of the registry (registry key) that Macro Express uses such as this: HKEY_CURRENT_USER\Software\Insight Software Solutions\Macro Express 6\My Values When you export the Macro Express settings (Tools, Export Program Conf
  22. You're welcome. Also try Alt+Left to move to the list of commands and Alt+Right to move to the script.
  23. To enter a comment on a separate line: while in the Script Editor press Alt+Down Arrow to move to the Search box. Type "Comment" and then press the ENTER key. The Comment dialog comes up.
  24. A comment without text is a blank line. // ---------------------------------------------------------- // Initialization // ---------------------------------------------------------- Variable Set From Misc: "Name of Current Macro" into %MacroName% Variable Set String %T[1]% to "" Variable Set String %T[2]% to "You indicated that you are running Windows " Get OS Version String: %T[5]% // -------------------------------------------------------- // Display Introduction and Instructions // -------------------------------------------------------- Variable Set Integer %Left% to 0 // Unused
×
×
  • Create New...