multiple instance XYplorer taskbar icons are not grouped

Things you’d like to miss in the future...
Forum rules
:warnred20: :warnred20: :warnred20: :warnred20: :warnred20: READ THIS AND DO IT!!! :warnred20: :warnred20: :warnred20: :warnred20: :warnred20:

:info: Please include the following information:
1) Your XYplorer Version (e.g., v28.00.0801)
2) Your Windows Version (e.g., Win 11)
3) Your Screen Scaling Percentage (e.g., 125%).

:info: We recommend adding your Windows Version and Screen Scaling Percentage to the Location field in your Profile or to your Signature. That way, you only have to type them once.

:info: When attaching an Image, please use the Attachment tab at the bottom of your post and click "Add files".

:warnred20: :warnred20: :warnred20: :warnred20: :warnred20: READ THIS AND DO IT!!! :warnred20: :warnred20: :warnred20: :warnred20: :warnred20:
jbir359
Posts: 25
Joined: 02 Jul 2010 00:39

multiple instance XYplorer taskbar icons are not grouped

Post by jbir359 »

when using Windows 7 (x64) and opening multiple XYplorer instances taskbar icons are not grouped. this wasted precious space. see attached screen shot
Attachments
XYplorer taskbar icons.png
XYplorer taskbar icons.png (12.29 KiB) Viewed 1766 times

admin
Site Admin
Posts: 65012
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: multiple instance XYplorer taskbar icons are not grouped

Post by admin »

I cannot tell what is controlling this. I'm innocent.

zer0
Posts: 2676
Joined: 19 Jan 2009 20:11

Re: multiple instance XYplorer taskbar icons are not grouped

Post by zer0 »

admin wrote:I cannot tell what is controlling this. I'm innocent.
This is controlled by application ID, which is up to 128 chars long. I assume that the 2nd instance is launched with a different ID, so the Shell does not group it under one taskbar icon -- it thinks it's a different application. More info + code of how to do it is here: http://msdn.microsoft.com/en-us/magazine/dd942846.aspx
Reporting a bug? Have a wish? Got a question? Use search - View roadmap - FAQs: Forum + XY site
Windows 7/10
Always using the latest stable two-decimal build

admin
Site Admin
Posts: 65012
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: multiple instance XYplorer taskbar icons are not grouped

Post by admin »

Thanks! Unfortunately it looks non-trivial and I have no time for this now. :(

nas8e9
Posts: 2232
Joined: 21 Jun 2008 14:50

Re: multiple instance XYplorer taskbar icons are not grouped

Post by nas8e9 »

admin wrote:Thanks! Unfortunately it looks non-trivial and I have no time for this now. :(
If and when you should get to it, could you see if the same can be done for XYcopy.exe so that it gets grouped with XYplorer.exe (if at all possible for programs with different file names)? Thanks in advance!

jbir359
Posts: 25
Joined: 02 Jul 2010 00:39

Re: multiple instance XYplorer taskbar icons are not grouped

Post by jbir359 »

I should add that each of the 2 instances is started from a link with /ini=xxx per the instructions i received from admin on how to start 2 instances...

so, why this would cause to different ID is beyond me. This is the ONLY application I have that does this.

admin
Site Admin
Posts: 65012
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: multiple instance XYplorer taskbar icons are not grouped

Post by admin »

jbir359 wrote:I should add that each of the 2 instances is started from a link with /ini=xxx per the instructions i received from admin on how to start 2 instances...

so, why this would cause to different ID is beyond me. This is the ONLY application I have that does this.
So without /ini=xxx you don't get the problem when you run multiple parallel instances?

jbir359
Posts: 25
Joined: 02 Jul 2010 00:39

Re: multiple instance XYplorer taskbar icons are not grouped

Post by jbir359 »

you are right, i haven't noticed this. just clicking the shortcut to XYplorer twice (no /ini=..) has no problem
Attachments
Snap1.png
Snap1.png (8.79 KiB) Viewed 1718 times

admin
Site Admin
Posts: 65012
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: multiple instance XYplorer taskbar icons are not grouped

Post by admin »

jbir359 wrote:you are right, i haven't noticed this. just clicking the shortcut to XYplorer twice (no /ini=..) has no problem
Can it be that Windows thinks it's a different app just because of a command line switch?

jbir359
Posts: 25
Joined: 02 Jul 2010 00:39

Re: multiple instance XYplorer taskbar icons are not grouped

Post by jbir359 »

i have no idea. i am just an end user

zer0
Posts: 2676
Joined: 19 Jan 2009 20:11

Re: multiple instance XYplorer taskbar icons are not grouped

Post by zer0 »

admin wrote:
jbir359 wrote:you are right, i haven't noticed this. just clicking the shortcut to XYplorer twice (no /ini=..) has no problem
Can it be that Windows thinks it's a different app just because of a command line switch?
Yes, I think that is the case. As there is a switch, a different set of properties is created for that window object. As that set doesn't match those of XYplorer launched with another switch (or no switch), they aren't grouped in the taskbar. At least that's my interpretation after briefly skimming the tech docs.
Reporting a bug? Have a wish? Got a question? Use search - View roadmap - FAQs: Forum + XY site
Windows 7/10
Always using the latest stable two-decimal build

jbir359
Posts: 25
Joined: 02 Jul 2010 00:39

Re: multiple instance XYplorer taskbar icons are not grouped

Post by jbir359 »

This might be associated with the fact that XYplorer titlebar lists in reverse order (open folder followed by application name followed by ini filename followed by version) and therefore appears as different application. (I haven't tried it but I am guessing that this reverse listing would complicate trying to write a script that need to identify if XYplorer is running)

When clicking twice on a link to XYplorer which includes /ini... the 2 instances are grouped together!
(BUT NOT with initial instance that was already open but pointing to a different folder)

Other applications list in titlebar application name first then folder or document open.

I tried running cmd.exe with 2 different command line switches and the 2 instances were grouped,

I also tried with 2 instances of UltraEdit with different files as command line switches and the 2 instances were grouped (the title there is UltraEdit - [full UNC filename]) so both show as UltraEdit.

j_c_hallgren
XY Blog Master
Posts: 5826
Joined: 02 Jan 2006 19:34
Location: So. Chatham MA/Clearwater FL
Contact:

Re: multiple instance XYplorer taskbar icons are not grouped

Post by j_c_hallgren »

jbir359 wrote:This might be associated with the fact that XYplorer titlebar lists in reverse order (open folder followed by application name followed by ini filename followed by version) and therefore appears as different application. (I haven't tried it but I am guessing that this reverse listing would complicate trying to write a script that need to identify if XYplorer is running)
But do you know that you can adjust the contents/layout of the titlebar via a tweak? It's mentioned in a few places here, such as http://www.xyplorer.com/xyfc/viewtopic. ... 085#p28085 and http://www.xyplorer.com/xyfc/viewtopic. ... 135#p49135 and is documented in wiki at
http://88.191.26.34/XYwiki/index.php/IN ... n_Titlebar
so maybe try adjusting that and see if that helps?
Still spending WAY TOO much time here! But it's such a pleasure helping XY be a treasure!
(XP on laptop with touchpad and thus NO mouse!) Using latest beta vers when possible.

admin
Site Admin
Posts: 65012
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: multiple instance XYplorer taskbar icons are not grouped

Post by admin »

j_c_hallgren wrote:
jbir359 wrote:This might be associated with the fact that XYplorer titlebar lists in reverse order (open folder followed by application name followed by ini filename followed by version) and therefore appears as different application. (I haven't tried it but I am guessing that this reverse listing would complicate trying to write a script that need to identify if XYplorer is running)
But do you know that you can adjust the contents/layout of the titlebar via a tweak? It's mentioned in a few places here, such as http://www.xyplorer.com/xyfc/viewtopic. ... 085#p28085 and http://www.xyplorer.com/xyfc/viewtopic. ... 135#p49135 and is documented in wiki at
http://88.191.26.34/XYwiki/index.php/IN ... n_Titlebar
so maybe try adjusting that and see if that helps?
Note that contrary to the Wiki it is allowed to begin and/or end the template with <app>, without attaching an additional space, so this would work:

Code: Select all

TitlebarTemplate="<app> - <path> @ <ini> - <ver>"

jbir359
Posts: 25
Joined: 02 Jul 2010 00:39

Re: multiple instance XYplorer taskbar icons are not grouped

Post by jbir359 »

I learned something new, thanks.

I changed the ini file to
TitlebarTemplate=" <app> "
(now the titlebar says XYplorer only)

but it did not solve the problem (:

Post Reply