Jump to content
Macro Express Forums

Samrae

Members
  • Content Count

    407
  • Joined

  • Last visited

  • Days Won

    20

Everything posted by Samrae

  1. No, you were not wrong. UWP programs do not follow long established standards for Windows programming. Hooks work but many hotkeys are blocked. I cannot launch a UWP .exe using the Program Launch command so I have to launch it from the menus. They do not use Alt key shortcuts. The is no File menu. They are very slow and require long delays. They do not support Window Controls. Because you prefer to use Window Controls your statement that macros do not not work with UWP programs is not incorrect. Specifically, in this case, your macro activated with Ctrl+Keypad 9 did not
  2. Do you have a macro that uses the Keystroke Speed command? I discovered that if one macro sets the Keystroke Speed, to 500 say, and does not reset it back to 0 then all other macros that I run after that type text slowly. I try to remember to set Keystroke Speed back to 0 in any macro that changes it. You could check for this by putting a Keystroke Speed: 0 at the top of one of your macros that is typing slowly. If it starts to work more quickly you can search for the macro that slows down the keystroke speed. Another thing to check is whether the Delay after keystroke
  3. Stupid question: Does it help if you restart Macro Express and/or Windows? My macros slowed waaay down when we switched from Norton Internet Security to BitDefender. (I cannot wait to get rid of BitDefender. 🙁)
  4. I failed to mention that my macro is activated with Ctrl+Alt+a. It works whether or not Settings is already loaded. in other words, a Ctrl+Alt+a hotkey works as an activation from within the Settings application.
  5. It has been stated several times on forum that Macro Express does not work with UWP programs. That is not my experience. UWP programs behave differently than Win32 programs but, with some effort, I have been able to get Macro Express to work with them. I took this as a challenge to get Macro Express to work with Windows 10 Settings. Here is a macro that opens Windows Settings, navigates to Apps & Features, and closes Settings. Note: This macro was written with Macro Express Pro 6, not ME 4. // ----------------------------------- // Initialization // ----------
  6. The Code Tool is here in the forum software. When you are typing into the forum there should be a series of icons right above. The <> is the Code Tool Terry is demonstrating:
  7. To copy what you see in the Macro Script Editor, highlight the macro lines lines you want, right-click, and click "Copy Command Text". Then, in this forum, click the <> icon and type ctrl+v to paste. The result looks like this: Text Type (Simulate Keystrokes): <ALT>e Text Type (Simulate Keystrokes): <ALTD>e<ALTU> To copy macro commands that someone can copy from this forum and paste into Macro Express, highlight the macro lines you want, right-click, and click "Copy". Then, again, in this forum, click the <> icon and type ctrl+v to paste. The result looks l
  8. As recommended elsewhere, please put macro samples in a codebox (see <> above) instead of posting an image. When you have the macro do a Text Type <ALT>E what gets sent to the application is <ALT Down> <Shift Down> e <Shift Up> <ALT up>. What you need is: Text Type (Simulate Keystrokes): <ALT>e Sometimes that does not work reliably. This often works better: Text Type (Simulate Keystrokes): <ALTD>e<ALTU>
  9. Another thing you could do is to add a Wait for File Ready on the line above the Log Messages / Log Errors commands.
  10. Your answer came in just before as I submitted mine. Are we thinking alike now? 😃
  11. I recommend you begin by clicking Options, Preferences, Activations and then the ShortKeys tab. Enter something like ".." in the Prefix keys box. Once you do that your shortkey macro will not automatically type out. If the macro is one you recently changed you can click on the "Modified" header. This will bring the most recently modified macro to the top (or bottom) of the list. If I recall correctly, I usually have to click in the Modified header twice to move the most recently modified macro to the top. If the issue is with your shortkey activation settings then you m
  12. A copy of the samples.mex file can be found in the folder where the Macro Express program files are installed (C:\Program Files (x86)\Macro Express Pro 6). Use Windows File Explorer to copy this file to another folder then, within Macro Express, click File, Open File to open it. You should not open the samples.mex file directly in the C:\Program Files (x86)\Macro Express Pro 6 folder. Or, as acantor said, you can download samples.mex from here: Sample Macros.
  13. When you intend to press Ctrl+c to copy the pixel color to the clipboard make sure that the Mouse Locator has focus. The only time I have had this not work is when focus has been changed to another window.
  14. See if running Macro Express as Administrator helps. If Mocha 3270 was written that long ago it may be running in some Windows Compatibility mode. Macro Express may need to be running as Administrator to work correctly with a program running in a compatibility mode.
  15. Yes, if you are using the portable version the settings would be in an .INI file and not in the registry. If the .INI file contains Check Syntax = 1 I would expect the syntax checking to work. To be sure, you could delete the line in the .INI file that contains Check Syntax to tell Macro Express to turn syntax checking back on. Be sure that Macro Express is not running when you change the .INI file.
  16. You could also restore syntax checking by running the MacDef.exe program in the c:\Program Files (x86)\Macro Express 4 folder. But, if you do that, all of your preferences will be reset to their default values.
  17. I duplicated this issue using Macro Express Pro 6. When the Syntax Error box is displayed and you click "Don't show this again", syntax checking is turned off and cannot be easily turned back on. Syntax checking can be restored if you edit the registry and change HKEY_CURRENT_USER\Software\Insight Software Solutions\Macro Express 4\Editor\Check Syntax to a value of 1. I have reported this to Insight Software Solutions. There should be a better way to re-enable syntax checking.
  18. So, add a tab: Text Type (Simulate Keystrokes): your User Name Delay: 4 seconds Text Type (Simulate Keystrokes): <KEYD:VK_TAB> Delay: 1 seconds Text Type (Simulate Keystrokes): <KEYU:VK_TAB> Delay: 4 seconds Text Type (Simulate Keystrokes): your Password Delay: 4 seconds Text Type (Simulate Keystrokes): <KEYD:VK_TAB> Delay: .5 seconds Text Type (Simulate Keystrokes): <KEYU:VK_TAB> Maybe a clue. It is interesting that your password was entered partially into two different fields. Here is another thing to try. Macro Express can "type" much fa
  19. It has been a while since I used 3270 emulator software. I remember some things being a little tricky to automate because the emulator software handled keystrokes directly instead of via the usual Windows messages and hooks. What happens if you send keystrokes via "Simulate Keystrokes" instead of via a Window Control? Something like this: // Do whatever commands are necessary to launch the Mocha 3270 // emulator and wait for it to be completely loaded and stable Text Type (Simulate Keystrokes): your User Name Delay: 1 seconds Text Type (Simulate Keystrokes): your Password Del
  20. In the Text Type command dialog there is a dropdown with options that determine how the Text Type work. The Action= corresponds to this choice: Simulate Keystrokes: Action="0" Use Clipboard and Paste Text: Action="1" Send Text Directly to Control: Action="2" Paste Rich Text: Action="3"
  21. You may find that displaying the message that often slows down your processing. Some of my macros update the counter every 25 iterations while other macros update every 100. Here is a snippet of one of my macros. It works just as Cory suggested. This sample uses the ASCII File Begin/End Process loop but a Repeat loop will work just as well Text Box Display: Progress // Process the file ASCII File Begin Process: "D:\ZZZZ\csv\zd.csv" (Comma Delimited Text (.csv)) // Display progress counter Variable Modify Integer: %N[2]% = %N[1]% / 100 If Variable %N[2]% Does not Equal "%N
  22. Does Casper run with elevated (admin) privileges? If so you will need to run Macro Express with elevated privileges.
  23. 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:
×
×
  • Create New...