Page 1 of 1

Script makes Everything search for highlighted text

Posted: Mon Jul 13, 2009 2:27 pm
by DAT
I think 'Everything' is a great piece of software and I'm using it a lot. It almost seems too good to be true :-)

To save time cutting and pasting search words into my favourite search windows I've written a simple script in Autohotkey. Full details and source code are at http://www.autohotkey.com/forum/topic46083.html.

With this script running in the background, if you want to use Everything to search for a bit of on-screen text, you just highlight the text and rapidly double-press the right-hand Control key. ('Rapidly' means within 0.2s, but you can edit the script to change this if necessary).

In the same way a rapid double-press of the right-hand Shift key does a Google search on the highlighted text; and if you happen to have 'Copernic Desktop Search 2' installed, a rapid triple-press of the right-hand control key puts the text into the Copernic search window.

In each case if no text is highlighted the relevant search window appears ready for you to type in the search text manually.

The attached zip contains the script compiled into an exe file called SearchInterface.exe. Just extract the file and click on it to run it. Alternatively you could download and install Autohotkey from http://www.autohotkey.com/download/. Then copy and paste the script from http://www.autohotkey.com/forum/topic46083.html into Notepad and save it as say SearchInterface.ahk. Then just double-click the ahk file to run it.

Re: Script makes Everything search for highlighted text

Posted: Thu Jul 16, 2009 7:35 am
by jjk
Hello
I just checked your prog.
But it uses "C:\program files\everything\" as install directory for Everything. And here it is an other dir.

How can I configure to use it ?

Thanks

EDIT
I used Exe2Ahk.exe to decompile, modified path in .ahk, then Ahk2Exe to recompile. And it works.
I tested with twice Ctrl to open Everything with highlighted text as search text. All seems perfect.
Thanks again.

Re: Script makes Everything search for highlighted text

Posted: Thu Jul 16, 2009 9:52 am
by DAT
I'm glad you find the script useful, and that you were able to modify it to suit your install location. But, out of curiosity, why bother decompiling? The commented ahk script is at http://www.autohotkey.com/forum/topic46083.html, so you could just alter that and then use Ahk2Exe to compile it.

Re: Script makes Everything search for highlighted text

Posted: Mon Jul 27, 2009 5:03 pm
by cacamama
I wrote a similar, more streamlined autohotkey script a while back. No one seemed to care. Check it out:

http://forum.voidtools.com/viewtopic.ph ... p=407#p407

Re: Script makes Everything search for highlighted text

Posted: Mon Jul 27, 2009 6:00 pm
by cacamama

New Context Menu Item Puts Any Folder Into a Dialog Window

Posted: Mon Jul 27, 2009 8:46 pm
by DAT
Hi cacamama, Seems we're on a similar wavelength. I followed up your link and I too like the suggestion for attaching "Everything" to Save As dialogs.

Meanwhile until David works through his 'To Do' list, and if anyone's interested, I wrote an autohotkey script to achieve a similar result. It's downloadable from 'New Context Menu Item Puts Any Folder Into a Dialog Window' at http://www.autohotkey.com/forum/topic40764.html and there are screenshots at http://docs.google.com/Doc?id=dccck29f_8hr2nj3dz. Originally I wrote it to replace Dialog Box Assistant and before Everything came on the scene, but with Everything it's even more useful than it was before.

The idea is that, with a Save or Save As dialogue open, you navigate to your target folder using any convenient method. Mostly I use True Launch Bar or Everything for that, but often I've already got the folder visible in my file browser. Anyway once you can see the folder you want, you right-click on it and select 'Send to Dialog Window' in the context menu. (The article explains how to add 'Send to Dialog Window' to the context menu). The target folder then appears in the dialogue window. It works with all the dialogue windows I've found so far in Windows XP, Vista, Office 2003, and Directory Opus and I find it quite a time-saver.

Re: Script makes Everything search for highlighted text

Posted: Tue Jul 28, 2009 6:52 pm
by cacamama
Hey DAT,

interesting effort, i hadn't thought about such a technique. Tighter integration with save/open dialogs would be much better though imho.

Re: Script makes Everything search for highlighted text

Posted: Fri Jul 31, 2009 3:34 am
by daspud
I will have to check out your script. I have been using Everything and Copy and Paste to eliminate the drilldown on save/open menus.

Thanks, Spuddie

Re: Script makes Everything search for highlighted text

Posted: Fri Jul 31, 2009 12:44 pm
by cacamama
Btw there needs to be a shortcut key to copy the path of the selected item. It would be terribly useful.

Re: Script makes Everything search for highlighted text

Posted: Fri Jul 31, 2009 3:09 pm
by DAT
Btw there needs to be a shortcut key to copy the path of the selected item. It would be terribly useful.
I can recommend http://stefan.bertels.org/en/clipboardpath for that. It puts a new command "Copy Path to Clipboard" into the context menu for files and folders. Works fine with Everything - and anywhere else there's a folder icon.

I hope you'll let me know if you find my AHK script useful. I was disappointed to get hardly any feedback when I put on the Autohotkey website.

(Not as bad as this one though: 'Dock'nDrag - Docks Two Windows Together for Move and Resize' at http://www.autohotkey.com/forum/topic40690.html. No-one ever replied to that posting! Surprising really because I find it very useful to be able to dock two windows together and resize them as a unit, for example if you've got an editor and a Help file open at the same time you can widen one window at the expense of the other all in one easy action).

Re: Script makes Everything search for highlighted text

Posted: Fri Aug 28, 2009 4:07 pm
by DAT
I just posted a new version of the script at http://www.autohotkey.com/forum/topic46083.html. This version lets you toggle the local search windows on and off so there's no need to use the mouse to close the search windows. It works like this:

1. Rapid double-click on RControl activates Everything to search on highlighted text. Repeated activation with no change to highlighted text toggles Everything between minimised-to-tray and restored.

2. Rapid double-click on LControl activates Copernic to search on highlighted text. Repeated activation with no change to highlighted text toggles Copernic between minimised-to-Task Bar and restored. Rapid triple-click on LControl minimises Copernic to tray and clears its search box.

3. Rapid double-click on RShift searches for highlighted text using Google (as before).

Re: Script makes Everything search for highlighted text

Posted: Sat Sep 12, 2009 3:36 pm
by konkoo7
Great stuff!!

Shem

Re: Script makes Everything search for highlighted text

Posted: Sun Mar 18, 2018 7:48 am
by hengl
Thanks Dat. I have been looking for this solution for a long time

Re: Script makes Everything search for highlighted text

Posted: Sun Mar 18, 2018 9:43 am
by Stamimail
Look also here:
Textify and Everything

Re: Script makes Everything search for highlighted text

Posted: Sun Mar 18, 2018 11:47 am
by ovg
2Stamimail
Thanks for sharing!
It seems interesting even without integration with Everything. (I don't need in such integration)

Re: Script makes Everything search for highlighted text

Posted: Tue Mar 20, 2018 5:39 pm
by Stamimail
My thanks to RaMMicHaeL
BTW, open-sourced just recently. https://github.com/RaMMicHaeL/Textify