ATTENTION: You are viewing a page formatted for mobile devices; to view the full web page, click HERE.

DonationCoder.com Software > Post New Requests Here

Clipboard to text file

(1/2) > >>

rgdot:
This I guess is not a request but a noob question  :-[

Running AHK, compiled a exe, what is missing from

#Persistent
OnClipboardChange:
FileAppend, %clipboard%, ‪C:\Users\RG\Desktop\clip1.txt
return

to keep all copied text in the text file?


skwire:
It works here for me.  However, you're trying to write to a UAC-protected folder so you will have to have either have admin rights or run the executable with admin rights.  Alternately, you could write to a non-UAC-protected folder.  Also, I'd add a CRLF when writing out the clipboard contents like this:


--- Code: Autohotkey ---FileAppend, %clipboard%`r`n, ‪C:\Users\RG\Desktop\clip1.txt

rgdot:
Desktop is UAC protected?  Moved it to Documents and doesn't work either.

Strange.

skwire:
Did you try running it with admin rights?

rgdot:
Yes I did, not really sure what is going on, I will try other ready made scripts and see if I can get any hints. My fault for spending more time on windows again  :P

Navigation

[0] Message Index

[#] Next page

Go to full version