Jump to content
Macro Express Forums

All Activity

This stream auto-updates

  1. Earlier
  2. As it is now 4.20am, I will leave that task for daylight. I will keep you posted.
  3. Are you able to manually create a file in that location? You might try running MEP as an administrator.
  4. I was able to EXPORT all my macros, but that is a very small file compared to a backup (based on the size of a a backup I achieved years ago); so to be sure I don't lose valuable data, I tried to do a backup, but even for the default location I got an error message saying 'access denied'. How can I fix that ?
  5. (Image of a deer caught in a headlight!) I confess... I do this occasionally... but only when the speed penalty is too great. I do for myself, but not for the macros I write for others. I know how to break out of an infinite loop, but my clients usually don't!
  6. Ah, but don't we all write intentionally-infinite loops (REPEAT UNTIL %X% IS NOT EQUAL TO %X%)? We do that because REPEAT START does not have a REPEAT INDEFINITELY option. But I agree -- it is always wise to explicitly limit the loop in case, heaven forbid, we commit an error in logic. Also, I generally embed the same 1/10 second delays like Cory does, if it's a macro the user is waiting for. Longer or shorter delays when waiting for the computer itself to finish doing something, when human perception is not involved.
  7. I do the same thing acantor does. It's sound advice. Don't forget to include reasonable delay in the loop also. For things like this I find 100 ms, 10 times a second, adequate. If a macro gets into an infinite or long running loop, don't forget you have a hotkey to abort macros. You can set it in preferences under the miscellaneous playback section. By default it's Win + End.
  8. The problem I've had with UNTIL loops is the ease of getting into infinite loops. The workaround I use is to set a "failsafe" value for the maximum number of repeats. Sometimes this value is a guess -- e.g., 20 or 100 or 1000 should be enough -- and sometimes it's calculated -- e.g., the number of pixels between points A and B. It's less efficient to introduce and keep track of a failsafe variable, but I find the technique leads to more reliable scripts.
  9. Look at the Repeat instructions. There is a "Repeat Until ...." that should do what you want. Though the logic might be easier if you use "Repeat Start...". For example, REPEAT START IF COLOR1 = XXXX AND IF COLOR2 = YYYYY DO STUFF ELSE REPEAT EXIT END IF END REPEAT
  10. my question is simple, there is a a way to do a while loop in macro express pro ? it seem like i can't do it with macro express trough basic tools, maybe trough external script ? i want a while loop to check for two colors variables, each color in a specific area of the screen, while the two colors are detected, each on their respective area, execute something. Anyone can help me with that ? Thanks.
  11. The problem turns out to be my misrepresentation of the facts, because I misunderstood what was happening. I had imported two macros, and tested only one. It failed and I assumed both failed. The failure was because I had taken the opportunity to rename the macro more appropriately, but not made that change in the batch file that calls the macro. Once I had done that, it worked. Another (that I had not tested) would have worked all along. MEP works as before - thank you for your input.
  12. I continued a new phase of this thread in another post, where both Cory and rberq have replied, so will 'continue ' there.
  13. That's exactly what I have done. Thanks Cory 😊
  14. You could also search your My Documents or whole hard drive for all files with the MEX extension. The newest should be the one you were using.
  15. I've tried explaining this. Macros are entities contained in an MEX file. You need that MEX file to be loaded. File > Open. Then they will appear on the left. Bear in mind you might have multiple files open at once so make sure when you create anew macro you are choosing the correct file to contain it. Just like Word, Excel, or whatever, you shoudl be mindful of which MEX files contain your macro and where they are. It's been a long time but I believe the default was a folder created by thin installed in your My Documents named "Insight Software\Macro Express 6". It's best you keep your macros in one place along with all your supporting files.
  16. Tools > Export Program Configuration... You can also export your settings. But I suggest that if you only have a few customizations, to manually set them. In my experience I sometimes make changes, forget to change them back, upgrades, or whatever. A new install with the basic configuration is a clean slate.
  17. A .mex file is not a macro. A .mex file contains many individual macros. You don't have to open the .mex file every time you want to activate a macro. Once you open it, it stays open, and all the macros within it can be activated via their hotkeys.
  18. Thanks acantor and rberq for your help 😍
  19. If you copy the .mex file AFTER installing MEP on the new computer, the installation will already have created a .mex file. In Macro Explorer you can select File | Open to access the copy containing your macros, rather than the skeleton produced by installation.
  20. See screen image below. The file that MEP is working from should appear at the bottom of the screen, where the red arrow is pointing. You can copy the entire .mex file from the 'old' computer, and put it on the new computer -- just be sure to name it differently from the file that MEP is working from. Then in Macro Explorer, select File | Import | Import Macros, specify the copied .mex file at the bottom of the import screen, click Open, then select the individual macros to be imported.
  21. Copying the file to the old to the new computer should work fine. You'll need to reinstall Macro Express on the new PC.
  22. You could write a macro, using Macro Express, that would perform the three steps to navigate to the dialog box via hotkey. Alt + F Slight pause O
  23. In a thread called DISABLEMENT, I described how MEP had stopped working and that it works again. Since I had uninstalled and then re-installed MEP, I needed to 'restore' the macros, and chose to restore only the text-strings (for starters). I'm no longer quite sure how I did it. I tested them and they work. Anyway, with MEP working again, I also wanted to restore the 'function' macros. I had expected to be able to export them 'in bulk' from another PC, but did not succeed in that. so I exported them individually. Then imported them - individually - into 'this' system where the problem had been. The batch files in which they were referenced, do not work [like they used to]. In the previous thread, Cory suggested that the macros had not been loaded, and maybe that is the problem now. I suspect that MEP is working from one .mex file (for all the text strings) and that file does not include the .mex files for the 'function' macros. How do I get them incorporated into the one file that MEP operates from ?
  1. Load more activity
×
×
  • Create New...