Page 1 of 1

How to always succeed at activating XYPlorer window using autohotkey

Posted: 05 Mar 2023 22:49
by TelKel81
I always get issues depending on the app state (just launched, minimized, maximized, hidden, system bar, etc) of XYPlorer.

Does anyone have a autohotkey script that actually works 100% of the time to activate the XYPlorer window.

Re: How to always succeed at activating XYPlorer window using autohotkey

Posted: 06 Mar 2023 06:40
by Norn
Capture.PNG

Re: How to always succeed at activating XYPlorer window using autohotkey

Posted: 06 Mar 2023 19:06
by TelKel81
That's an awful reply.

I solved the problem like this :

DetectHiddenWindows, On
SetTitleMatchMode, 2

#e::
{
IfWinNotExist, XYplorer
{
Run, "C:\Program Files (x86)\XYplorer\XYplorer.exe"
Sleep, 100
WinWait, XYplorer
}

WinGet, WinState, MinMax
If (WinState = -1) || (WinState = 0)
WinRestore

WinActivate
}