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.
How to always succeed at activating XYPlorer window using autohotkey
Re: How to always succeed at activating XYPlorer window using autohotkey
Win10, Win11 @100% 2560x1440 22H2
Re: How to always succeed at activating XYPlorer window using autohotkey
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
}
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.