#IfWin... and last found window

Share your ideas as to how the documentation can be improved.
User avatar
mikeyww
Posts: 26588
Joined: 09 Sep 2014, 18:38

#IfWin... and last found window

Post by mikeyww » 04 Jun 2021, 07:41

Documentation states the following.
The Last Found Window is set by #IfWinActive/Exist (though not by #IfWinNotActive/NotExist).
The documentation does not state how the last found window is defined if #IfWinActive has a compound or boolean expression such as #If WinExist("ahk_class Notepad") && WinExist("ahk_class EmEditorMainFrame3"). My testing to date shows-- and I am uncertain about it-- that the last non-negated condition determines the last found window. Can anyone confirm this?

swagfag
Posts: 6222
Joined: 11 Jan 2017, 17:59

Re: #IfWin... and last found window

Post by swagfag » 05 Jun 2021, 03:34

the last function(capable of setting LastFoundWindow) that was evaluated and returned true, will set the LastFoundWindow

User avatar
mikeyww
Posts: 26588
Joined: 09 Sep 2014, 18:38

Re: #IfWin... and last found window

Post by mikeyww » 05 Jun 2021, 07:23

I thank you, swagfag!

Post Reply

Return to “Suggestions on Documentation Improvements”