Skip to content

Commit

Permalink
Fix typo in FindWindow parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
eschan145 committed Jan 18, 2025
1 parent 93f96c8 commit 18956e8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/api.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -288,8 +288,8 @@ bool taskkill(DWORD identifier) {

void sweep() {
HWND hwnd = FindWindow(
nullptr,
DYK_CLASS_NAME
DYK_CLASS_NAME,
nullptr
);

if (!hwnd) {
Expand Down
2 changes: 1 addition & 1 deletion src/windows.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
def get_window_info(title):
"""Retreive information from given window."""

hwnd = win32gui.FindWindow(None, title)
hwnd = win32gui.FindWindow("WindowsForms10.Window.8.app.0.9fe31_r7_ad1",None )
if not hwnd:
print(f"Window with title '{title}' not found.")
return
Expand Down

0 comments on commit 18956e8

Please sign in to comment.