how to copy text into notepad without opening it using hotkey

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
sree161
Posts: 11
Joined: 18 Jul 2017, 11:21

how to copy text into notepad without opening it using hotkey

18 Jul 2017, 11:58

Hi all,
i am new here and i am looking for hot key which can copy data on clip board to a notepad without opening it using some hot key.
i want to copy it to a existing notepad by just clicking on it. i even want to append text.
can some one help on on the same.

Thanks in advance,
sree161.
Guest

Re: how to copy text into notepad without opening it using hotkey

19 Jul 2017, 02:20

Start with the Tutorial and learn how to set up a hotkey and how to Send keys.

You script would like this:

- a hotkey::
- Send key-combo to copy text to the clipboard (hint: what would you press now? Look up those keys)
- the FileAppend command to save the clipboard text to a text file (Clipboard is a special variable in AHK)
- close off with a Return

Try something, post code if you get stuck - and next time post in the Ask for Help section :-)
User avatar
TheDewd
Posts: 1513
Joined: 19 Dec 2013, 11:16
Location: USA

Re: how to copy text into notepad without opening it using hotkey

20 Jul 2017, 09:29

Code: Select all

#SingleInstance, Force

F1::
    FileAppend, % Clipboard "`n", MyTextFile.txt
return

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: AlFlo, mamo691, TAC109 and 111 guests