Jump to content
Macro Express Forums
The search index is currently processing. Activity stream results may not be complete.

All Activity

This stream auto-updates

  1. Last week
  2. An update on editing "Get Control" information in the Direct Editor: The approach seems to work only temporarily before Macro Express throws errors. (Typically, that the control does not exist). I'm trying to understand what is causing the command to stop working. It's puzzling that it works like a treat for awhile, and then stops. It seemed so promising. In one test, I was able to copy information from Outlook while working in a different application, and without bringing Outlook into the foreground. My initial theory was that the failures might result from
  3. Thanks Alan, appreciate your offer, although as I don’t use Outlook I’ll pass. If/when I get more time on MX Pro I’ll try a few examples myself, using your suggested approach.
  4. Hi Terry, I have a Macro Express script that I use to move between Outlook controls and show three things about each: its class, its text, and the location of its top-left corner. The macro has helped me puzzle out controls, at least a little. If you (or anyone else) might find this useful, I would be happy to post it here. The script can be adapted to work in other applications.
  5. Hi Alan, Interesting post, thanks. I’ve used Controls very little, never having developed much confidence in their consistency. Are you saying that making Title identical to Caption improves or even fully resolves that issue? It naturally raises the question of potential adverse effects, as presumably the two fields are intentionally distinct? I suspect I haven’t fully understood your recommendation. Perhaps you could give an example or two? Terry
  6. The "Get Control" instruction saves information about a control (e.g., a button, edit box, pane, etc.). Macro Express includes a capture utility to gather information by dragging the mouse pointer over the control, and saving it to a control variable. When I use Get Control, my code usually looks like this: Get Control: (OUTLOOK.EXE) Using z-order -> %Control% Get Control Class from %Control% into %ControlClass% Get Control Text from %Control% into %ControlText% The first line captures information about the control. The following two lines extract information ab
  7. Earlier
  8. Edit: I simplified all three scripts by removing an unnecessary variable. The revisions make the rules easier to understand. My solution, which serves as replacement for Outlook 2019's Move to Folder commands, consists of three scripts: - A list of rules. The nickname for the macro is "Move Message Rules" - A script to move the selected message from the main Outlook 2019 user interface. I suggest setting the macro scope to window, partial match = " - Outlook" - A script to move the open message. To ensure availability in HTML, Plain Text, and RTF messages, set the scop
  9. Hi Cory, I was wondering whether someone was going to suggest built-in rules! Building a set of rules is the smart way to meet the challenge. But the reason for this challenge is less about doing things efficiently, and more about scratch-building one's own software tools... because the exercise can deepen one's appreciation of what can be accomplished with Macro Express. You appear to be one of the most sophisticated macro developers on this forum, so I would be very curious to learn how you might tackle this challenge.
  10. Many email applications support rules. Gmail even. I use Outlook. I would recommend a user exhaust every opportunity to use the program's capabilities before writing a macro. Since I use an application with this capability, I've never had to write a macro like this so I'll not be participating in your challenge. Just tossing this information out there because many don't realize they already have a way to do this natively.
  11. The challenge is to write a Macro Express script to analyze an email message, and on the basis of the analysis, automatically do something to the message. For example, the macro might move the message to a certain folder, flag it as important, delete the message, or whatever. To provide data for your macro, gather information from the user interface of your favourite email program. For example, your script might copy the name of the sender, the subject line, the message body, the date, etc. To simplify the challenge consider extracting only one or two pieces of information. Per
  12. I don't think I would allow a macro to act on the entire content of my inbox. A little too risky! But I can imagine a script that acts on individual email messages. I'm thinking of a hotkey macro that parses a message for one or two pieces of information, e.g., the subject line and the sender's email address. For me, one or both fields would provide enough information to decide which folder to store that message in. I keep most messages in my Inbox, and only move small numbers of incoming messages into a handful of folders. So my approach might not be practical for some
  13. Hi Alan, “analyze an email message and decide what to do with it based on its sender, subject, or whatever.” It would need to be a very clever macro, incorporating the latest in AI and a LOT of input from you! If you do write such a macro, I wonder how confident you will be in handing over control of your Inbox? Terry
  14. This could be the basis for a good challenge: write a macro to analyze an email message and decide what to do with it based on its sender, subject, or whatever. Seems like it would be a very useful tool.
  15. I may go online/offline 30 times in a day, so I want a macro to auto-control this. I don't believe in inet always connected, too many phissures,scammers, etc.
  16. No need for a macro. Windows Start > Command Prompt. MS Ping reference. You probably want to use \t is memory serves to make the pinging perpetual.
  17. This gives me the fast response I desire, now to learn how to program 'cmd' Thanks, Greg
  18. Perhaps consider starting a main macro and during that start another macro (a ‘submacro’), at the appropriate time and location, using the Mouse Button Down command. And stopping it with Mouse Button Up.
  19. I wouldn't bother creating a macro for which many programs already exist. You could use a monitoring program for instance. I use Net Uptime Monitor. Quire useful. You can also use Windows command program Ping. You can set the number of pings to infinite and control the time between pings. Say have it try every 10 seconds.
  20. When I want to go online, I want a fail-safe indicator that the connection from my computer to the net is functioning. If, when I ping & get a response almost immediately, then i am set. If I DON'T get a response, I have to wait 'till any response is finished (up to 35 sec) before I can continue. If I don't do this, there is no indication as to why my access to the net is not working,,,,, Determining this will clue me as to where the problem is occurring. (sometimes my macros don't react as I programmed them to do 😩) Various 'chrome' g***le browsers love to sk
  21. Is it possible to detect the state of a mouse button, in the same way that the position of the mouse can be stored in variables? What I want to be able to do is let a macro run in a loop while the mouse button is down, and then stop it when the button is released.
  22. "The ping command ignores protocols such as HTTP, HTTPS, FTP, or SMTP" Not exactly. As I stated clearly in a precious message, it it it's own protocol along side these. You can take a train, plane, or an automobile. They don't ignore the others, they're completely different methods of travel and have nothing to do with each other. So too are the protocols in TCP/IP. Thanks for explaining the mistake in the help. Now it makes much more sense. I suggest that you suggest using an IP address to avoid failures associated with DNS lookups. One of the most useful principles o
  1. Load more activity
×
×
  • Create New...