Add clipboard variable to Favorite tools

Discussion and questions - donor version.
Post Reply
Message
Author
mumajs
Posts: 29
Joined: 06.12.2017, 20:16

Add clipboard variable to Favorite tools

#1 Post by mumajs » 19.08.2019, 16:49

Hello Marek,

I am using favorite tools a lot with calling my VBS scripts with %ActivSel% and %InactivDir% variables and it works very well. However last days I had to upgrade my few scripts to use also text which is in clipboard to create the folder name. Sad for me is I found out that VBS has not direct clipboard implementation. Only some terrible workarounds via html or internet explorer itself what is not something I would like to use. Some of the scripts I changed myself from VBS to autoit where I can easily get text from clipboard. Since autoit is not my "cup of coffee" I spent a lot of time to "rewrite" the scripts. It works for me now and I am calling compiled exe from freecommander. But today I started to rewrite my more complex script and it is really hard for me. Then I asked myself if you could somehow ( I guess you can easily get the clipboard value in the development environment) provide the text in clipboard into some PARAMETER variable I can use to pass it to my VBS script. Something like %Clipboard%.

It will make my life easier if you could do that somehow :)

Thank you for wonderfull software!

Marek
Author
Author
Posts: 3973
Joined: 10.04.2006, 09:48
Location: Germany
Contact:

Re: Add clipboard variable to Favorite tools

#2 Post by Marek » 19.08.2019, 22:50

I think that's possible.

mumajs
Posts: 29
Joined: 06.12.2017, 20:16

Re: Add clipboard variable to Favorite tools

#3 Post by mumajs » 20.08.2019, 18:51

That would be wonderful, Marek! Thank you to be customer listening!

Marek
Author
Author
Posts: 3973
Joined: 10.04.2006, 09:48
Location: Germany
Contact:

Re: Add clipboard variable to Favorite tools

#4 Post by Marek » 27.08.2019, 21:55

In the 801 try %ClipboardText%.

mumajs
Posts: 29
Joined: 06.12.2017, 20:16

Re: Add clipboard variable to Favorite tools

#5 Post by mumajs » 28.08.2019, 21:44

Hello Marek,

I downloaded version 801 and it seems it recognize properly %ClipboardText% and it paste what is in clipboard to the VBS! Great job!
But when the value in clipboard has space it paste it as another argument. So it works when in clipboard is "Alfa", but it makes another argument in VBS when in clipboard is "Alfa Beta". Could that be handled as with files with space? So it accept settings "enclose each selected item" so it is passed as one argument also when space in the text?
Then it will be perfect!

Thank you

Marek
Author
Author
Posts: 3973
Joined: 10.04.2006, 09:48
Location: Germany
Contact:

Re: Add clipboard variable to Favorite tools

#6 Post by Marek » 28.08.2019, 22:30

Try to use "%ClipboardText%" and not %ClipboardText%.

mumajs
Posts: 29
Joined: 06.12.2017, 20:16

Re: Add clipboard variable to Favorite tools

#7 Post by mumajs » 29.08.2019, 10:42

That was the trick. Now it works like a charm. Thank you very much!

Post Reply

Who is online

Users browsing this forum: No registered users and 40 guests