Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Windows] Exception thrown while trying to get active window #90

Open
BelKed opened this issue Apr 16, 2023 · 1 comment
Open

[Windows] Exception thrown while trying to get active window #90

BelKed opened this issue Apr 16, 2023 · 1 comment

Comments

@BelKed
Copy link

BelKed commented Apr 16, 2023

Reported by @Creve on Discord.


Logs:

2023-04-16 18:56:19 [ERROR]: Exception thrown while trying to get active window  (aw_watcher_window.main:124)
Traceback (most recent call last):
  File "aw_watcher_window\main.py", line 106, in heartbeat_loop
  File "aw_watcher_window\lib.py", line 65, in get_current_window
  File "aw_watcher_window\lib.py", line 42, in get_current_window_windows
  File "aw_watcher_window\windows.py", line 26, in get_app_name
  File "aw_watcher_window\windows.py", line 15, in get_app_path
pywintypes.error: (87, 'OpenProcess', 'Параметр задан неверно.')

  • OS: Windows
  • ActivityWatch: ActivityWatch v0.12.3b1
@hashblen
Copy link

hashblen commented Oct 19, 2023

Same. I'm also getting this Access denied error, jus tafter updating from a pretty old version, when playing a certain game that has administrator rights. Why did it work before I updated, I don't know. Hoping for a fix :)
Edit: Tried running aw with administrator rights. It is a fix but it is not optimal...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants