Skip to content

Commit

Permalink
Fixed installed script declaration. Clarified readme summary.
Browse files Browse the repository at this point in the history
  • Loading branch information
blep committed Sep 7, 2023
1 parent 74d605e commit a0c12fe
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 20 deletions.
10 changes: 3 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,9 @@
# win32_window_monitor

Monitor change of the focused window on Windows Operating System.
Wraps WIN32 API [SetWinEventHook](https://learn.microsoft.com/en-us/windows/win32/api/winuser/nf-winuser-setwineventhook) making it easy to monitor change of the focused window on Windows Operating
System. Provides helper function to easily retrieve process id and path of an event passed to the callback.

Reports the focused window HWND, pid and executable path to a python callback
registered
using [SetWinEventHook](https://learn.microsoft.com/en-us/windows/win32/api/winuser/nf-winuser-setwineventhook).

Provides helpers function to easily retrieve process id and path from the
callback parameters.
[SetWinEventHook](https://learn.microsoft.com/en-us/windows/win32/api/winuser/nf-winuser-setwineventhook) reports global events containing the window HWND, pid and executable path to a python callback.

# Example

Expand Down
14 changes: 1 addition & 13 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ Source = "https://github.com/blep/win32_window_monitor"
#Documentation = "https://?"

[project.scripts]
log_focused_window = "win32_window_monitor:main"
log_focused_window = "win32_window_monitor.main:main"

[project.optional-dependencies]
test = [
Expand All @@ -45,17 +45,5 @@ doc = [
"myst-parser ~= 2.0.0",
]

#[tool.poetry.dev-dependencies]
## Release
#twine = "^4.0.2"
#flit = "^3.9.0^"
## keyring is used by flit to store the password
#keyring = "^24.2.0"
## Testing
##pytest = "^7.3.2"
##coverage = "^7.3.0"

[tool.pytest.ini_options]
testpaths = "tests"


0 comments on commit a0c12fe

Please sign in to comment.