Jump to content
Macro Express Forums

Samrae

Members
  • Content Count

    398
  • Joined

  • Last visited

  • Days Won

    20

Samrae last won the day on June 5

Samrae had the most liked content!

Community Reputation

15 Good

1 Follower

About Samrae

  • Rank
    Expert

Profile Information

  • Gender
    Male

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. Your answer came in just before as I submitted mine. Are we thinking alike now? 😃
  2. 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 may want to try the "Use suffix keys" option. There is extensive documentation on how the shortkey macro activation works here: https://www.macros.com/skplayback.htm
  3. 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.
  4. 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.
  5. 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.
  6. 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.
  7. 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.
  8. 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.
  9. 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 faster than you can. 😃 What I have been trying to suggest is to slow things down. Maybe you also need to slow down the keystrokes between the characters of your name and password. If I recall correctly, when using a 3270 emulator, each keystroke is accepted by the emulator, sent to the host (IBM mainframe computer) and then sent back to the emulator to be displayed (or something like that). Try something like this. This will be very slow! It is only a test to see if slowing things down helps the emulator and host recognize the keystrokes. Try it and tell us exactly what you see. Keystroke Speed: 500 milliseconds Text Type (Simulate Keystrokes): UserName Delay: 2 seconds Text Type (Simulate Keystrokes): <KEYD:VK_TAB> Delay: 1 seconds Text Type (Simulate Keystrokes): <KEYU:VK_TAB> Delay: 2 seconds Text Type (Simulate Keystrokes): Password Delay: 2 seconds Text Type (Simulate Keystrokes): <KEYD:VK_TAB> Delay: 1 seconds Text Type (Simulate Keystrokes): <KEYU:VK_TAB> Delay: 2 seconds Text Type (Simulate Keystrokes): <KEYD:VK_TAB> Delay: 1 seconds Text Type (Simulate Keystrokes): <KEYU:VK_TAB>
  10. 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 Delay: 5 seconds Text Type (Simulate Keystrokes): <TAB> Delay: 5 seconds Text Type (Simulate Keystrokes): <TAB> The Delays are extra long just to see if the commands work. If they do you can reduce the delay time. If that does not work you could try 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 Delay: 4 seconds Text Type (Simulate Keystrokes): <KEYD:VK_TAB> Delay: .5 seconds Text Type (Simulate Keystrokes): <KEYU:VK_TAB> Copy this and paste it into your macro: <COMMENT Value="Do whatever commands are necessary to launch the Mocha 3270"/> <COMMENT Value="emulator and wait for it to be completely loaded and stable"/> <COMMENT/> <TEXT TYPE Action="0" Text="your User Name"/> <DELAY Flags="\x01" Time="1"/> <TEXT TYPE Action="0" Text="your Password"/> <DELAY Flags="\x01" Time="4"/> <COMMENT/> <TEXT TYPE Action="0" Text=" <KEYD:VK_TAB>"/> <DELAY Flags="\x01" Time=".5"/> <TEXT TYPE Action="0" Text=" <KEYU:VK_TAB>"/>
  11. 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"
  12. 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[3]%" Text Box Update: Progress Variable Modify Integer set %N[3]% to the contents of %N[2]% End If ASCII File End Process <TEXT BOX DISPLAY Title="Progress" Content="{\\rtf1\\ansi\\deff0{\\fonttbl{\\f0\\fnil Tahoma;}}\r\n\\viewkind4\\uc1\\pard\\lang1033\\f0\\fs16 \r\n\\par Processing line number: %N[1]%\r\n\\par }\r\n" Left="Right" Top="Top" Width="327" Height="114" Monitor="0" OnTop="TRUE" Keep_Focus="FALSE" Mode="\x02" Delay="1"/> <COMMENT Value="Process the file"/> <ASCII FILE BEGIN PROCESS Filename="D:\\ZipCodeDownload\\csv\\zd.csv" Format="CSV" Start_Record="1" Process_All="TRUE" Records="1" Variable="%T%" Start_Index="10"/> <COMMENT Value="Display progress counter"/> <VARIABLE MODIFY INTEGER Option="\x03" Destination="%N[2]%" Value1="%N[1]%" Value2="100"/> <IF VARIABLE Variable="%N[2]%" Condition="\x01" Value="%N[3]%" IgnoreCase="FALSE"/> <TEXT BOX UPDATE Header="Progress" Content="{\\rtf1\\ansi\\deff0{\\fonttbl{\\f0\\fnil Tahoma;}}\r\n\\viewkind4\\uc1\\pard\\lang1033\\f0\\fs16 \r\n\\par Processing line number: %N[1]%\r\n\\par }\r\n"/> <VARIABLE MODIFY INTEGER Option="\x06" Destination="%N[3]%" Variable="%N[2]%"/> <END IF/> <COMMENT/> <ASCII FILE END PROCESS/>
  13. Does Casper run with elevated (admin) privileges? If so you will need to run Macro Express with elevated privileges.
×
×
  • Create New...