Jump to content
Macro Express Forums

terrypin

Members
  • Content Count

    2,123
  • Joined

  • Last visited

  • Days Won

    19

Everything posted by terrypin

  1. I’m unable to clearly visualise what you are seeing but I’d definitely agree with @rberq’s suggestion to abandon that approach. The text file method is probably the best. But one alternative you might consider is to place a Variable Set String with a Prompt at the start. Use that variable to type the text. On my iPad at the moment so haven’t tested it. EDIT: Back on my PC I tested that idea and it works as expected. Here's an example macro. It uses two variable commands to make changing the text easy. Variable Set String %tText% to "I'd suggest you first redu
  2. That's intriguing! But I don't seem able to reproduce it. I'm running from debug mode (F9) if that matters. Choose the browser title and hit Enter. Then quickly click anywhere else. Not only does the macro not immediately complete, but it doesn't complete at all and has to be terminated.
  3. Arising out of the current posts by@sdspieg I see that on my Win 10 Pro PC (i7, 4.0 GHz) pixel-hunting macros are now even slower than I last recall. What performance do others get please? For example, try the following macro (modified to suit). Here it takes about 15 seconds to get from y=0 to 842, that's less than 60 pixels/sec! COMMANDS Variable Set Integer %nMouseY% to 0 Repeat Until %nPixCol% Equals "12870323" Get Pixel Color at (187, %nMouseY%) Relative to Current Window into %nPixCol% Variable Modify Integer %nMouseY%: Increment End Repeat Text Bo
  4. Hi, Take care when defining the target position's pixel colour. Sometimes it changes by the very act of placing the mouse cursor over it. Possibly why your macro did not work. Instead of the built in Mouse Locator, use a simple macro that does not require the mouse, with the command Get Pixel Color at (%x%, %y%) Relative to Screen into %PixCol% Terry
  5. Can you post your macro, showing both the script commands and the direct code, so that we can see how far you’ve got. Include Comments wherever a command is not obvious. What is the work environment? Is this all to be done within the macro, or while typing in a text editor or word processor application. Have you experimented by running the macro from @acantor? And extended it by setting %Input% from the clipboard or a Prompt command? Or, if you haven't got anywhere at all yet, work with this simple macro before tackling what sounds a rather challenging one f
  6. OK, looks like we crossed in the post, while I was editing mine after seeing your second post! Much simpler indeed. 😉 Unless you hear back from @cantor beforehand, I'll reply again after breakfast. Terry, UK Sunday 27 December 2020, 0914
  7. Hi, With time zones in mind, before @acantor replies perhaps you could clarify your requirement. Is it really simply to add quotation marks before and after a target string, as your last post implies? Or is it the much more complex requirement to add " and "? If the latter, which is how I first interpreted it could you give three 'before and after' examples of text to which you will apply your macro: 1. Containing the target string, say 'xyz' or 'abc xyz' or whatever. 2. As #1 but also containing one or more instances of 'and' or 'And' inside the target
  8. Thanks Alan. I’ll contact Support about it, as it really would be helpful to get it alphabetised. Just as it is in the Explorer window. That’s my usual first visit before choosing a new hot key, to ensure no global macros will conflict. Have you not encountered difficulties with Alt+ hotkeys, due to Alt often opening a program’s menu? Terry
  9. What order are hotkey candidates meant to be? Was it not once in strict alphabetic sequence? IOW, all hotkeys Alt+ before Ctrl+, etc? At present it's hard to see any logic to the sequence, which makes selecting one difficult, especially if you have many hundreds already assigned.
  10. Can you show us your latest code, with comments if each step is not obvious, matching the explanation you gave. Have you successfully written simpler macros before this? It does sound as if you need to study the basic stuff and work through simple examples. Did you try running the demo I wrote for you a week ago? Do you understand what it is doing? I don’t know Zenfolio, and I suspect none of us regulars here do, so as I said it’s best to work with a more accessible application, like Notepad. Meanwhile I assume you’re implying that the obvious step of using
  11. Kind of you to say so, Alan. But I note that neither of us has had a ‘thank you’ from the OP.
  12. Thanks @Samrae, you've solved the puzzle. I use a 15 or 20 year old hotkey macro to place the full path and filename of any selected File Explorer file onto the clipboard. That turns out to be the cause of the inconsistency. It had a few lines built in to handle files in the root which otherwise misbehaved: If Variable %tFolder% Equals "C:\" Variable Modify String: Replace "\" in %tFolder% with "" End If But C was the only root for which I'd eliminated the double '\\' . Looks like I've never before used the macro on any other, or if I did it never caused trouble!
  13. Meanwhile here's a macro using the more accessible Notepad. Study that and try adapting it to your requirement. Come back if you need further help // Demo for @Jimbojones // Set a variables for TAB Variable Set to ASCII Char 9 to %TAB% // Set TAB // Presumably you want to place the text cursor in a box on some already open web site. // In my version I'll activate 'Untitled - Notepad' (already open). // The macro will use the following CSV file, containing 5 records, each with two fields: Record #1, Jim Record #2, John Record #3, Jack Record #4, Jill Record #5, Janet Window Act
  14. Hi Jim, It would be easier to help if we had your CSV file and the URL (or simplifed non-confidential examples) , and also a much fuller explanation of the task. Are you copying each record of your CSV file into an identical location of successive different web pages? If so, where are the commands that open subsequent pages? Or, are there just two records in the CSV file, copied to two text fields of the web page? Or two fields in each record? It also looks like you're using integer variable %C% but I don't see where it gets incremented? And is y
  15. I needed to get a macro I wrote yesterday on my ancient shed workshop PC to this Win 10 PC in my house office. I exported it to a USB stick where it was called M:\\AttributeChangeDateFromShed.mex Surprisingly it failed, giving the message "The filename is not valid." After some experiment I discovered that it works OK if I placed the file instead in M:\From Shed\AttributeChangeDateFromShed.mex So looks like it only fails if placed at the root level.
  16. You might get more specific help if you tell us the site link and show us the table, plus the macro you have attempted so far. Meanwhile, following Cory’s suggestion, if you have now managed to select the entire table (of text?) and copy it to the clipboard, I’d suggest next using Variable Set String > Set Value from Clipboard
  17. 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.
  18. 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
  19. 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
  20. 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.
  21. Hi Ken, Puzzling indeed that this has arisen out of the blue. Can you recall anything of possible relevance that you changed? In addition to Cory's suggestion could you temporarily change your global settings to use a prefix. Ideally '=', so that my own hundred or so shortkey-activated macros are unaffected if I try to reproduce. Terry
  22. We need more information. At the very least show your script and your code, both using the Code tool <>.
  23. (Once again a post I made hours ago, successfully, seems to have vanished. I’ll try again. Apologies if it turns up twice.) No and no. Instead think in terms of starting macro X and then after a very brief interval starting macro Y.
  24. Thanks, I’ll pursue. That looks like a serious bug if it’s general, as macros should be entirely independent, yes?
×
×
  • Create New...