How to copy file to clipboard (from specific path) and paste?

Discussion, questions and support.
Post Reply
cadudesun
Posts: 74
Joined: Jun 6th, ’15, 03:28

Post by cadudesun » Apr 24th, ’19, 18:26

Hello,

I'd appreciate your help.

I have some template files stored in specific paths, for instance:
C:\TEMPLATES\File.pdf
C:\TEMPLATES\File.docx
C:\TEMPLATES\File.png

I'm trying to build a start menu "TEMPLATE" in FastKeys like that:
Template PDF
Template DOCX
Template PNG

When clicking the menu item (e.g. "Template DOCX"), the script should:
(1) copy that specific file from the path (C:\TEMPLATES\File.docx) to the clipboard
(2) paste the full file (File.docx)

Does anyone know how to do that?

Thank you very much!
Carlos
cadudesun
Posts: 74
Joined: Jun 6th, ’15, 03:28

Post by cadudesun » Apr 27th, ’19, 18:43

Regarding the main part of the scrip, which is "copy a file from a specified path", I tried - without success - to use the syntaxes available at the last page of this topic:
https://autohotkey.com/board/topic/2316 ... ard/page-4
Fastkeys is poping-up an error message.

Also, I'm wondering if I so complex syntax (from the topic above) is needed to just copy a file from a specified path.

Does anyone have further information on how to copy a file from a specified path?

Thank you!
SaraJubaro5
Posts: 3
Joined: May 20th, ’19, 15:04

Post by SaraJubaro5 » May 20th, ’19, 15:05

thanks
Post Reply