Autosearch

Have a suggestion for "Everything"? Please post it here.
Post Reply
XerxesD
Posts: 10
Joined: Sat Sep 27, 2014 7:27 pm

Autosearch

Post by XerxesD »

Would it be possible to add a auto-search on clipboard content as a selectable option?
Becomes very hard to keep activating Everything each time.
therube
Posts: 4979
Joined: Thu Sep 03, 2009 6:48 pm

Re: Autosearch

Post by therube »

Not sure if this would be enough for you, but, how to add everything as a search engine in firefox?. (Actually not quite what you're wanting.)


So just how is this to work?
Clipboard changes & with that a search should automatically happen?
Suppose you would only want that action enabled at specific times, specific situations?
XerxesD
Posts: 10
Joined: Sat Sep 27, 2014 7:27 pm

Re: Autosearch

Post by XerxesD »

Yes. Autosearch on clipboard change. Would be really useful in finding duplicates and checking files against a list and save us quite a bit of button mashing,
vsub
Posts: 474
Joined: Sat Nov 12, 2011 11:51 am

Re: Autosearch

Post by vsub »

Autohotkey script

Code: Select all

#Persistent
Clipboard =
OnClipboardChange:
If A_EventInfo != 1
Return
IfWinNotExist,AHK_exe Everything.exe
Return
WinGet,State,MinMax,AHK_exe Everything.exe
If State != 0
Return
WinActivate,AHK_exe Everything.exe
ControlSetText,Edit1,% Clipboard,AHK_exe Everything.exe
Return
For it to work(I set those conditions),the Everything window must be visible(not minimized to the tray\taskbar nor maximized).
Just copy a text and everything will do a search with that text.

If you post exactly what you want to do,I may come up with even better solution
XerxesD
Posts: 10
Joined: Sat Sep 27, 2014 7:27 pm

Re: Autosearch

Post by XerxesD »

Actually, this is exactly what I was looking for. Thanks a lot.
Any way to keep a bookmark active while using your scipt?
vsub
Posts: 474
Joined: Sat Nov 12, 2011 11:51 am

Re: Autosearch

Post by vsub »

The simplest way would be to edit ControlSetText

ControlSetText,Edit1,% "the text witch the bookmark set" A_Space Clipboard,AHK_exe Everything.exe
Don't remove the quotes,place the text there.

It will be a little complicated if you want to use different bookmarks without editing the ControlSetText every time(I can't picture it yet how it will work)
XerxesD
Posts: 10
Joined: Sat Sep 27, 2014 7:27 pm

Re: Autosearch

Post by XerxesD »

Perfect. Thank you.
Post Reply