How to always succeed at activating XYPlorer window using autohotkey

Please check the FAQ (https://www.xyplorer.com/faq.php) before posting a question...
Post Reply
TelKel81
Posts: 3
Joined: 28 Jan 2023 22:41

How to always succeed at activating XYPlorer window using autohotkey

Post 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.

Norn
Posts: 417
Joined: 24 Oct 2021 16:10

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

Post by Norn »

Capture.PNG
Capture.PNG (11.67 KiB) Viewed 138 times
Win10, Win11 @100% 2560x1440 22H2

TelKel81
Posts: 3
Joined: 28 Jan 2023 22:41

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

Post 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
}
Last edited by TelKel81 on 06 Mar 2023 19:14, edited 1 time in total.

Post Reply