| View previous topic :: View next topic |
| Author |
Message |
Puzzled Greatly
Joined: 15 Aug 2009 Posts: 274
|
Posted: Wed Nov 11, 2009 1:30 am Post subject: Copy to New File |
|
|
Hello this should be simple but I can't work out where to start. When I press ctrl+c I want to copy the text selected to a completely new file.
GP |
|
| Back to top |
|
 |
Puzzled Greatly
Joined: 15 Aug 2009 Posts: 274
|
Posted: Wed Nov 11, 2009 1:57 am Post subject: |
|
|
FileAppend works!
| Code: |
FileAppend, %Clipboard%, C:\temp.txt |
|
|
| Back to top |
|
 |
SKAN
Joined: 26 Dec 2005 Posts: 8688
|
Posted: Wed Nov 11, 2009 5:25 am Post subject: Re: Copy to New File |
|
|
| Puzzled Greatly wrote: | | When I press ctrl+c I want to copy the text selected to a completely new file. |
| Code: | #Persistent
SetWorkingDir, %A_ScriptDir%
Return
OnClipboardChange:
If ( A_EventInfo = 1 ) {
FileAppend, %Clipboard%, % ( Saved := A_Now ".txt" )
SoundBeep
}
Return
^F2::Run, Notepad.exe %Saved% |
|
|
| Back to top |
|
 |
engunneer
Joined: 30 Aug 2005 Posts: 8255 Location: Maywood, IL
|
Posted: Wed Nov 11, 2009 1:39 pm Post subject: |
|
|
if skan's post isn't obvious, Ctrl F2 will open the most recently saved file. _________________
(Common Answers) |
|
| Back to top |
|
 |
|