[v2-bug]Last Found Window when use hwnd and object Topic is solved

Report problems with documented functionality
User avatar
hyaray
Posts: 85
Joined: 20 Jun 2015, 01:37
Contact:

[v2-bug]Last Found Window when use hwnd and object

Post by hyaray » 05 Nov 2022, 09:13

I'm very glad that hwnd and object with hwnd can use as WinTitle!! :xmas:
1. there's a bug of set Last Found Window.

Code: Select all

oGui := gui()
oGui.AddText(, "text")
oGui.show()
if (1)
    WinWaitActive("ahk_id" . oGui.hwnd) ;OK
else
    WinWaitActive(oGui) ;or WinWaitActive(oGui.hwnd) will not update Last Found Window
msgbox(WinGetTitle())
2. after WinHide, failed fo WinActivate(hwnd), but WinGetTitle(hwnd) is OK.

lexikos
Posts: 9665
Joined: 30 Sep 2013, 04:07
Contact:

Re: [v2-bug]Last Found Window when use hwnd and object

Post by lexikos » 06 Nov 2022, 00:08

#1 confirmed.

I cannot reproduce #2. The hidden window is activated. It is not shown, nor should it be.

User avatar
hyaray
Posts: 85
Joined: 20 Jun 2015, 01:37
Contact:

Re: [v2-bug]Last Found Window when use hwnd and object

Post by hyaray » 07 Nov 2022, 11:18

#2: is activated but not shown? most people will not knows this, and I think this is not they want.
anyway, you decide

lexikos
Posts: 9665
Joined: 30 Sep 2013, 04:07
Contact:

Re: [v2-bug]Last Found Window when use hwnd and object  Topic is solved

Post by lexikos » 08 Nov 2022, 23:38

Fixed (#1) in v2.0-beta.14.


Post Reply

Return to “Bug Reports”