Jump to content
Macro Express Forums

acantor

Members
  • Content Count

    1,028
  • Joined

  • Last visited

  • Days Won

    6

acantor last won the day on May 29

acantor had the most liked content!

Community Reputation

9 Neutral

About acantor

  • Rank
    Master

Contact Methods

  • Website URL
    www.cantoraccess.com
  • ICQ
    0

Profile Information

  • Location
    Toronto

Recent Profile Visitors

721 profile views
  1. Hi Terry, Glad you sorted it out. Your example is instructive, and illustrative. Once every blue moon, I discover a macro, created eons ago and proven reliable through hundreds or thousands of repetitions, begins to fail or misbehave. A review of the code sometimes reveals things that nobody could have anticipated, e.g., a software maker changed a default hotkey or the title bar text. And sometimes a code review exposes embarrassing things about my earlier conceptions of how to best use Macro Express!
  2. Welcome JimboJones, Terry has offered a treasure trove of sound advice! Not much I can add. But keep two things in mind: 1. The variable %T% has been flagged as an array, but in your macro, it only has one element. If you need the variable to hold more than one value, you'll need to set the size of %T% to something larger. 2. In general, you do not need to do this in Macro Express: Mouse Left Button Down Mouse Left Button Up ...because this simpler code usually works: Mouse Left Click But the decision is yours. It's a matter of st
  3. Hi Terry, I tried to replicate this problem of importing macros via a USB stick, but was unable to. I also chose AttributeChangeDateFromShed.mex as the name of the file.
  4. I suggest re-doing the three lines. You can comment out the originals, or delete them. Then recreate the three lines from scratch. I'm not convinced the logic you've outlined is what is needed. Also, Windows 10 File Explorer has a lot of focus-related problems that might be throwing off a script that was developed for earlier versions of Windows. If you are making changes in the File Explorer window while the File Explorer is active, I don't think you need to activate the window. Maybe if renaming is taking time that is throwing of the synchronization, a refresh might b
  5. Can you tab through the misbehaving field? For example, if <TAB><TAB><TAB> is what you would normally do to navigate to the XYZ field, does <TAB><TAB><TAB><TAB> take you to the field to the right of it? And if it does, how about this? <TAB><TAB><TAB><TAB><SHIFT><TAB> You've tried slowing down the script: but have you tried a more radical approach to putting on the brakes? Repeat Start (Repeat 15 times) Text Type (Simulate Keystrokes): <TAB> Delay: 200 mill
  6. On a webpage, Tab and Shift + Tab are usually reliable ways to navigate field to field. One of my favourite non-programmatic approaches is to search for a nearby label and then Tab (or Shift + Tab) into the target. I find Firefox offers the best search options, as there is the possibility of searching for hypertext links, only. But searching for a target can be made to work in any browser. To jump the cursor into the “Hello World” field, do this (in pseudo code): Sometimes it's better to search for labels to the right of the target, and then Shift + Tab to reach
  7. Macro Express scripts that interact with web content can be thrown off by changes at the code level. So if the developers of Google Calendar made a single, minor, behind-the-scenes amendment, your script may no longer work reliably. It happens all the time. Fixing these kinds of problems comes with the territory. I've been forced to rewrite my MEP scripts for Hotmail (now rebranded Outlook.com) more times than I can count. The last time Microsoft "improved" the user interface, I was forced to start entirely from scratch. I tinkered with my new scripts for weeks before they were wor
  8. Thanks, Alan. I think I understand what is happening: In the distant past, Insight asked whether I would be OK to receive pre-release versions of Macro Express. I must have agreed, and I'd forgotten about it. Since then, I occasionally receive a new version. Most of the time, the changes are small and I don't notice any differences. Starting a year or two ago, Macro Express began automatically checking whether updates are available. I assumed (incorrectly) that all users received this upgrade. So that's the situation: Yesterday I received a pre-release versi
  9. I installed the latest upgrade yesterday -- Version 6.2.3.4. There may be display problem with the Script Editor. I'm only able to view the first screen of the script (about 20 or 21 lines). If I scroll down beyond the first screen via arrow keys or mouse, the display "breaks" and the lines of instruction become unreadable. I reported the issue to Insight yesterday. If you have already updated to 6.2.3.4, please try to reproduce the problem. For me, the display issue does not happen when I create a script. It only happens after I have saved the script, close
  10. The Lock Player command placed at the start of a script prevents other macros from starting while the macro containing the Lock Player command is running. Lock Player
  11. You may need to rethink the logic of your script. The first line captures the name of the topmost window. So far so good. Then the second line activates the topmost window. So there may be nothing for the line to do. The window is already active. Finally, the third line waits for the already active window to be appear. But the window was already there. In Windows 10, there are a lot of focus-related problems associated with explorer.exe. Sometimes one part of the UI receives focus when the window opens. Sometimes, a different part of the UI receives focus.
  12. If the "HTTP Get" command doesn't work, you should be able to access some or all of a page's code via your browser. In most browsers, Ctrl + U shows the code for the page. So your script might look like this: Text Type (Simulate Keystrokes): <CONTROL>u Text Type (Simulate Keystrokes): <CONTROL>a // Select all Text Type (Simulate Keystrokes): <CONTROL>c // Copy to clipboard Variable Set String %PageCode% from the clipboard contents If Variable %PageCode% Contains "<table>" // (Rules for extracting table information) End If
  13. 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
×
×
  • Create New...