Welcome Guest.   Make a donation to an author on the site November 29, 2014, 12:23:48 AM  *

Please login or register.
Or did you miss your validation email?


Login with username and password (forgot your password?)
Why not become a lifetime supporting member of the site with a one-time donation of any amount? Your donation entitles you to a ton of additional benefits, including access to exclusive discounts and downloads, the ability to enter monthly free software drawings, and a single non-expiring license key for all of our programs.


You must sign up here before you can post and access some areas of the site. Registration is totally free and confidential.
 
Your Support Funds this Site: View the Supporter Yearbook.
   
   Forum Home   Thread Marks Chat! Downloads Search Login Register  
Pages: [1]   Go Down
  Reply  |  New Topic  |  Print  
Author Topic: Everything Search Engine: tips, tricks, ideas and code for poweruse  (Read 3001 times)
Nod5
Supporting Member
**
Posts: 749



View Profile Give some DonationCredits to this forum member
« on: August 08, 2014, 01:48:10 PM »

The Everything Search Engine updated to version 1.3.4.686, after a steady stream of updates this summer.

As many here already know Everything very quickly searches through lots of file and folder names on NTFS hard drive. Great to instantly find that particular file you're looking for but forgot where you put. Together FARR and Everything make up a devastatingly dynamic file detection duo.  Grin

Let this be an open thread for tips, tricks, ideas and code for poweruse of Everything. I'll start.

1. In this post I showed how to quickly pass searches from FARR to Everything

2. I made an autohotkey script to quickly display and browse through all and only the images selected in Everything results, even when those images are from different folders.
Formatted for Autohotkey with the GeSHI Syntax Highlighter [copy or print]
  1.  
  2. GroupAdd,xwin,ahk_exe MaxView.exe
  3. GroupAdd,xwin,ahk_exe i_view32.exe
  4. GroupAdd,xwin,ahk_exe JPEGView.exe
  5.  
  6. #IfWinActive, ahk_class EVERYTHING
  7. F4::
  8. clipsaved := ClipboardAll  
  9. send ^c
  10. clipboard := clipsaved
  11. clipsaved =
  12.  
  13. arr := {}
  14. Loop, Parse, x, `n, `r
  15. {
  16. if xext in jpg,jpeg,tif,png,gif
  17. arr.Insert(A_LoopField)
  18. }
  19. x = 0
  20. gosub showfirst
  21.  
  22. #IfWinActive ahk_group xwin
  23. #Right::
  24. #Left::
  25. showfirst:
  26. if (arr.MaxIndex()<1)or(x==arr.MaxIndex() and A_ThisHotkey=="#Right")or(x==1 and A_ThisHotkey=="#Left")
  27. x += A_ThisHotkey == "#Left" ? -1 : 1
  28. do := arr[x]
  29. Run %do%
If you have autohotkey installed you can run the attached .ahk file. Else run Everything_view_images.exe in the attached zip file (md5 hash c9bde6b19168c7c0593035b435b5c862 ). Next search with Everything and select some image files. Press F4. The first image will open in your default viewer. Next press win+right and win+left to display the next/previous of the selected images. The code should work if your default image viewer is MaxView or JPEGView or IrfanView and the viewer is set to "single instance" mode.
Want to change the hotkey? Edit line 10.
Want to try it with some other default viewer? Edit the filename on line 5 to that of your viewer's exe file.
Want to display the images in a non default viewer? Then also edit line 39 to something like
[copy or print]
Run "C:\Program Files\IrFanView\i_view32.exe" "%do%"
but with the application path for the preferred viewer.

3. The same approach as above could be used to do other quick operations on Everything results. For example a script that does GREP searches on the content of all selected files using a tool like Silver Searcher and list all detected content snippets.

* Everything_view_images.zip (795.3 KB - downloaded 69 times.)
« Last Edit: August 08, 2014, 01:54:52 PM by Nod5 » Logged
IainB
Supporting Member
**
Posts: 4,881


Slartibartfarst

see users location on a map View Profile Give some DonationCredits to this forum member
« Reply #1 on: August 12, 2014, 01:54:47 AM »

@Nod5: Thanks for the above where you say:
Quote
...quickly display and browse through all and only the images selected in Everything results, even when those images are from different folders.
It just so happens that, as a relatively new user of Everything, I was pondering over how to do just as you describe, so you have saved me a lot of trouble, including the learning you went through in your post Launch Everything from FARR as non-admin with UAC on but no prompt

Now I shall have to make the time to do it...
Logged
Nod5
Supporting Member
**
Posts: 749



View Profile Give some DonationCredits to this forum member
« Reply #2 on: August 12, 2014, 04:42:53 AM »

