Command for create/paste clipboard content into .TXT file?

Discussion, questions and support.
Posts: 54
Joined: Sat Jun 06, 2015 2:28 am

Command for create/paste clipboard content into .TXT file?

PostPosted by cadudesun » Tue Apr 11, 2017 2:24 am

Hi,

I'd appreciate help. Recently I created a topic about creating a .doc file based on clipboard content:
topic447.html

Now, the point is to create a new .txt file having as "body" the clipboard content.
In the case of .txt, I'm wondering if it is possible to perform a command that creates the file direct, without the need of open the application (as with .doc and Word).
In this screen-recording (https://goo.gl/Ss2rqP) I show my file explorer performing a command that creates .txt directly, and I'm trying to achieve similar process through FastKeys.
Is it possible?

Thanks!
Carlos_Cadu

Site Admin
User avatar
Posts: 641
Joined: Sat Mar 02, 2013 9:02 pm

Re: Command for create/paste clipboard content into .TXT fil

PostPosted by Marko » Tue Apr 11, 2017 9:43 pm

Code: Select all
File:="D:\Filename.txt"
FileDelete, %File%
FileAppend, %Clipboard%, %File%

Posts: 54
Joined: Sat Jun 06, 2015 2:28 am

Re: Command for create/paste clipboard content into .TXT fil

PostPosted by cadudesun » Mon Apr 17, 2017 9:06 pm

Worked amazingly! Thanks.

Return to General Discussion

Who is online

Users browsing this forum: No registered users and 0 guests