Jump to content
Macro Express Forums

Sebastian42

Members
  • Posts

    129
  • Joined

  • Last visited

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

Sebastian42's Achievements

Contributor

Contributor (5/14)

  • Dedicated Rare
  • Conversation Starter Rare
  • First Post Rare
  • Collaborator Rare
  • Week One Done Rare

Recent Badges

0

Reputation

  1. Is it possible (HOW ?) to have a second instance of the Editor open for copying good ideas from an existing one, to one-in-the-making ?
  2. That is so far above my usage, I simply have to take your word for it; but on a general level, I can accept that macros can build more intelligence into processes than batch files can.
  3. "its constraints spark creativity. " amply demonstrated by complex code that can be replaced by one line in a batch file. Incidentally, I've used up all the available keys with Left-Win and Right-Win for text string entries. I think that has exhausted my potential use of Autohotkeys.
  4. 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.
  5. Alas, the DATA folder that I want to copy is full of folders.
  6. My predicted return is realised. To finish the job of this macro, I now want to copy C:\data to A:\ The Files/Folder category has a 'copy files' but no 'copy folders'. How to construct the code to do THAT ?
  7. It did not fail after that tweak. Thank you. I'm sure I'll be finding refuge with you again before long.
  8. Macro Express is a hard Task Master - VERY hard to please.
  9. I have experimented as best I could. If I am on the right track, there is the new obstacle of the dialogs not accepting any text, so I can not enter '%Data%'.
  10. 'Data' is the name of a folder, so no extension is required. Will report back after I have fixed 'variable'; Up to now variables have only perplexed me; maybe I'll gain more understanding today.
  11. 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.
  12. 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...
  13. Looks so much easier ! I could not create a new macro for some reason, so copied an existing one and disembowelled it, by deleting its contents and replacing it with your code. I modified where your guesses did not match my system. It failed. I guessed that time delays may be required between the steps. I'm working on putting those last steps into proper format.
  14. 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 : 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/>
  15. I can get a macro to 'select' a folder whose name I want to change; as my snip shows, the selection is not the usual highlighting which makes it susceptible to right-click, but only makes it encased in a rectangle. How do I convert that to full selection, so I can right-click on it ?
×
×
  • Create New...