Glad you like it. I should have added that this way of browsing/displaying images from many different folders is especially useful for those who do tagging in file names. Search Everything for ".jpg panda", all panda photos ever saved and tagged with panda in the name are listed, select all and run the hotkey to start browsing/displaying them all.
Logged
IainB
Supporting Member
**
Posts: 4,881


Slartibartfarst

see users location on a map View Profile Give some DonationCredits to this forum member
« Reply #3 on: August 12, 2014, 05:05:09 AM »

^^ Yes, that's what I try to do (have an identifiable "tag" string in the filename of images), but it is not feasible to independently tag each and every image in one's large collection of images, which is why I like the tagging feature for images in Picasa, which uses the IPTC fields - except not always in a "standard" way, it seems...(hence my separate lament on the subject).
Logged
Nod5
Supporting Member
**
Posts: 749



View Profile Give some DonationCredits to this forum member
« Reply #4 on: August 12, 2014, 08:10:30 AM »

I actually try to tag all my saved photos. I use a custom ahk tool to tag many files quickly. I might release it as my N.A.N.Y. submission this year.

I don't use Picasa, IPTC is metadata (not in the file name) right? Do you have some way to first IPTC tag in Picasa and then convert those tags to filename tags?
Logged
yksyks
Supporting Member
**
Posts: 474


see users location on a map View Profile Give some DonationCredits to this forum member
« Reply #5 on: August 12, 2014, 08:25:21 AM »

@Nod5:

Flexible Renamer is capable to use IPTC tags and place them in filenames.
Logged
IainB
Supporting Member
**
Posts: 4,881


Slartibartfarst

see users location on a map View Profile Give some DonationCredits to this forum member
« Reply #6 on: August 13, 2014, 10:12:04 AM »

...I don't use Picasa, IPTC is metadata (not in the file name) right? Do you have some way to first IPTC tag in Picasa and then convert those tags to filename tags?
Yes, IPTC is metadata.
Tags made in photos using Picasa come out as keyword in the IPTC metadata, and as Tags in Windows Explorer.
I personally would not want to convert metadata tags to tag strings in filenames - it seems tedious and inefficient. The metadata seems useful as it is, but what bugs me is the lack of adherence/conformity to/with tagging standards.
Logged
Skrell
Supporting Member
**
Posts: 14


View Profile Give some DonationCredits to this forum member
« Reply #7 on: October 27, 2014, 09:40:20 AM »

If i didn't want to run FAR in addition to Everything , does anyone have some tips for using Everything to browse through folders easily?  I find it cumbersome right now to do that and the EVerything help manual is quite extensive so i'm looking for a couple quick tips.  smiley
Logged
nms1944
Participant
*
Posts: 12

View Profile Give some DonationCredits to this forum member
« Reply #8 on: October 28, 2014, 11:59:49 AM »

I for one am unable to get this script working.  It displays the first result image and then other non result images in the same folder.

It does not display the images found in other directories.
Logged
whippy
Participant
*
Posts: 20

View Profile Give some DonationCredits to this forum member
« Reply #9 on: November 03, 2014, 07:02:24 AM »

A pity it wont work in Linux
Logged
peter.s
Participant
*
Posts: 88

View Profile Give some DonationCredits to this forum member
« Reply #10 on: November 03, 2014, 02:25:20 PM »

"A pity it won't work in Linux." - well, it doesn't even work in Windows as you would expect; this puts into perspective any try to automate it with AHK, of course. (Don't be too sure the problems discussed over there are limited to defunct Win versions.)

http://www.voidtools.com/...t=4547&p=11212#p11212
Logged
Nod5
Supporting Member
**
Posts: 749



View Profile Give some DonationCredits to this forum member
« Reply #11 on: November 03, 2014, 06:19:33 PM »

I for one am unable to get this script working.  It displays the first result image and then other non result images in the same folder.
It does not display the images found in other directories.
What image viewer are you trying the script with? Just to make sure, you are using windows+right/windows+left to move to display the next/previous of the selected images after the initial F4 press?
Logged
nms1944
Participant
*
Posts: 12

View Profile Give some DonationCredits to this forum member
« Reply #12 on: November 08, 2014, 09:27:16 AM »

Yes I tried windows+right/windows+left - still does not work for me.
Logged
Nod5
Supporting Member
**
Posts: 749



View Profile Give some DonationCredits to this forum member
« Reply #13 on: November 10, 2014, 02:12:14 PM »

[removed, duplicate]
Logged
Nod5
Supporting Member
**
Posts: 749



View Profile Give some DonationCredits to this forum member
« Reply #14 on: November 10, 2014, 02:12:29 PM »

Yes I tried windows+right/windows+left - still does not work for me.
What image viewer are you using?
Logged
nms1944
Participant
*
Posts: 12

