-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtest_window_activation.py
More file actions
39 lines (30 loc) · 881 Bytes
/
test_window_activation.py
File metadata and controls
39 lines (30 loc) · 881 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
"""Quick test to verify window activation works."""
from src.utils import WindowManager
print("Testing window activation fix...")
print("=" * 60)
# Initialize window manager
wm = WindowManager()
# Find window
print("Looking for Puzzles & Survival window...")
window = wm.get_window()
if not window:
print("ERROR: Window not found!")
print("Make sure Puzzles & Survival is running.")
exit(1)
print(f"Found window: {window.title}")
print()
# Test activation
print("Testing window activation...")
result = wm.activate_window()
if result:
print("SUCCESS: Window activated!")
print()
print("Checking if window is active...")
if wm.is_window_active():
print("CONFIRMED: Window is active")
else:
print("WARNING: Window may not be active")
else:
print("FAILED: Window activation failed")
print("=" * 60)
print("Test completed!")