Page 1 of 1

Showing ID of current XY instance in the title bar

Posted: 20 Mar 2019 11:43
by sj515064
It is useful to show a number indicating the identity of the current XY instance in the title bar. (In my opinion, this behavior should even be set as factory default)

For example:

Code: Select all

<path> - <ins> <app> <ver>
where <ins> will return a number indicating the identity of the current XY instance.
1st instance: <ins> = "" (without the quotes, that is, empty string)
2nd instance: <ins> = "[2]" (without the quotes)
3rd instance: <ins> = "[3]" (without the quotes)
...

Re: Showing ID of current XY instance in the title bar

Posted: 20 Mar 2019 12:21
by bdeshi
You can use <get instance>

Code: Select all

<path> - <get instance> <app> <ver>
But this will only show 1 for the first instance, and 2 for all other instances.
You may find this useful too.

Code: Select all

<path> - [<hwnd>] <app> <ver>

Re: Showing ID of current XY instance in the title bar

Posted: 20 Mar 2019 12:42
by sj515064
SammaySarkar wrote: 20 Mar 2019 12:21 You can use <get instance>

Code: Select all

<path> - <get instance> <app> <ver>
But this will only show 1 for the first instance, and 2 for all other instances.
You may find this useful too.

Code: Select all

<path> - [<hwnd>] <app> <ver>
Thanks :)

But still, I think the capability of distinguishing different instances is important and should better be provided directly (even be factory default).

Re: Showing ID of current XY instance in the title bar

Posted: 20 Mar 2019 21:23
by klownboy
I had the instance in my titlebar for a long time util I got sick of looking at it. What I think might be a better option to ask or wish for would be to have the instance always showing in the titlebar of the configuration window box. It currently shows the XYplorer revision along with the XY ini file in use (which I also find helpful when running a second copy with a different ini file), but it would be nice to also see the XY instance as well. This way you can always check it but it's not in your face all the time.