spyoungtech/ahk

detect_hidden_windows does not work as expected in some cases when using AutoHotkey v2

Closed this issue · 0 comments

describe your issue

When using AutoHotkey v2, when using set_detect_hidden_windows or any method which accepts detect_hidden_windows as a keyword argument, using False is not interpreted properly and instead is treated like a truthy value.

ahk.version

1.5.4

AutoHotkey version

v2

Code to reproduce the issue

from ahk import AHK
ahk = AHK(version='v2')


ahk.list_windows(detect_hidden_windows=False) # will include hidden windows

ahk.set_detect_hidden_windows(False) # has the same effect as True

Traceback/Error message

No response