Posts: 276
Threads: 34
Joined: Dec 2016
I would like to put a file, save to the clipboard, because behind, I have to use it many times, in the need to use the place, I can paste directly, very convenient, I wrote the following code, but suggested that mistakes, hope someone can help thank you very much
Macro
Macro6
str ss="$desktop$\A.doc"
ss.setclip("CF_DOC")
paste ss
Posts: 12,092
Threads: 142
Joined: Dec 2002
Put .doc file content in clipboard? QM can't do it.
Posts: 276
Threads: 34
Joined: Dec 2016
Can not simulate the Ctrl + C implementation file into the clipboard?
If not, i can only use ctrl + c, then in the place where needed, Ctrl + v :oops:
Posts: 12,092
Threads: 142
Joined: Dec 2002
Can do it with HTML files or text, but not with .doc.
Posts: 64
Threads: 19
Joined: Nov 2012
01-10-2019, 02:22 AM
(This post was last modified: 01-10-2019, 02:27 AM by pctechtv.)
"Can do it with HTML files or text, but not with .doc."
What about with *.jpg or *.png. Could you show an example of doing it with a format that it can work with. Could you show how it can have a file name also? Thanks
Posts: 12,092
Threads: 142
Joined: Dec 2002
Windows has only 1 format for images - bitmap.
*.jpg and *.png can be converted to bitmap. If you need it. With GDI+ or FreeImage.
http://ftp.quickmacros.com/forum/showthr...p?tid=5046