Jump to content
Macro Express Forums

terrypin

Members
  • Content Count

    1,937
  • Joined

  • Last visited

  • Days Won

    14

terrypin last won the day on September 10

terrypin had the most liked content!

Community Reputation

7 Neutral

1 Follower

About terrypin

  • Rank
    Master

Profile Information

  • Gender
    Male
  • Location
    East Grinstead, West Sussex, UK

Recent Profile Visitors

809 profile views
  1. @Samrae: Neat! @snekmeseht: Seconds or milliseconds at the end? Terry, East Grinstead, UK
  2. “Sorry, I didn't read every message in this thread.“ Not even the most recent one? 😊
  3. @steynak: it would help us to help you if you show us the macro you have tried and describe the results you get. @kunkel321: I’m assuming that by ‘scripts’ the OP means ME scripts, I.e. commands. If not then he/she will no doubt tell us what type of external scripts.
  4. No screenshot or link as requested so I'll assume that you want to capture the text in pop-up boxes that do not allow the usual 'select then copy' approach. If the text needs to be pasted elsewhere but does not necessarily have to be 100% accurate, investigate OCR using a third party tool. If the text is brief and for your personal guidance after closing the message, consider capturing its image and displaying it conveniently, or saving it in a reference folder.
  5. Well, if you do have a question we’re going to need more information than that if you want help. Do you mean that you want to capture a particular type of message that does not allow copying to the clipboard? If so, describe an example in detail or tell us exactly how we can reproduce it. Show us some screenshots. Also, what script have you tried so far and what is the result? You can show your script commands and the resulting code using the Code tool, <>. Terry
  6. First, have you studied the Help and experimented with successive selections? I still don’t really understand what your overall objective is? Why do you need a macro to move a selection of files to a different folder? Can’t you do it within File Explorer? And if you’re selecting from multiple folders then surely that’s the most time consuming part of the task anyway, I.e. finding and selecting each one? With the file selected just activate your macro with a click or a hot key and then proceed to find the next target.
  7. I too found mouse operations much slower when i made the (big) jump from XP to Win 10 pro a few years ago. If you can upload a non-confidential test macro I'll run it and report back on performance. I always use the co-ordinate method that Alan described whenever possible.
  8. Hi Alan, Possibly this? https://pgmacros.invisionzone.com/topic/7613-variable-value-from-external-script-to-mep/ Or these, containing advice on external scripts from others too: https://pgmacros.invisionzone.com/topic/248-how-to-multiple-field-input-form-example/ https://pgmacros.invisionzone.com/topic/4916-how-to-return-value-from-external-script-to-mep/ https://pgmacros.invisionzone.com/topic/3640-external-scripts-how-far-are-you-pushing-them/ Terry
  9. Yes, as I suggested in the last comment line of the macro, you simply include Repeat and End Repeat commands to surround the main macro. Read the Help and experiment.
  10. If you're asking the OP of a year ago, good luck! I didn't get a response to my request for a screenshot or page link, which I think would have been the only hope of offering a solution.
  11. Did you run my macro or your version of it? For example, mine has a delay between the two lines you’ve shown: Text Type (Simulate Keystrokes): <ALT>d Clipboard Copy If you don’t succeed in getting it working, in your next post show us all your script and code.
  12. Script: // BEFORE RUNNING: Read the opening comment lines to ensure I've interpreted your requirement accurately. // BEFORE RUNNING: Assign the required variables. (Quickest method is to open each command by double clicking it and respond Yes to the program's requests.) // I've used longish delays to be on the safe side. // I've used meaningful variable names as @samrae advised you. I prefix them to indicate their type, avoiding ambiguity in complex macros. // STARTING STATE BEFORE MACRO IS ACTIVATED A single file is selected in an active (focused) File Explorer folder. // PURPOSE OF MACRO Copy the seleced file to another existing user-selectable folder. Clipboard Empty Text Type (Simulate Keystrokes): <F2> // Edit mode. Delay: 0.2 seconds // Select all. (Iincluding extension, which I found necessary in Win 10.) Or use @acantor's equally effective method. Text Type (Simulate Keystrokes): <CONTROL>a Delay: 0.2 seconds Clipboard Copy Delay: 0.2 seconds Variable Set String %tFilename% from the clipboard contents Text Type (Simulate Keystrokes): <ESC> // Close edit mode Delay: 0.1 seconds // Select address of current folder. Text Type (Simulate Keystrokes): <ALT>d Delay: 0.1 seconds Clipboard Copy Delay: 0.1 seconds Variable Set String %tFolder% from the clipboard contents Text Type (Simulate Keystrokes): <ESC> // Close edit mode Delay: 0.1 seconds // Now re-assemble the original full filename and path. Variable Modify String %tFullFilename%: Append Text String Variable (%tFolder%) Variable Modify String %tFullFilename%: Append Text (\) Variable Modify String %tFullFilename%: Append Text String Variable (%tFilename%) Variable Modify String: Save %tFullFilename% to the clipboard Delay: 0.1 seconds // When testing or trouble-shooting it's helpful to show results at key stages, as in the following example. (Disable or delete this command when satisfied.) Text Box Display: Result so far // Now allow user to choose the destination folder. Text Box Display: Choose destination folder Text Type (Simulate Keystrokes): <ALT>d Clipboard Copy Delay: 0.1 seconds Variable Set String %tDestination% from the clipboard contents Text Type (Simulate Keystrokes): <ESC> // Deselect folder box Delay: 0.2 seconds Copy File/Files: "%tFullFilename%" to "%tDestination%" // You could now add commands to return focus to the original folder if you wish. Or whatever. Such ad including the above in a Repeat loop to copy a SUCCESSION of files. Code: <COMMENT Value="BEFORE RUNNING: Read the opening comment lines to ensure I've interpreted your requirement accurately." _BACK="0080FFFF"/> <COMMENT Value="BEFORE RUNNING: Assign the required variables. (Quickest method is to open each command by double clicking it and respond Yes to the program's requests.)" _BACK="0080FFFF"/> <COMMENT/> <COMMENT Value="I've used longish delays to be on the safe side."/> <COMMENT Value="I've used meaningful variable names as @samrae advised you. I prefix them to indicate their type, avoiding ambiguity in complex macros."/> <COMMENT/> <COMMENT Value="STARTING STATE BEFORE MACRO IS ACTIVATED\r\nA single file is selected in an active (focused) File Explorer folder."/> <COMMENT Value="PURPOSE OF MACRO\r\nCopy the seleced file to another existing user-selectable folder."/> <COMMENT/> <CLIPBOARD EMPTY/> <TEXT TYPE Action="0" Text="<F2>" _COMMENT="Edit mode."/> <DELAY Flags="\x01" Time="0.2"/> <COMMENT Value="Select all. (Iincluding extension, which I found necessary in Win 10.) Or use @acantor's equally effective method."/> <TEXT TYPE Action="0" Text="<CONTROL>a"/> <DELAY Flags="\x01" Time="0.2"/> <CLIPBOARD COPY/> <DELAY Flags="\x01" Time="0.2"/> <VARIABLE SET STRING Option="\x02" Destination="%tFilename%" NoEmbeddedVars="FALSE"/> <TEXT TYPE Action="0" Text="<ESC>" _COMMENT="Close edit mode"/> <DELAY Flags="\x01" Time="0.1"/> <COMMENT Value="Select address of current folder."/> <TEXT TYPE Action="0" Text="<ALT>d"/> <DELAY Flags="\x01" Time="0.1"/> <CLIPBOARD COPY/> <DELAY Flags="\x01" Time="0.1"/> <COMMENT/> <VARIABLE SET STRING Option="\x02" Destination="%tFolder%" NoEmbeddedVars="FALSE"/> <TEXT TYPE Action="0" Text="<ESC>" _COMMENT="Close edit mode"/> <DELAY Flags="\x01" Time="0.1"/> <COMMENT Value="Now re-assemble the original full filename and path."/> <VARIABLE MODIFY STRING Option="\x07" Destination="%tFullFilename%" Variable="%tFolder%" NoEmbeddedVars="FALSE"/> <VARIABLE MODIFY STRING Option="\x06" Destination="%tFullFilename%" Value="\\" NoEmbeddedVars="FALSE"/> <VARIABLE MODIFY STRING Option="\x07" Destination="%tFullFilename%" Variable="%tFilename%" NoEmbeddedVars="FALSE"/> <VARIABLE MODIFY STRING Option="\x10" Destination="%tFullFilename%" NoEmbeddedVars="FALSE"/> <DELAY Flags="\x01" Time="0.1"/> <COMMENT Value="When testing or trouble-shooting it's helpful to show results at key stages, as in the following example. (Disable or delete this command when satisfied.)"/> <TEXT BOX DISPLAY Title="Result so far" Content="{\\rtf1\\ansi\\ansicpg1252\\deff0\\deflang2057{\\fonttbl{\\f0\\fnil\\fcharset0 Tahoma;}{\\f1\\fnil Tahoma;}}\r\n\\viewkind4\\uc1\\pard\\f0\\fs16 tFilename = %tFilename%\r\n\\par \r\n\\par tFullFilename = %tFullFilename%\r\n\\par \r\n\\par \\f1 tFolder\\f0 = \\f1 %tFolder%\r\n\\par \r\n\\par }\r\n" Left="541" Top="485" Width="638" Height="188" Monitor="0" OnTop="TRUE" Keep_Focus="TRUE" Mode="\x00" Delay="0" _ENABLED="FALSE"/> <COMMENT Value="Now allow user to choose the destination folder."/> <TEXT BOX DISPLAY Title="Choose destination folder" Content="{\\rtf1\\ansi\\ansicpg1252\\deff0\\deflang2057{\\fonttbl{\\f0\\fnil\\fcharset0 Tahoma;}{\\f1\\fnil Tahoma;}}\r\n{\\colortbl ;\\red255\\green0\\blue0;}\r\n\\viewkind4\\uc1\\pard\\qc\\b\\f0\\fs20 Navigate to your destination folder by whatever means you prer and leave it active.\r\n\\par \r\n\\par \\cf1 Then\\cf0 click OK to close this message and continue.\\f1 \r\n\\par }\r\n" Left="677" Top="776" Width="435" Height="171" Monitor="0" OnTop="TRUE" Keep_Focus="TRUE" Mode="\x00" Delay="0"/> <TEXT TYPE Action="0" Text="<ALT>d"/> <CLIPBOARD COPY/> <DELAY Flags="\x01" Time="0.1"/> <VARIABLE SET STRING Option="\x02" Destination="%tDestination%" NoEmbeddedVars="FALSE"/> <TEXT TYPE Action="0" Text="<ESC>" _COMMENT="Deselect folder box"/> <DELAY Flags="\x01" Time="0.2"/> <COPY FILE/FILES Source="%tFullFilename%" Dest="%tDestination%" Progress="FALSE" Recurse="FALSE"/> <COMMENT Value="You could now add commands to return focus to the original folder if you wish. Or whatever. Such ad including the above in a Repeat loop to copy a SUCCESSION of files."/> Exported macro: Attached. Terry CopySelectedFileToAnotherFolder.mex
  13. Hi, I'd like to help but I frankly don't understand your problem description. And obviously it's impossible to test your macro without the appropriate files and folders. Can you explain again but in plainer terms. I'm guessing here, but something like this: "I want to build a text file called 'Music Sorting Log.txt'. Each line will contain the full path and filename of...etc, etc". IOW, what is your objective expressed in conversational terms? There are several points I find vague or unclear. What exactly is the status at activation? IOW, what is selected? A file in an Explorer folder? A filename, already in Edit mode (F2)? What type of files? (I'm guessing audio: MP3/WMA/WAV/etc? You say: 1. The Macro will display a list of predefined Target Directories. But your macro doesn't appear to display a list. 2. On clicking on one of the them it will move the file/files (details of which will be in the clipboard) to the selected Directory. But your macro doesn't prompt for any user clicking. And how can multiple 'details' (do you mean names?) all be in the clipboard? As always, the devil is in the details!
  14. Alan, Yes, absorbing! On the downside, I can't immediately recall why I wrote that 🙂
×
×
  • Create New...