Open zhcqiu opened 1 year ago
I was able to reproduce using telegram.exe portable, a winTitle of "Telegram" has many possible hwnd, I need to loop through them
I guess a loop through the virtual desktops to read ahk_id may be a good idea.
@zhcqiu
FuPeiJiang added a commit that referenced this issue 13 hours ago
update and try, does it work now ?
I updated the script, and it works. Thank you very much!
If I minimize a window in other virtual desktops, the VD.getDesktopNumOfWindow sometimes returns -1 rather than the correct num. Some apps don't have such a problem, such as notepad.exe, while others, like telegram.exe, code.exe, and tim.exe, have such a problem. According to my analysis, the problem may be due to the method: _tryGetValidWindow. I use Windows 11 Pro, the English version, and AutoHotkey 2.02. I wonder if others encounter such a problem.