Page 1 of 2

Autofocus file from Browser

Posted: 08 Sep 2010 17:35
by acheton
Hi there,

When I download a file from my browser (in this case Google Chrome) I regularly chose the option "Show in folder". With Windows Explorer this opens the folder and focussed the file. However in XYPlorer this opens the folder but does not focus the files. I'm sure that I must be missing something obvious here such as a setting but a search of the forum/help doesn't seem to reveal anything obvious. Can anyone help?

thanks,


ach

Re: Autofocus file from Browser

Posted: 08 Sep 2010 23:37
by zer0
If I am not mistaken, this has something to do with /select,<object> parameters that are passed to the Shell. If a file isn't selected then either /select isn't parsed or /root is used. Don would be the best person to advise though as he knows the XY's code.

Re: Autofocus file from Browser

Posted: 09 Sep 2010 09:54
by admin
Where is that "Show in folder"?

Re: Autofocus file from Browser

Posted: 09 Sep 2010 11:36
by zer0
admin wrote:Where is that "Show in folder"?
Right-click an entry in Firefox's downloads menu and select "Open Containing Folder".

Re: Autofocus file from Browser

Posted: 09 Sep 2010 11:58
by admin
zer0 wrote:
admin wrote:Where is that "Show in folder"?
Right-click an entry in Firefox's downloads menu and select "Open Containing Folder".
Thanks. But this command does not seem to honour the registry settings about default file manager and always opens Explorer. That way I cannot find out what's the problem.

Re: Autofocus file from Browser

Posted: 09 Sep 2010 19:34
by acheton
admin wrote:Where is that "Show in folder"?
To be clear I am using Google Chrome not Firefox as the OP mentioned. When a file is downloaded in Chrome it appears on a bar at the bottom of the screen. Click on the arrow next to the file name and it has several options including "Show in Folder". The same option is available from the downloads tab activated by CTRL+J in Chrome. Hopefully that helps...

Re: Autofocus file from Browser

Posted: 09 Sep 2010 19:40
by admin
acheton wrote:
admin wrote:Where is that "Show in folder"?
To be clear I am using Google Chrome not Firefox as the OP mentioned. When a file is downloaded in Chrome it appears on a bar at the bottom of the screen. Click on the arrow next to the file name and it has several options including "Show in Folder". The same option is available from the downloads tab activated by CTRL+J in Chrome. Hopefully that helps...
If "Show in Folder" opens XY on your system, please select menu Help / Various Information and tell what it says after Command:.

Re: Autofocus file from Browser

Posted: 09 Sep 2010 19:43
by acheton
admin wrote:If "Show in Folder" opens XY on your system, please select menu Help / Various Information and tell what it says after Command:.
Command:
CommandW:
Command Normalized:

App: C:\Program Files (x86)\XYplorer\XYplorer.exe
Ini File: C:\Users\XYX\AppData\Roaming\XYplorer\XYplorer.ini
App Data Path: C:\Users\XYX\AppData\Roaming\XYplorer\
Scripts Path: C:\Users\XYX\AppData\Roaming\XYplorer\Scripts\
Thumbs Cache Path: C:\Users\XYX\AppData\Roaming\XYplorer\Thumbnails\

here you go...

Re: Autofocus file from Browser

Posted: 09 Sep 2010 19:51
by admin
Pity, but this does not help me. Are you sure that XY was opened by Chrome? There should be a command line entry...

Re: Autofocus file from Browser

Posted: 09 Sep 2010 20:14
by TheQwerty
A very very quick and not at all thorough search through the Chromium (open source project that Chrome is built on) source leads me to believe that they may be using SHOpenFolderAndSelectItems, if that's any help to you Don. Though I could be entirely mistaken about how they are opening the folder.

Re: Autofocus file from Browser

Posted: 09 Sep 2010 20:18
by acheton
admin wrote:Pity, but this does not help me. Are you sure that XY was opened by Chrome? There should be a command line entry...
Ok, I've tried again and here is the result:

Command: "D:\Users\XYX\Downloads"
CommandW: "D:\Users\XYX\Downloads"
Command Normalized: "D:\Users\XYX\Downloads\"

Re: Autofocus file from Browser

Posted: 09 Sep 2010 21:08
by admin
TheQwerty wrote:A very very quick and not at all thorough search through the Chromium (open source project that Chrome is built on) source leads me to believe that they may be using SHOpenFolderAndSelectItems, if that's any help to you Don. Though I could be entirely mistaken about how they are opening the folder.
In that case XY has no chance since this API is hard-coded to work with Explorer only.

Re: Autofocus file from Browser

Posted: 09 Sep 2010 21:09
by admin
acheton wrote:
admin wrote:Pity, but this does not help me. Are you sure that XY was opened by Chrome? There should be a command line entry...
Ok, I've tried again and here is the result:

Command: "D:\Users\XYX\Downloads"
CommandW: "D:\Users\XYX\Downloads"
Command Normalized: "D:\Users\XYX\Downloads\"
OK, that looks better. Alas it also explains why XY only opens the folder: there is no mention of the file to select.

Re: Autofocus file from Browser

Posted: 09 Sep 2010 21:34
by TheQwerty
admin wrote:In that case XY has no chance since this API is hard-coded to work with Explorer only.
So since we know it opens XY that means I'm obviously wrong... :oops: maybe I'll search some more.

EDIT: Looking through it again and I'm fairly certain I'm in the right section of their code.
// The SHOpenFolderAndSelectItems API is exposed by shell32 version 6
// and does not exist in Win2K. We attempt to retrieve this function export
// from shell32 and if it does not exist, we just invoke ShellExecute to
// open the folder thus losing the functionality to select the item in
// the process.
So perhaps it is failing back to ShellExecute and as it says not selecting the item?

Re: Autofocus file from Browser

Posted: 09 Sep 2010 22:10
by acheton
admin wrote:In that case XY has no chance since this API is hard-coded to work with Explorer only.

So it is a Chrome issue? :(