[AI] fix
This commit is contained in:
@@ -37,11 +37,19 @@ def register_session_listener(callback: Callable[[str], None]) -> None:
|
||||
except:
|
||||
pass # Already registered
|
||||
|
||||
# Corrected CreateWindow call with all required parameters
|
||||
hwnd = win32gui.CreateWindow(
|
||||
wndclass.lpszClassName,
|
||||
"Session Watcher",
|
||||
0, 0, 0, 0, 0,
|
||||
0, hinst, None
|
||||
wndclass.lpszClassName, # lpClassName
|
||||
"Session Watcher", # lpWindowName
|
||||
0, # dwStyle
|
||||
0, # x
|
||||
0, # y
|
||||
0, # nWidth
|
||||
0, # nHeight
|
||||
0, # hWndParent
|
||||
0, # hMenu
|
||||
hinst, # hInstance
|
||||
None # lParam
|
||||
)
|
||||
|
||||
# Register for session notifications
|
||||
|
||||
Reference in New Issue
Block a user