Cannot paste

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
User avatar
HARQUR
Posts: 33
Joined: 11 Jan 2021, 08:07

Cannot paste

Post by HARQUR » 16 May 2022, 15:13

Code: Select all

LAlt & PrintScreen::
Sleep 10
FileRead, Clipboard, *c C:\Users\[quote]whatever user[/quote]\Dropbox\Scripts\Torges\torge.txt; Note the use of *c, which must precede the filename
Sleep 50
Send ^v
Return
Hi this used to return my formatted character and paste it, error level still 0, but doesn't paste anything.

User avatar
boiler
Posts: 16769
Joined: 21 Dec 2014, 02:44

Re: Cannot paste

Post by boiler » 16 May 2022, 15:26

Why are you saying you must use *c when it looks like you are loading regular text, not binary data? If it was binary data, you would use ClipboardAll.

By the way, if you have what you meant to be a comment as you've shown above in your actual script, it's not a comment because you didn't precede the ; with a space, so it became part of the file name you specfied.

User avatar
HARQUR
Posts: 33
Joined: 11 Jan 2021, 08:07

Re: Cannot paste

Post by HARQUR » 16 May 2022, 19:45

i fixed what you said, but i use clipboard all because text is formatted, this used to work by the way.

Post Reply

Return to “Ask for Help (v1)”