Jump to content
Macro Express Forums

terrypin

Members
  • Posts

    2,232
  • Joined

  • Last visited

  • Days Won

    23

Everything posted by terrypin

  1. Thanks. Bought Joe's excellent book a long time ago. I was thinking more about an introduction to installing and using the PGM Library and its macros. I guess most of that is covered on the site? As to the actual macro downloads I thought I had the library already but couldn't locate it. So maybe I didn't transfer it to this PC a year or so ago. Anyway, on the assumption that it has probably changed since the version that came on the CD with Joe's book, I just downloaded pgmfl.exe. But I didn't see see any installation instructions and on executing it seemed to unpack files - but where? Meanwhile I've therefore now run the setup program from the CD (seems same size at 4.43 MB, so maybe it is still unchanged?) and that worked OK. I'm at the stage now pending reboot. The message on completion mentions a license. Is that information on your site too please? -- Terry, East Grinstead, UK
  2. Paul, Could you remind me briefly what is available in the PGM Macro Library and recommend some basic reading please? -- Terry, East Grinstead, UK
  3. So, did you try the macro I wrote in post #7? That should allow you to do precisely that, assuming you can add the extra couple of lines yourself to paste into Notepad? -- Terry, East Grinstead, UK
  4. "Issue [iSS6549] submitted by you has been resolved. The change will be available with the next release of Macro Express Pro." Thanks! -- Terry, East Grinstead, UK
  5. I see now that you're using it in a path, not in a filename as I hastily thought - where of course they would be invalid for obvious reasons! -- Terry, East Grinstead, UK
  6. Steve, Windows filenames cannot include '\'. -- Terry, East Grinstead, UK
  7. Just composed lengthy reply, only to find a blank post was the result! OK, here goes, I'll reconstruct while still fresh in my mind. (With a mental note to habitually copy to clipboard and paste elsewhere in future!) OK, now that you've clarified that you are copying (not pasting as your script implied), here's a working demo macro, easily altered for your setup. Window Activate: Construction Services and Materials Report Mouse Move: 290, 245 Relative to Current Window Delay: 50 milliseconds Mouse Left Button Down: 50 milliseconds Delay: 50 milliseconds Mouse Move: 785, 420 Relative to Current Window Mouse Left Button Up: 785, 420 Relative to Current Window Delay: 50 milliseconds Clipboard Copy Variable Set String %T[1]% from the clipboard contents Delay: 100 milliseconds Text Box Display: Result Macro Return <WINDOW ACTIVATE Title="Construction Services and Materials Report " Exact_Match="FALSE" Wildcards="FALSE"/> <MOUSE MOVE Option="\x02" X="290" Y="245" _PROMPT="0x000A"/> <DELAY Flags="\x02" Time="50"/> <MOUSE LEFT BUTTON DOWN/> <DELAY Flags="\x02" Time="50"/> <MOUSE MOVE Option="\x02" X="785" Y="420" _PROMPT="0x000A"/> <MOUSE LEFT BUTTON UP/> <DELAY Flags="\x02" Time="50"/> <CLIPBOARD COPY/> <VARIABLE SET STRING Option="\x02" Destination="%T[1]%"/> <DELAY Flags="\x02" Time="100"/> <TEXT BOX DISPLAY Title="Result" Content="{\\rtf1\\ansi\\ansicpg1252\\deff0\\deflang2057{\\fonttbl{\\f0\\fnil\\fcharset0 Tahoma;}{\\f1\\fnil Tahoma;}}\r\n\\viewkind4\\uc1\\pard\\f0\\fs16 The information now on the clipboard, copied from the web form, is\r\n\\par \r\n\\par %T[1]%\\f1 \r\n\\par }\r\n" Left="Center" Top="Center" Width="278" Height="200" Monitor="0" OnTop="FALSE" Keep_Focus="TRUE" Mode="\x00" Delay="0"/> <MACRO RETURN/> Here's the result: -- Terry, East Grinstead, UK
  8. Ah, thanks Kevin, that sorts it nicely! -- Terry, East Grinstead, UK
  9. I have a macro activated by left clicking a certain window area. But I'd also now like to activate it by right clicking the title bar anywhere. (I could live without it, but I have good reasons for wanting both.) However, access to Mouse Event is now greyed out. It seems the same applies to any attempt to add a second activation of the same type. Apart from Mouse Event, another type I anticipate needing more than one activation is Schedule, as I might want to supplement an existing scheduled run with another, perhaps temporarily. Was this restriction by design, and would it be possible to relax it in a future release please? -- Terry, East Grinstead, UK
  10. You mean you're trying to paste something (previously copied to the clipboard) into that rectangular area, part of a web page form? Presumably you can do exactly this manually? What is the URL of the window? Without that, or at least a screenshot, it's impossible to help. -- Terry, East Grinstead, UK
  11. Do you mean it didn't close the window, whose (possibly partial) name you'd entered in the command to replace my example? Was the pop-up window open when the macro ran? Did you see the running man icon appear on schedule? -- Terry, East Grinstead, UK
  12. Sorry, no, not without full and accurate details of the applications involved and an exact description of the behaviour you get. I'm curious to know what happened when you ran that macro I wrote, after suitably adapting it for your pop-up title? -- Terry, East Grinstead, UK
  13. I'd suggest you write a simple macro like the following and set its activation to Schedule, with Run Macro set to Other, Play Macro Indefinitely checked and Other set to an interval of your choice. I've specified 10 seconds. But relevant factors will include what other macros you use (only one can run at any time), how long you can wait for your music stream to be restored, etc. In this demo I've used Notepad instead of your unspecified pop-up. I simulated your pop-up scenario by opening the file Test-selkov.txt at random intervals. You wouldn't want the Text Display command in practice, of course. If Window Title "Test-selkov" is running Text Box Display: Pop-up detected Text Type: <ALT>fx Delay 100 Milliseconds End If Delay 100 Milliseconds Macro Return <IFOTH:04:2:Test-selkov><TBOX4:T:4:CenterCenter000278000200:000:Pop-up detectedA window with 'selkov' in its title has appeared, and will be closed when you click OK or press Enter.><TEXTTYPE:<ALT>fx><MSD:100><ENDIF><MSD:100><MRETURN> BTW, note that Schedule activation is not reliable. It's been discussed in previous threads but I still don't know the explanation for that. In this particular example I typically got only 4 occurrences in a minute, with a max of 5 and a min of 3. -- Terry, East Grinstead, UK
  14. I'm reasonably hopeful that ISS themselves take a less hostile and defensive tone to constructive user suggestions for improvement. -- Terry, East Grinstead, UK
  15. When I'm using Explorer, yes, I do normally drag and drop. But in the current context of using an ME Pro macro to do it for some reason, I was thinking along the lines of simple operations. Like either: - Copy from one folder, go to the destination, and paste or - Send to > Any Folder (where again you just specify the destination, and choose Move or Copy). With no special attention needed to slashes in either source or destination. -- Terry, East Grinstead, UK
  16. OK, thanks Floyd, understood. Cory: That suggestion about getting the optimum solution by using Wait for Text to Playback with a fixed delay unfortunately won't work for me. Being an impatient type, my normal Delay is 100 ms, but the Wait for Text Playback command will only accept a minimum of 1 s. If course, it would be fine for some cases, but not typically for commands inside loops, etc. -- Terry, East Grinstead, UK
  17. Thanks Floyd. When I do a folder move normally (i.e. in Explorer) it's always to an existing location. That's what my earlier example was attempting to do. Repeating my earlier question, would it be possible to implement this command in standard Windows fashion please? -- Terry, East Grinstead, UK
  18. Thanks Jason, but I can't reproduce even that simple example here. Could you post your code please, so that I can ensure I have it exactly right. Can you do a more typical folder move, like my example? -- Terry, East Grinstead, UK
  19. It doesn't. Black = 0. I see where you're coming from but I'm not optimistic about this line of approach. For one thing, I can't yet detect any linear arithmetical relationship between 'shades of yellow' (or 'orange' or 'light green', or even 'grey' when you examine that area at high zoom levels) and the ME Pro value. But to be sure we need some technical explanation from ISS as to how the value is derived. Here are a few examples, which could possibly serve as a basis for discussion, before we rule out your current approach. I suspect its a hex-to-decimal algorithm, with the digits grouped in some proprietary fashion, but with nothing on this in Help I'm just guessing. BTW, my 4 'yellows' are arbitrary selections within your example: Changing direction, did you establish what the maximum variation was in the presumably deliberate random positioning of the numbers? Knowing that might allow you to test for Colour 1 OR Colour 2 OR Colour 3... OR (say) Colour 10 within a specific area. -- Terry, East Grinstead, UK
  20. Thanks Cory, that's helpful. All I saw from Joe was his comment in post #6 of this thread http://pgmacros.invisionzone.com/index.php?showtopic=3577 where he said (of Wait for Text Playback): "Never had a problem with it. Ever." So I'm reassured to hear that as well as myself, you at least have found it unpredictable. That's a neat idea about the "Wait at Most" parameter! And those alternative closing methods too. It would be good to get some technical advice from ISS, even if only to confirm Joe's assumption (in that same thread) that "...I assume the intention is to simply halt the macro until the keyboard buffer returns NULL or is empty." -- Terry, East Grinstead, UK
  21. But that appears to move the contents, not the folder. Suppose I want to move the folder C:\temp\Subfolder1\ to C:\NewDestination\. This macro follows your instructions above: Move File/Files: "C:\temp\Subfolder1\" to "C:\NewDestination\" <MOVE FILE/FILES Source="C:\\temp\\Subfolder1\\" Dest="C:\\NewDestination\\" Progress="FALSE" Recurse="FALSE"/> But it fails in two respects: 1. It moves the files to C:\NewDestination 2. It doesn't delete the now empty folder C:\temp\Subfolder1\. To do it properly, the macro needs to be re-written in a non-intuitive way, by including the old name in the destination, which is not something you would have to do if using Explorer: Move File/Files: "C:\temp\Subfolder1" to "C:\NewDestination\Subfolder1" <MOVE FILE/FILES Source="C:\\temp\\Subfolder1" Dest="C:\\NewDestination\\Subfolder1" Progress="FALSE" Recurse="FALSE"/> Can you consider changing this in a future version please, so that it's more intuitive. -- Terry, East Grinstead, UK
  22. Thanks. I think there are two things going on here. 1. As you say, ME Pro Explorer doesn't automatically refresh after running a macro. In fact, the only way I can get it to show a change in Last Run Time is to close it and reopen. 2. Like Modified, regrettably all values are lost if the macro file is changed/renamed. That must explain why most of mine show 'Never'. I see the earliest date shown is only about a week ago, so I must have changed my MEX file then. I think ME Pro should keep Modified and Last Run intact, just as it keeps the macro name, activation, script, etc. -- Terry, East Grinstead, UK
  23. ? A few milliseconds each? Maybe a tenth of a second for all 30? Why do you have to count them? Just step through say 100. Or include logic to test when you get to the end. -- Terry, East Grinstead, UK
  24. I'm still getting unpredictable results with this command. In this simple example it hung at that point. Yet the macro must have executed Alt+F4 because the dialog in which it was applied did close. Doesn't seem to make sense to me. Text Type (Simulate Keystrokes): <ALT><F4> Wait for Text Playback <TEXT TYPE Action="0" Text="<ALT><F4>"/> <WAIT FOR TEXT PLAYBACK Indefinite="TRUE" Hours="0" Minutes="0" Seconds="0"/> Anyone else using the command? Having problems with it? Meanwhile I'll return to using plain vanilla Delays after Text Type commands. -- Terry, East Grinstead, UK
×
×
  • Create New...