Open cornradio opened 11 months ago
i got a work around but not so sure >.. wil it work?
def getWindowsWithTitleFiltered(title,filtstr):
"""Returns a list of Window objects that substring match ``title`` in their title text.
filtstr = \u200b etc.
"""
hWndsAndTitles = _getAllTitles()
windowObjs = []
for hWnd, winTitle in hWndsAndTitles:
winTitle = winTitle.replace(filtstr,'')
if title.upper() in winTitle.upper(): # do a case-insensitive match
windowObjs.append(Win32Window(hWnd))
return windowObjs
This is a problem with edge putting this in their title, not a problem of the program, and should therefore be handled by the user.
can we have a filter version of _getAllTitles ,that remove all
\u200b
? some time when i search about "Microsoft Edge"there is an edge but have a wired \u200b in it , thus can't get the window! like this : "xxx - Microsoft\u200b Edge"
some related functions 👇