View Profile Give some DonationCredits to this forum member
« Reply #15 on: November 10, 2014, 02:30:01 PM »

IrfanView
Logged
Nod5
Supporting Member
**
Posts: 749



View Profile Give some DonationCredits to this forum member
« Reply #16 on: November 10, 2014, 04:28:25 PM »

IrfanView
I tried it again with IrFanView (portable version) just now and it works all right on my end.

Could you have some other script with the hotkey windows+left/windows+right that overrides this one? You can troubleshoot that by temporarily replacing the two instances of the string "#Right" in the .ahk source with some more unusual hotkey like "^#+i" (control+shift+win+i) and save and test if that makes a difference.

Did you try the .exe version or the .ahk version? If .ahk version, do you have the latest version of Autohotkey installed?

Edit: if someone else is reading this and has tried it with IrFanView on their system and found it working (or not), chip in.
Logged
nms1944
Participant
*
Posts: 12

View Profile Give some DonationCredits to this forum member
« Reply #17 on: November 10, 2014, 05:07:47 PM »

If the answer is YES to my next questions I am embarrassed.

Does this script only work with FARR & EVERYTHING?
Logged
Nod5
Supporting Member
**
Posts: 749



View Profile Give some DonationCredits to this forum member
« Reply #18 on: November 11, 2014, 02:14:41 AM »

It has nothing to do with FARR. But obviously you need Everything. And one of the image viewers mentioned.
Logged
nms1944
Participant
*
Posts: 12

View Profile Give some DonationCredits to this forum member
« Reply #19 on: November 11, 2014, 08:11:13 AM »

To the best of my knowledge I have not hotkeys that use windows+left/windows+right combination.  Yes I have the latest version installed.

I ran the exe and nothing happened at all and when I ran EVERYTHING after the exe the keys did not work.

I was wondering if it could be because I installed EVERYTHING on my D: drive???
Logged
Nod5
Supporting Member
**
Posts: 749



View Profile Give some DonationCredits to this forum member
« Reply #20 on: November 11, 2014, 09:11:28 AM »

Where you have installed Everything does not matter.

The script only opens images with these extensions jpg,jpeg,tif,png,gif (to change that edit line 23) - maybe you selected some images with other extensions?

Save and try this troubleshooting version of the script. The only difference is that it displays a popup message test1 when you press F4 and when IrFanView has loaded the first image and you press windows+left/right it should display three popups (test 2, 3, 4).
Do you get all those four popups?
Does the test1 popup include all the paths to the images selected in Everything?
Does the test3 popup show a number?
Does the test4 popup show a file path to one of the images selected in Everything?
[copy or print]
#NoEnv
SendMode Input
#SingleInstance force
 
GroupAdd,xwin,ahk_exe MaxView.exe
GroupAdd,xwin,ahk_exe i_view32.exe
GroupAdd,xwin,ahk_exe JPEGView.exe
 
#IfWinActive, ahk_class EVERYTHING
F4::
clipsaved := ClipboardAll  
clipboard =
send ^c
clipwait
x := clipboard
clipboard := clipsaved
clipsaved =
 
arr := {}
Loop, Parse, x, `n, `r
{
SplitPath, A_LoopField,,,xext
if xext in jpg,jpeg,tif,png,gif
arr.Insert(A_LoopField)
temp = %temp%`n%A_LoopField%
}
x = 0
msgbox test1:`n%temp%
gosub showfirst
return
#IfWinActive
 
#IfWinActive ahk_group xwin
#Right::
#Left::
showfirst:
msgbox test2
if (arr.MaxIndex()<1)or(x==arr.MaxIndex() and A_ThisHotkey=="#Right")or(x==1 and A_ThisHotkey=="#Left")
return
x += A_ThisHotkey == "#Left" ? -1 : 1
msgbox test3: number=%x%
do := arr[x]
msgbox test4: %do%
Run %do%
return
#IfWinActive
Logged
nms1944
Participant
*
Posts: 12

View Profile Give some DonationCredits to this forum member
« Reply #21 on: November 11, 2014, 10:35:37 AM »

I found the problem.  I misinterpreted what you meant by Selected.  I thought all results were Selected results.  Once I selected individual images the script worked. 

Thank you for your help.
Logged
Nod5
Supporting Member
**
Posts: 749



View Profile Give some DonationCredits to this forum member
« Reply #22 on: November 11, 2014, 10:56:09 AM »

Ah, didn't think to ask about that. Anyway, glad that it is working now.  smiley
Logged
Pages: [1]   Go Up
  Reply  |  New Topic  |  Print  
 
Jump to:  
   Forum Home   Thread Marks Chat! Downloads Search Login Register  

DonationCoder.com | About Us
DonationCoder.com Forum | Powered by SMF
[ Page time: 0.093s | Server load: 0.08 ]