I try to get all windows what i have from this code:
def winEnumHandler( hwnd, ctx ):
if win32gui.IsWindowVisible( hwnd ):
print (hex(hwnd), win32gui.GetWindowText( hwnd ))
win32gui.EnumWindows( winEnumHandler, None )
And i get this result:
0x202e8 amd dvr overlay
0x1009a
0x6707c6 C:\Windows\system32\cmd.exe - python bot.py
0x40416 api.py - pybot - Visual Studio Code
0x2204ac RАGЕ Multiplауer
0x10194
0x101b4
0x20136 Program Manager
Then i try to get my windows what name is 'RAGE Multiplayer'
import win32gui
print(win32gui.FindWindow(None, "RAGE Multiplayer"))
But it olvays returns 0, why? I tryed to get another window with another name, and its worked, but only this Windows name cant parse it, what can i do to fix it?