Jump to content
Macro Express Forums

Sebastian42

Members
  • Posts

    160
  • Joined

  • Last visited

Posts posted by Sebastian42

  1. When I download some podcasts their name is prefixed with a numerical code - that interferes with the kind of playback which I do. It is easy to use MP3TAG manually to remove those codes, but its a very repetitive process which therefore lends itself to automation by macro. I can launch the MP3Tag program by macro. The next step of selecting all the files to be processed, can be preset within MP3Tag; then the next step is to apply an MP3Tag action which can be effectively called by manually pressing ALT2, but not by macro. I'm looking for suggestions on how to make Macro Express succeed in triggering the effect of ALT2.  

  2. Since I thought I had come to the end of the road in Macro Express, and was going to run the macro from a batchfile anyway, I've explored doing the data copy by batch file code, and with help from someone in the Microsoft Community, I've been able to achieve that with one very simple line of code, which HAS to be preferable to the more complex code suggested in the previous post. Thank you anyway.

  3. Direct Editor was already NOT ticked.

     

    My code now is

    <DATE/TIME Format="yyyymmdd" Flags="\x30" Date="5/9/2021 11:52:04 PM" Day_Offset="0" Month_Offset="0" Year_Offset="0" Hour_Offset="0" Minute_Offset="0" Second_Offset="0" Left="Center" Top="Center" Monitor="1" IsDateVar="FALSE"/>
    <DELAY Flags="\x01" Time="1"/>
    <RENAME FILE/FILES Source="a:\\Data" Dest="a:\\%Date%" Progress="FALSE" Recurse="FALSE"/>
    <DELAY Flags="\x01" Time="1"/>
    <MOVE FILE/FILES Source="a:\\%Date%" Dest="a:\\DataOld\\%Date%" Progress="FALSE" Recurse="FALSE"/>
    <DELAY Flags="\x01" Time="1"/>
    <MACRO STOP/>

     

    But it is still ineffective.

     

     

     

  4. Much simpler but mush less effect than my attempt.

     

    <LOCK PLAYER Wait="TRUE"/>
    <TEXT TYPE Action="0" Text="Date/Time: Set %Date% to the current date/time using \"YYYY-MM-dd\" as the format\r\n\r\n"/>
    <DELAY Flags="\x01" Time="1"/>
    <RENAME FILE/FILES Source="\"a:\\Data\"" Dest="\"a:\\%Date%\"" Progress="FALSE" Recurse="FALSE"/>
    <DELAY Flags="\x01" Time="1"/>
    <MOVE FILE/FILES Source="\"a:\\%Date%\"" Dest="\"a:\\DataOld\\%Date%\"" Progress="FALSE" Recurse="FALSE"/>
    <DELAY Flags="\x01" Time="5"/>
    <MACRO STOP/>

     

    Could it be that there is an excess of " ?
    I'm also surprised to see double slashes...

     

  5. I did not get notification of your reply so spent much time experimenting and found your first P.S. to be the case.

     

    The aim of the macro is to select the folder called Data, change its name to a date, and then move it into a folder called Data Old.

     

    I did a work around using the mouse location and clicks and got surprisingly far, but Macro Express never fails to trip me up somehow.

    I include the full macro text - which works (reliably) up until the last stage (Pasting) where it surprises me with an outlandish claim shown in the attachment :

     

     

    Pasting.JPG.9e8e3e06b3c48e1011ae0b6cfaf4b96e.JPG

     

    I might observe that the last step somehow causes the 'name-changed-folder' to become selected again; and so it must look to Macro Express that I am trying to paste it into itself.

     

    <LOCK PLAYER Wait="TRUE"/>
    <COMMENT Value="Open A:\\"/>
    <OPEN FOLDER Path="A:\\"/>
    <WINDOW ACTIVATE Title="A:\\" Exact_Match="FALSE" Wildcards="FALSE" _IGNORE="0x0006"/>
    <DELAY Flags="\x01" Time="0.5"/>
    <COMMENT Value="7 TABs to select \\Data\\"/>
    <REPEAT START Start="1" Step="1" Count="7" Save="FALSE"/>
    <TEXT TYPE Action="0" Text="<TAB>"/>
    <DELAY Flags="\x01" Time="1"/>
    <END REPEAT/>
    <COMMENT Value="Space to change from selection to Focus"/>
    <TEXT TYPE Action="0" Text="<SPACE>"/>
    <DELAY Flags="\x01" Time="1"/>
    <COMMENT Value="Move the mouse over the word Data"/>
    <MOUSE MOVE Option="\x02" X="250" Y="225" _PROMPT="0x000A"/>
    <DELAY Flags="\x01" Time="1"/>
    <COMMENT Value="Left-click to select text"/>
    <MOUSE LEFT CLICK/>
    <DELAY Flags="\x01" Time="2"/>
    <DATE/TIME Format="20yymmdd" Flags="\x30" Date="5/9/2021 1:30:28 PM" Day_Offset="0" Month_Offset="0" Year_Offset="0" Hour_Offset="0" Minute_Offset="0" Second_Offset="0" Left="Center" Top="Center" Monitor="1" IsDateVar="FALSE"/>
    <COMMENT Value="Enter to confirm"/>
    <TEXT TYPE Action="0" Text="<ENTER>"/>
    <DELAY Flags="\x01" Time="2"/>
    <COMMENT Value="Right-click to expose Cut"/>
    <MOUSE RIGHT CLICK/>
    <DELAY Flags="\x01" Time="2"/>
    <COMMENT Value="Down arrow 6 times to select CUT"/>
    <REPEAT START Start="1" Step="1" Count="6" Save="FALSE"/>
    <TEXT TYPE Action="0" Text="<ARROW DOWN>"/>
    <DELAY Flags="\x01" Time="0.5"/>
    <END REPEAT/>
    <COMMENT Value="Enter to effect cutting"/>
    <TEXT TYPE Action="0" Text="<ENTER>"/>
    <DELAY Flags="\x01" Time="0.5"/>
    <COMMENT Value="Down arrow to select 'data old'"/>
    <TEXT TYPE Action="0" Text="<ARROW DOWN>"/>
    <DELAY Flags="\x01" Time="0.5"/>
    <COMMENT Value="Right-click to expose Paste"/>
    <MOUSE RIGHT CLICK/>
    <DELAY Flags="\x01" Time="2"/>
    <COMMENT Value="Down arrow 8 times to select Paste"/>
    <REPEAT START Start="1" Step="1" Count="8" Save="FALSE"/>
    <TEXT TYPE Action="0" Text="<ARROW DOWN>"/>
    <DELAY Flags="\x01" Time="0.5"/>
    <END REPEAT/>
    <COMMENT Value="Enter to effect pasting"/>
    <TEXT TYPE Action="0" Text="<ENTER>"/>
    <DELAY Flags="\x01" Time="0.5"/>
    <MACRO STOP/>

     

  6. I made other comments, but they did not get posted, because I did not realise I was no longer logged in.

     

    I was able to close the Firefox Window with 'Window Close - Firefox'

    but that left the Library open; THAT can be killed by ALT F4,

    so there is no need for your extensive macro.

     

    It's finally working as I hoped for a long time that it might.

     

    Once again many thanks for your patience and forebearance.

     

  7. It's not obvious to me where you got that list of running processes. I looked in Task Manager's DETAILS tab and and found numerous entries for Chrome (which the macro CAN end), but only ONE for Firefox, which the macro can NOT end.

     

    Just in case (Firefox) Library is less obstinate than Firefox itself, I ask for guidance to close the Library - accepting that maybe Firefox itself can not be closed.

  8. I have the macro working perfectly and reliably now.

     

    One difficulty was the placement of the mouse; I had used 'Point Position' to determine the location of the Menu - where the mouse had to be located, but that turned out to be too approximate - I had to do trial and error to  get those co-ordinates right. I also used a mouse click rather than ENTER (that may or may not be significant)

     

    The number of downarrows in the Menu required to get to EXPORT is less in the successful macro than manually - intriguing.

     

    So some 'art' is required as well as 'scientific' rigour !

     

     

×
×
  • Create New...