multi-monitor: show xy on correct taskbar?

Things you’d like to miss in the future...
TheQwerty
Posts: 4373
Joined: 03 Aug 2007 22:30

Re: multi-monitor: show xy on correct taskbar?

Post by TheQwerty »

How irritatingly annoying of them.
Stupid Windows. :roll:

pulp
Posts: 34
Joined: 24 May 2016 20:52

Re: multi-monitor: show xy on correct taskbar?

Post by pulp »

it bugs me too.

It seems it is not working because the XY main window (class ThunderRT6FormDC) is owend by the window with class ThunderRT6Main. If i remove the owner for testing with

Code: Select all

SetWindowLongPtr((HWND)0xWindowIDOfMainWindow, GWLP_HWNDPARENT, 0);
it works as accepted. The taskbar button is now moving with the main window. This is not the solution but maybe a hint why it is not working atm.

mitchmenghi
Posts: 20
Joined: 07 Feb 2016 01:05

Re: multi-monitor: show xy on correct taskbar?

Post by mitchmenghi »

Wow another year passes and this is still an issue... :|

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

Re: multi-monitor: show xy on correct taskbar?

Post by admin »

pulp wrote:If i remove the owner for testing with

Code: Select all

SetWindowLongPtr((HWND)0xWindowIDOfMainWindow, GWLP_HWNDPARENT, 0);
it works as accepted. The taskbar button is now moving with the main window. This is not the solution but maybe a hint why it is not working atm.
Thanks, that explains it indeed. And it also shows that it's a Windows bug. Sorry, but I cannot do anything about it.

pulp
Posts: 34
Joined: 24 May 2016 20:52

Re: multi-monitor: show xy on correct taskbar?

Post by pulp »

admin wrote:
pulp wrote:If i remove the owner for testing with

Code: Select all

SetWindowLongPtr((HWND)0xWindowIDOfMainWindow, GWLP_HWNDPARENT, 0);
it works as accepted. The taskbar button is now moving with the main window. This is not the solution but maybe a hint why it is not working atm.
Thanks, that explains it indeed. And it also shows that it's a Windows bug. Sorry, but I cannot do anything about it.
Seems to be a VB6 framework problem: https://stackoverflow.com/questions/105 ... ndows-like

pulp
Posts: 34
Joined: 24 May 2016 20:52

Re: multi-monitor: show xy on correct taskbar?

Post by pulp »

litte pogram to fix it (long term testing pending...):

Code: Select all

#include <Windows.h>
int main()
{
   //Assuming its the only VB6 program...
   HWND xp_window = ::FindWindowA("ThunderRT6FormDC", 0);
   if (!xp_window || !GetWindow(xp_window, GW_OWNER))
   {
     return 0;
   }
   
   SetWindowLongPtr(xp_window, GWLP_HWNDPARENT, 0);
   return 0;
}
Is it possible run a exe (via xy xcript?) on xy startup? so i could run this litte program during xy start. if not i will start it via AutoHotkey script.

highend
Posts: 13274
Joined: 06 Feb 2011 00:33

Re: multi-monitor: show xy on correct taskbar?

Post by highend »

Is it possible run a exe (via xy xcript?) on xy startup?
Ofc.

/script parameter for XY

and the script command

Code: Select all

run
I've made a compiled (PureBasic) .exe out of the posted code and moving XYs window
to a different monitor will move it's taskbar entry just fine...

TIF = Taskbar Icon Fixer
XY_TIF.zip
(4.65 KiB) Downloaded 97 times
One of my scripts helped you out? Please donate via Paypal

pulp
Posts: 34
Joined: 24 May 2016 20:52

Re: multi-monitor: show xy on correct taskbar?

Post by pulp »

Thank you works great.

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

Re: multi-monitor: show xy on correct taskbar?

Post by admin »

pulp wrote:Thank you works great.
Let me know about the side effects... (I would not have dared to do this).

pulp
Posts: 34
Joined: 24 May 2016 20:52

Re: multi-monitor: show xy on correct taskbar?

Post by pulp »

admin wrote:
pulp wrote:Thank you works great.
Let me know about the side effects... (I would not have dared to do this).
i will let you know

highend
Posts: 13274
Joined: 06 Feb 2011 00:33

Re: multi-monitor: show xy on correct taskbar?

Post by highend »

XY_Taskbar icon fixer (v1.0)

You can either run it (once) via a /script="run 'path\XY_Taskbar icon fixer.exe';"
command line call to XYplorer

or in a "forever" mode (it runs until you end it) with:
XY_Taskbar icon fixer.exe --forever

It's recommended to run it with --forever and start it via the task scheduler with "[x] Run with hightest privileges"
if you want to catch XYplorer instances that run elevated (with admin permissions).

In "--forever" mode, it'll check each second if a XYplorer window is still owned and removes that so that you can put it on any monitor and the taskbar icon moves with it...
XY_Taskbar icon fixer_v1.0.zip
(18.86 KiB) Downloaded 71 times
One of my scripts helped you out? Please donate via Paypal

dminard
Posts: 4
Joined: 03 Sep 2019 15:50

Re: multi-monitor: show xy on correct taskbar?

Post by dminard »

When I tried XY_Taskbar icon fixer on Win 11, I get an error saying "linker.txt file not found!", with the message box titled "XY_Taskbar icon fixer - Fatal error". Any suggestions

highend
Posts: 13274
Joined: 06 Feb 2011 00:33

Re: multi-monitor: show xy on correct taskbar?

Post by highend »

Try this one:
XY_Taskbar icon fixer.zip
(19.96 KiB) Downloaded 41 times
One of my scripts helped you out? Please donate via Paypal

dminard
Posts: 4
Joined: 03 Sep 2019 15:50

Re: multi-monitor: show xy on correct taskbar?

Post by dminard »

That worked. Thanks!

Post Reply