Jump to content
Macro Express Forums

Samrae

Members
  • Content Count

    407
  • Joined

  • Last visited

  • Days Won

    20

Everything posted by Samrae

  1. In my experience some programs have consistent Window Controls. Others, however, create a new Window Control every time the program runs. I happen to have macros that interact with a program somewhere in the middle. Most of the time the Window Control is consistent but sometimes it changes. To get around this, when my macro interacting with this program has a problem with the Window Control I add the new Window Control to my macro. It looks like this: Get Control: (CLIENT.EXE) Using z-order -> %Description% // Description box 6-13-12 If Control "%Description%" Does Not Exist Get Co
  2. pepanee, This article describes How to Run Macro Express as Administrator when Windows Starts. If you are able to find a different way to launch Macro Express Pro as administrator I would like to hear about it.
  3. Macro Express can assign any icon (.ico) file to a macro. As Cory points out, there are numerous icons available on the web that are free for both personal or commercial use. I have many icons in my Macro Express Pro icon folder at c:\Program Files (x86)\Macro Express Pro\Icons.
  4. Instead of doing this at the end of the macro I would do it using two macros. Create your main macro. Let's call it MainMacro. Create a second macro that looks like this: Variable Set String %T1% "Yes" Repeat Until %T1% <> "Yes" Macro Run: MainMacro // Ask the user if they want to continue Variable Set String %T1% from Prompt Repeat End I did not test this sample. You may need to adjust it but this should get you started.
  5. The 'Macro Playback Speed' has the effect of adjusting all the delays in your macro. Entering 0.1 in the 'Playback Factor:' has the effect of speeding up the macro by 10 times. All delays of 500ms run at 50ms. You could do a bulk replace in the Direct Editor. Do this to change all 'Delay 10 Milliseconds' command to 'Delay 1 Milliseconds': Click the Direct Editor button Click at the beginning of the macro Press Ctrl+R to bring up the Find/Replace dialog Enter <MSD:0010> in the 'Find what:' field Enter <MSD:0001> in the 'Replace with:' field Click the Replace All button To remov
  6. Here is a sample macro that may get you started. (Download this macro by clicking on the filename below.) // ----------------------------------- // Make choices // ----------------------------------- Multiple Choice Menu: Symptoms Clear Variables // Clear the variable array, just in case the Symptoms variable is reused Split String "%Symptoms%" on ", " into %SymptomArray%, starting at 1 // Split each choice into a separate element of an array variable // Loop through each element of the array variable and assemble the output into the Symptoms2 variable Repeat Start (Repeat 50 times) Va
  7. MacExp.exe is the process for the Macro Express Pro - Player. MacEdit.exe is the process for Macro Express Pro - Explorer. MacScript.exe is the process for the Macro Express Pro - Script Editor. If you are setting the scope of a macro to only run when MacExp.exe is on top it will never run. This process is always hidden. It can never be on top or have focus. Try setting the scope to MacEdit.exe or MacScript.exe depending on which process your macro is written for.
  8. Here is what I do: 1. Double-click the macro I want change 2. Click on Activations tab 3. Double click on the HotKey activation that appears in the upper left corner. 4. The Select a HotKey dialog comes up. Choose another HotKey. 5. Click the OK button.
  9. There are a few ways to do this. Here is what I suggest: Variable Set String %Choice% to "CANCEL" // Set a default value for the Choice variable used in the Multiple Choice Menu command Multiple Choice Menu: Choose something // use %Choice% for the Destination Variable If Variable %Choice% Equals "CANCEL" // The CANCEL button was clicked End If If Variable %Choice% Equals "A" // Option A was chosen End If If Variable %Choice% Equals "B" // Option B was chosen End If In the On Error tab of the Multiple Choice Menu command look for "The dialog was cancelled" and choose "Ignore Error". Of
  10. Use Alt+Left Arrow to move to the Favorite Commands / Code Snippets / All Commands pane (depending on which is selected) Use Alt+Right Arrow to move to the Script area (line code area) Use Alt+Down Arrow to move to the Search for Command box Once you highlight a command on the left, if you press the ENTER key it is inserted on the right side (the script area). You can choose where the commands are inserted by clicking Options and choosing "Insert Command Before Selected", "Insert Command After Selected" or "Add Command to End of Script". The way I do this is to open a new, blank
  11. To clarify, that is the Notification Area of the Taskbar. Microsoft changed the name of this area. It was formerly known as the System Tray. To access programs in the Notification Area / System Tray you can use the "Move Mouse to Tray Icon" command. After the mouse is moved you can right-click or left-click the mouse to activate the menu associated with that icon. Note, however, that the "Move Mouse to Tray Icon" command does not work with icons that are hidden by Windows. To get around this Windows allows you to select which icons are hidden (although I have had mixed results with this).
  12. I'm not sure where you saw that introduction but I do know that the PGM Functions are now free. A password will not be required, even after 30 days.
  13. When did you download the PGM Functions Library? Is the latest freeware version password protected?
  14. I tried this and macros ran fast while in Safe Mode but the delay returned when I booted into normal mode. Adding macexp.exe to the Windows Defender Exclusion list worked for me.
  15. It doesn't look like you can hide the Category pane but you can drag it to make it much smaller. Move your mouse over the bar between the Category and Macros panes until the mouse cursor changes. Then hold down your left mouse button and drag it to the left. Macro Express Pro will remember the size.
  16. You mentioned "CMD (ADMIN) window". If your cmd prompt is running as administrator then you must run Macro Express as administrator. Windows will not allow a program running with non-admin privileges to type into a program running with admin privileges.
  17. Doesn't the Text Type command work in the Command Prompt? What version of Windows are you using?
  18. The sample macros (samples.mex) contain a list of variables that are used in remarks at the top of the macro. For example: // Variables used: // T1 - Selection made in Multiple Choice Menu command // T2 - A message for the Text Box Display command // T3 - Windows version selected in Multiple Choice Menu It is a little bit of work to do but a list like this sure helps when you edit the macro in the future. I like the named variables in Macro Express Pro. It makes knowing which variables that are used a lot easier. It also makes it less necessary to know what variables are used.
  19. Here are two more to consider along with Alan's great suggestions: 6. Change the size of the browser window to allow reliable positioning of elements in the browser. Then use mouse clicks on known locations. If necessary, you can save the size of the window at the top of the macro and restore it at the end. 7. Alan mentioned using <SHIFT><TAB> (back tab). I have found that in some cases this can be more reliable rather than tabbing forward through the fields in the browser window. Something like this: Text Type: <ALTD>d<ALTU> // Move to the address field of t
  20. On a VMWare virtual machine running Macro Express Pro I created a macro that writes to a log file every second. When the VMWare session was minimized, the macro kept running. When I logged off of my workstation the macro kept running in the VM. It looks to me like it will do exactly what you trying to do. Note, however, that since the VM is like a separate computer, you would have to install MS Access on it to have it continue to process things. Macros running on the VM do not automate programs or tasks on your host computer.
  21. Have you considered using a Virtual Machine (VMWare, Virtual PC, HyperV, Virtual Box, etc.)? Macros and other tasks continue running as long as the virtual machine is running, even if the VM window is minimized. If the VM is running on a server it will continue to run even if your workstation is not connected to it.
  22. After your macro performs a Get Control command you can follow it with one of these commands. If Control %C1% Focused If Not Control %C1% Focused If Control %C1% Visible If Not Control %C1% Visible If Control %C1% Enabled If Not Control %C1% Enabled Macro Express Pro contains additional options: If Control "%cDialog%" Exists If Control "%cDialog%" Does Not Exist If Control "%cDialog%" is visible If Control "%cDialog%" is not visible If Control "%cDialog%" is focused If Control "%cDialog%" is not focused If Control "%cDialog%" is enabled If Control "%cDialog%" is disabled Note that not a
  23. There are macro commands to copy to and from the clipboard. Try something like this: Variable Set String %Temp% to "This is a test." Variable Modify String: Save %Temp% to the clipboard The Text Type command has an option to "Use Clipboard and Paste Text". By default this is set to "Simulate Keystrokes". Using this option you don't even need to use the Variable Modify String command. Sometimes I want to keep the text on the clipboard so I have my macro save and restore it, like this: Variable Set String %ClipboardSave% from the clipboard contents // Save the content of the clipboard
  24. There are many shortcuts in Windows that can be used in macros. Here is a page with the current list of Windows Keyboard Shortcuts.
×
×
  • Create New...