Automate Folders / Files

Discussion, questions and support.
Post Reply
mragtronx8
Posts: 42
Joined: Feb 2nd, ’20, 08:36

Post by mragtronx8 » Mar 20th, ’22, 03:41

i have some folders and files that i want to move/copy to a folder [user selection].

STEPS:-
1- select the folders and files
2- cut or copy OPTION
3- pause for user selection to select target folder [to paste]
4- paste in selected folder

is there a macro or script to help automate this.
User avatar
Tom
Posts: 791
Joined: Nov 24th, ’15, 23:39

Post by Tom » Mar 20th, ’22, 18:32

Select files in File Explorer, Ctrl+C, select destination folder, Ctrl+V...

Or do I miss something?
mragtronx8
Posts: 42
Joined: Feb 2nd, ’20, 08:36

Post by mragtronx8 » Mar 21st, ’22, 15:42

Hi Tom,
i tried to create a code, but was unable to figure it out.
Am unable to figure out how to pause, to select the folder [in the code]

Could you please help me with the code.
I want to automate this process, so when i execute a gesture or start menu command;
i just select the files and point to the folder; and the rest is automated.
User avatar
Tom
Posts: 791
Joined: Nov 24th, ’15, 23:39

Post by Tom » Mar 22nd, ’22, 16:51

I still don't understand why do you need to further automate a simple copy/paste.

You can use a Sleep command to pause the script: https://www.autohotkey.com/docs/commands/Sleep.htm
... and FileSelectFolder command to select the folder: https://www.autohotkey.com/docs/command ... Folder.htm
mragtronx8
Posts: 42
Joined: Feb 2nd, ’20, 08:36

Post by mragtronx8 » Mar 24th, ’22, 16:04

thanx.

I know it is a simple task.
but when there are over 500 folders daily and daily sorting, this automation will help.

can u please advise how-to code/script [KeyWait] using SEND, and not COMMAND.
User avatar
Tom
Posts: 791
Joined: Nov 24th, ’15, 23:39

Post by Tom » Mar 25th, ’22, 14:02

{1000} waits 1 second.
If you need the script to wait until any key is pressed you could use a Message Box macro, available in Professional Edition.
Post Reply