AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Copy to New File

 
Reply to topic    AutoHotkey Community Forum Index -> Ask for Help
View previous topic :: View next topic  
Author Message
Puzzled Greatly



Joined: 15 Aug 2009
Posts: 274

PostPosted: Wed Nov 11, 2009 1:30 am    Post subject: Copy to New File Reply with quote

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
View user's profile Send private message
Puzzled Greatly



Joined: 15 Aug 2009
Posts: 274

PostPosted: Wed Nov 11, 2009 1:57 am    Post subject: Reply with quote

FileAppend works!
Code:

   FileAppend, %Clipboard%, C:\temp.txt
Back to top
View user's profile Send private message
SKAN



Joined: 26 Dec 2005
Posts: 8688

PostPosted: Wed Nov 11, 2009 5:25 am    Post subject: Re: Copy to New File Reply with quote

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
View user's profile Send private message Send e-mail
engunneer



Joined: 30 Aug 2005
Posts: 8255
Location: Maywood, IL

PostPosted: Wed Nov 11, 2009 1:39 pm    Post subject: Reply with quote

if skan's post isn't obvious, Ctrl F2 will open the most recently saved file.
_________________

(Common Answers)
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Reply to topic    AutoHotkey Community Forum Index -> Ask for Help All times are GMT
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group