Page 1 of 1

script for opening application and paste text

Posted: 11 May 2010 16:34
by Ysl
Hi

Could someone help me to have a script that will open the everything.exe program (http://www.voidtools.com/) and then paste the current text of the focused folder/file

I now the beginning will be ::regexreplace $item, "<curbase>", "[^a-zA-Z]+", " "; open

But I don't know how to open/activate everything (I use WIN + S on my keyboard) and then paste the text inside it (if it is possible with a script ?)

Thanks for your help

Ysl

Re: script for opening application and paste text

Posted: 12 May 2010 12:09
by ale
Well I'm no expert but you can't paste easily into Everything, but I think you can pass the text to search for on the commandline, so if you want to search for <curbase>, something like this should work

Code: Select all

run """C:\path\to\Everything.exe"" -search ""<curbase>""";
you have of course to adjust the path to the Everything executable for your system.
If you want to use your regular expression to replace non alphabetic characters something like this should work

Code: Select all

$item = regexreplace("<curbase>", "[^a-zA-Z]+", " "); run """C:\path\to\Everything.exe"" -search ""$item""";

Re: script for opening application and paste text

Posted: 12 May 2010 12:20
by Ysl
Wow !

It's working exactly as I hoped !

Thank you so much !

Ysl