Button to put text+filename to clipboard

English support forum

Moderators: white, Hacker, petermad, Stefan2

Post Reply
msrox
Member
Member
Posts: 101
Joined: 2008-03-14, 00:10 UTC

Button to put text+filename to clipboard

Post by *msrox »

I am trying to create a button on the toolbar that gets name of the selected file and add a text before its name and then put it in the clipboard.

I appreciate if somebody can help me on this.
Sob
Power Member
Power Member
Posts: 941
Joined: 2005-01-19, 17:33 UTC

Post by *Sob »

If one selected file is enough for you, then you may try this:

http://web.hisoftware.cz/sob/download/CopyToClipboard.7z

It's tiny executable that takes any number of parameters, concatenates them and puts the result in clipboard. Unicode, >=Win2k, with source.

Button parameters for you: "some text " %N
msrox
Member
Member
Posts: 101
Joined: 2008-03-14, 00:10 UTC

Post by *msrox »

Many thanks for your replies.
I found AutoHotKey very interesting and lots of topics about it in this forum. But I never wrote any code for it, and I really am eager to learn it. So I am wondering if I can do this using AutoHotKey? If it is possible would be please let me know how.

Do you recommend AutoHotKey at all to automate different tasks in Windows?
User avatar
Hacker
Moderator
Moderator
Posts: 13052
Joined: 2003-02-06, 14:56 UTC
Location: Bratislava, Slovakia

Post by *Hacker »

msrox,
AutoHotkey script to put first (text) and second (file name) parameter to clipboard:

Code: Select all

Clipboard = %1%%2%
Roman
Mal angenommen, du drückst Strg+F, wählst die FTP-Verbindung (mit gespeichertem Passwort), klickst aber nicht auf Verbinden, sondern fällst tot um.
msrox
Member
Member
Posts: 101
Joined: 2008-03-14, 00:10 UTC

Post by *msrox »

so how can I get file name and how can I specify the text I want to add?
Luzie
Junior Member
Junior Member
Posts: 91
Joined: 2003-02-27, 07:58 UTC

Post by *Luzie »

Hi sorry for asking. But how can I integrate/install you script into Total Commander?
User avatar
Vochomurka
Power Member
Power Member
Posts: 814
Joined: 2005-09-14, 22:19 UTC
Location: Russia
Contact:

Post by *Vochomurka »

Luzie wrote:Hi sorry for asking. But how can I integrate/install you script into Total Commander?
Link from the Main Page.
Ask me if something is still not clear.
Good luck
Single user license #329241
PowerPro scripts for Total Commander
Post Reply