From e87c12dbe6c4459fb07f21630b93bbc2f7f4b3d5 Mon Sep 17 00:00:00 2001 From: Spencer Phillip Young Date: Fri, 19 Apr 2024 11:58:28 -0700 Subject: [PATCH] fix clip_wait in AHKv2 --- ahk/_async/engine.py | 2 ++ ahk/_sync/engine.py | 2 ++ 2 files changed, 4 insertions(+) diff --git a/ahk/_async/engine.py b/ahk/_async/engine.py index 9232fa4..afb7e7f 100644 --- a/ahk/_async/engine.py +++ b/ahk/_async/engine.py @@ -3630,6 +3630,8 @@ async def clip_wait( args = [str(timeout) if timeout else ''] if wait_for_any_data: args.append('1') + else: + args.append('0') return await self._transport.function_call('AHKClipWait', args, blocking=blocking) async def block_input( diff --git a/ahk/_sync/engine.py b/ahk/_sync/engine.py index fa98fd6..539157e 100644 --- a/ahk/_sync/engine.py +++ b/ahk/_sync/engine.py @@ -3618,6 +3618,8 @@ def clip_wait( args = [str(timeout) if timeout else ''] if wait_for_any_data: args.append('1') + else: + args.append('0') return self._transport.function_call('AHKClipWait', args, blocking=blocking) def block_input(