Skip to content

Commit

Permalink
fix clip_wait in AHKv2
Browse files Browse the repository at this point in the history
  • Loading branch information
spyoungtech committed Apr 19, 2024
1 parent 02d21dd commit e87c12d
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 e87c12d

Please sign in to comment.