Hello, I came up with this really cool idea of a suggestion.
So lets say that youre looking through 500 pictures in one folder, using JPEGView, by opening one image, and using the Right Arrow on the keyboard to scroll through the images in the app. You know, youre looking at many cool photos, then all of a sudden, you come across the prettiest photo of all! You like this photo so much that you want to make a copy of it somewhere else on the computer so you can access it much quicker. The only thing though is that all the images in that folder have random names like: "dn8dmm4ldha932mngf.jpg", and all the filenames look so similar! You dont want to go through the hassle of finding that file in File Explorer, its slightly too much work.
So instead, can you make an option in JPEGView that once you select that option, it will open a File Explorer window and highlight the exact picture that you are looking at. I think this feature would be a very great addition to this awesome program.
For my Desktop, I have a Desktop Slideshow. And theres someone that has made a custom vbs command that Locates The current Desktop Photo Image. I love that feature so much, because it helps me find the picture thats currently loaded. (Look at the attachment).
What do you think about this idea?
I agree it's an important feature.. But in the mean time you can make it yourself by adding an "Open With" menu entry that will allow you to open the current image in File Explorer both by clicking the option or by pressing a keyboard shortcut combination (like CTRL+ E)..
Edit JPEGView.ini and add a command like this (at "Open with menu commands"):
OpenWith0="KeyCode: Ctrl+E Cmd: '"Explorer.exe" /select,%filename%' Menuitem: 'Show in folder [...]' Flags: 'ShellExecute'"
This will open file explorer and select the current file..
You can probably use your own VBScript in this command with some modifications..
Cool! Thank you so much for commenting here!! I really appreciate it.
I added that to my "ini" file and did a few adjustments to the code you posted above, and it works awesomly! Sweet!
Great, this was helpful for me too!
I have another quick question. Do you know of any code to add to your code you posted above which does the following please:
Suppose that the folder that a picture is in, is already open in a File Explorer window (either behind JPEGView, or minimized, etc), and I run the command to "Locate The Picture", then can the command notice that the folder is already open in File Explorer, and use that currently open folder to locate the image, instead of opening a brand new duplicate File Explorer window?
(What I'm asking above is kinda poorly written, so I hope it isn't confusing, and that you understand what I'm asking =)
Thank you so much again for your assistance!
You may be able to do that with VBScript, or more easily with AutoHotkey, since you can use all COM objects available in your system (like in VBScript) but it also has very useful features you can use to detect and activate specific windows.
I did make a VBScript that does what you're asking for, but it requires the "QTTabBarLib.Scripting" object. This is included when you install QTTabBar so you have to decide if it works for you..
Updated 2021-07-19:
The next example takes a full path+filename (or multiple paths) as argument and opens the active file explorer tab (if found) and attempts to select the file or folder (or even multiple items). If if the given path is not active on any tab it opens a new one:
Last edit: Melvin Nava 2021-07-20
Hmm I see. I use Macro Express Pro, which is similar to the other app you mentioned. Yet the complexity of all the things that needs to be done is way too much. I really appreciate all your assistance that you provided.
I just updated the VBS code above to support multiple file selection.. Copying the code into a .vbs file and giving multiple files or sub-folders as argument (within the same path) will open an existing QTabBar tab with the specified items selected. If no active tab has the required path it will open a new tab. Is not really complex. It just requires QTabBar to be installed and an entry added to JpegView sending the current opened file to the VBScript file.
Hey there! Your idea of adding a "Locate in File Explorer" feature to JPEGView sounds fantastic! It would indeed be a convenient addition, especially when dealing with a large number of images with cryptic filenames. I can totally relate to the struggle of finding that one special picture among many similar-looking files. The ease of accessing and copying the favorite image directly from JPEGView to a preferred location through File Explorer would undoubtedly enhance the user experience.
I also appreciate the parallel you drew with the custom vbs command for locating the current desktop photo image. Such features significantly contribute to user convenience. Speaking of user-friendly functionalities, have you explored the Gold Membership unlocked features in Picsart? It's impressive how tools like Picsart can elevate the creative process, and perhaps incorporating a similar streamlined file location feature could resonate well with users who value efficiency and ease of use. What are your thoughts on integrating this proposed feature into a program like Picsart, where the user experience is already enriched with advanced tools?