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

<< < (2/2)

rgdot:
For example something as simple as this works fine

Capslock::Shift
return

MilesAhead:
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?



-rgdot (October 25, 2016, 04:09 PM)
--- End quote ---

I don't know if it makes any difference but the thing I notice where your script differs from the example is the example has a Return directly after the #Persistent directive.  Also I would probably use the A_EventInfo to find out if the clipboard data is of type text.

rgdot:
I believ %Clipboard% is already Text type %ClipboardAll% would be other formats

rgdot:
As expected something trivial was needed

:down:

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

--- Code: Autohotkey ---FileAppend, %clipboard%`r`n, %A_WorkingDir%\clip1.txt
Thanks guys :)

MilesAhead:
I believ %Clipboard% is already Text type %ClipboardAll% would be other formats
-rgdot (October 26, 2016, 09:56 PM)
--- End quote ---

True.  Also you can test %ClipBoard% for blank.  I think there is an unwritten rule stuff cannot work the first time.  Once you get things fixed they often look pretty close to what you started with.  :)

Navigation

[0] Message Index

[*] Previous page

Go to full version