Jump to content
Macro Express Forums


  • Content count

  • Joined

  • Last visited

  • Days Won


Everything posted by rberq

  1. Announcement: Macro Express v 3.11a

    www.macros.com/download.htm You should be able to apply the same license code you used for your initial installation and for your last upgrade.
  2. Saving to Excel in background

    Automated. The macro scans the clipboard text for identifiers, then finds a value after the third subsequent dollar sign for each identifier.
  3. Saving to Excel in background

    I have a macro to do a similar thing, but on a smaller scale -- a dozen or so values rather than your 50. Rather than use a text file, I copy the whole screen to the clipboard, extract the fields I want into ME variables, switch once to Excel, Ctrl-Home to the first cell, and type arrow keys to get to the desired cells to type the variables. It is very fast and reliable, but it doesn't do Excel in the background like you would prefer. The logic to make sure there are no missing fields is in the extraction macro.
  4. Good thinking! Though I can't quite "logic" out why that works. I would have guessed Repeat Delay would make the difference, rather than Rate. Now that you have me thinking about it, I lengthened my Repeat Delay, because maybe the short delay accounts for some of the the double-character errors I have been making lately with my typing. I was blaming sluggish fingers or sticking keys, and it never occurred to me to blame the keyboard settings. (Sorry, this has nothing to do with ME macros, I'm just happy to get rid offff thoose exxtra chaaraactters I have beenn typping.)
  5. Just as an experiment, try "Keystroke Speed: 1000 Milliseconds". It will be excruciatingly slow, but if it works then you know timing is the issue and you can experiment with other speeds. Or maybe do the opposite of my second suggestion: use the Text Type option that pastes from clipboard. Though that option has always been troublesome for me.
  6. I have seen this behavior on rare occasions, but don't recall that I ever really figured it out. A few things to try: 1) Set keystroke speed to a reasonable value -- I generally use 30ms, but that's just an arbitrary value. 2) If you are using the Text Type option that pastes from the clipboard, don't use it. 3) Try typing a few blanks, then type the same number of backspaces to get back to the beginning of the field, then type the real data. That has worked for me sometimes. I know, it's sort of a Mickey Mouse fix, but if it works ...
  7. Thanks for the clarification. I was far more concerned about an IF statement not working, than about the cursor business.
  8. Thanks for the feedback. It's really strange that the "IF ... ELSE" in your original example didn't write anything to the log.
  9. PDF still open

    Maybe have the macro check file date and time, and only attempt to copy those that are a few minutes old??? Those not old enough will presumably be processed the next time the macro runs. Command "Variable Set from File" can be used to obtain file information.
  10. I have used "If Mouse Cursor is Internet Navigate" with no problem. Haven't tried with If Arrow. There are several update versions of ME 3 beyond 3.8a. You can download and install them if you are licensed for version 3. Insight web site will have descriptions of the fixes in each release. Maybe there is a fix for your situation. P.S. Add another "write log" just BEFORE your " If Mouse Cursor is Arrow -> write log Else write log ", to make sure there isn't some other logic in your macro that is bypassing this code entirely.
  11. Fill multiple choice menu with macro

    Sorry, duplicate post.
  12. Fill multiple choice menu with macro

    Read from the ASCII file and put the values into variables like T2, T3, T4. Then in the Multiple Choice Menu instruction, enter %T2%, %T3%, %T4%. When the macro runs, the menu will display the values. Variable Set String %T2% "T2 value" Variable Set String %T3% "T3 value" Variable Set String %T4% "T4 value" Multiple Choice Menu: test This example is from ME version 3, but ME Pro should be similar.
  13. Rename Folder Error

    The rename instruction does NOT simply assume that the path to "new-name-folder" is the same as the path to "old-namd-folder" -- though logically, what else could it be? So, before the Rename Folder instruction, use Change Directory/Folder to set the working folder to D:\Pelit\Steam\steamapps\common Alternatively, specify the full path for the new name in the Rename Folder command.
  14. win+m says minimize all. win+d says show desktop. According to this link, there is a subtle but significant difference, because some minimized windows are still there, just not visible. https://superuser.com/questions/357226/whats-the-difference-between-the-win-d-and-win-m-shortcuts/357228
  15. Hmmmm. Sorry. That's an option in Macro Express Version 3. Apparently "focused" is the ME Pro equivalent.
  16. Set Scope to Global. Set the Activation property to Window Title "Program Manager". That should cause the macro to run whenever the Program Manager screen gets focus. When setting Window Title, if you click the Browse button, it should show you the names of available windows to select from. On my system (Win 7) Program Manager is always in the list because it is lurking in the background. Setting Scope "Global" ALLOWS the macro to run in a particular window, but does not MAKE it run. Setting the activation property is what triggers the macro to run when the window appears. Once you get it working, you could try setting scope in addition to activation -- in theory it shouldn't hurt anything. Edit: OOPS! Sorry! I re-read your last post and I see you already have an activation. So forget what I said about setting a Window Title activation. But DO try changing Scope to Global. If still no good, try "If Program Manager is On Top" rather than "If focused". If still no good, try a different activation, such as a hot key combination -- though I'm grasping at straws with this suggestion.
  17. In Windows 7 it is "Program Manager". I don't know about Windows 10, but you could try that ....
  18. Use of operators

    Variable Modify String: Convert %T1% to integer %N1% convert text variable to integer variable Variable Modify Integer: Dec (%N1%) decrement integer variable Variable Modify Integer: Convert %N1% to text string %T1% convert integer variable back to text variable
  19. Different screen resolutions

    Only solution I can think of is for the macro to check the screen resolution and apply a formula to the mouse coordinates. Write a separate macro to do the math, that you can call (run) from your main macro -- otherwise you will get tired coding the same logic over and over. Don't know if it will work, but it's easy to test. Variable Set Integer from Screen Height / Width
  20. See my post earlier in this thread. I should have highlighted the phrase Direct Editor so it would stand out. The approach worked for me, but I haven't used it extensively.
  21. Editing the contents of a string

    It's hard to say without knowing specifically what edits are required -- but Variable Modify String commands can accomplish a lot, so that would be my first choice. Without some examples, I don't know why you feel it won't work. As a second choice, paste the data into Notepad as you propose, but have your macro run as many of the edit commands as possible, rather than do them manually. That's a lot faster than you can type, and a lot less drudgery, as long as the same rote commands can be used every time. If there's some THINKING involved for special situations, handle those situations manually after the macro has done its work.
  22. Thanks for the tip. I just found that will work for me on a web page that changes frequently. It's also considerably faster than the technique I have been using.
  23. Regarding repeat loop

    You have a loop within a loop. The outer loop is ASCII File Begin Process. The inner loop is Repeat With Variable Using N1. So yes, get rid of the line “Variable Set String %T1% from File: Testdat.txt" because each time through ASCII File Begin Process the next line of your file will be loaded into T1, which is what you want. Regardless of which line of the ASCII file has just been read, I think “Variable Set String %T1% from File” picks up the FIRST line all over again. That would explain why it always repeats 4 times regardless of what the file contains in subsequent lines. Also, I would recommend converting from text to integer with command Variable Modify String: Convert %T1% to integer %N1% rather than Variable Set %N1% to ASCII value of %T1%. In case %T1% contains blanks or newline/carriage-return characters, trim it before doing the conversion to integer.
  24. Type text misses words

    I find that keystroke speed of 30ms is satisfactory for most screens: Keystroke Speed: 30 Milliseconds Also, in the Text Type command there is an option to "Use Clipboard to Paste Text". I don't know if you are using that option -- I avoid it because it seems to fail too often; don't know why.
  25. Shortcuts extremely slow

    How slow is slow? 1/4 second response, 4 second response, what? Also, when Macro Express is running, are there any long-running macros or resource-intensive macros that could be sucking up processor time? With ME running, if you go into Windows Task Manager, can you see any processes using a lot of resources -- CPU, disk, memory?