Page 4 of 4

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

Posted: 08 Jun 2016 15:05
by TheQwerty
How irritatingly annoying of them.
Stupid Windows. :roll:

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

Posted: 23 Oct 2017 20:47
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.

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

Posted: 23 Oct 2017 23:23
by mitchmenghi
Wow another year passes and this is still an issue... :|

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

Posted: 24 Oct 2017 09:31
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.

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

Posted: 24 Oct 2017 22:25
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

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

Posted: 24 Oct 2017 22:54
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.

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

Posted: 24 Oct 2017 23:15
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

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

Posted: 25 Oct 2017 07:36
by pulp
Thank you works great.

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

Posted: 25 Oct 2017 12:22
by admin
pulp wrote:Thank you works great.
Let me know about the side effects... (I would not have dared to do this).

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

Posted: 26 Oct 2017 07:30
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

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

Posted: 24 Dec 2020 09:26
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

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

Posted: 03 Jul 2022 19:48
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

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

Posted: 03 Jul 2022 20:05
by highend
Try this one:
XY_Taskbar icon fixer.zip

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

Posted: 03 Jul 2022 21:21
by dminard
That worked. Thanks!