Page 1 of 1

Add clipboard variable to Favorite tools

Posted: 19.08.2019, 14:49
by mumajs
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!

Re: Add clipboard variable to Favorite tools

Posted: 19.08.2019, 20:50
by Marek
I think that's possible.

Re: Add clipboard variable to Favorite tools

Posted: 20.08.2019, 16:51
by mumajs
That would be wonderful, Marek! Thank you to be customer listening!

Re: Add clipboard variable to Favorite tools

Posted: 27.08.2019, 19:55
by Marek
In the 801 try %ClipboardText%.

Re: Add clipboard variable to Favorite tools

Posted: 28.08.2019, 19:44
by mumajs
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

Re: Add clipboard variable to Favorite tools

Posted: 28.08.2019, 20:30
by Marek
Try to use "%ClipboardText%" and not %ClipboardText%.

Re: Add clipboard variable to Favorite tools

Posted: 29.08.2019, 08:42
by mumajs
That was the trick. Now it works like a charm. Thank you very much!