Skip to content

Commit

Permalink
Merge pull request #291 from spyoungtech/fix-clip-wait-v2
Browse files Browse the repository at this point in the history
fix clip_wait in AHKv2
  • Loading branch information
spyoungtech authored Apr 19, 2024
2 parents 02d21dd + e87c12d commit b94dde6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ahk/_async/engine.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down
2 changes: 2 additions & 0 deletions ahk/_sync/engine.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit b94dde6

Please sign in to comment.