Skip to content

Commit

Permalink
Merge pull request #290 from spyoungtech/gh-289
Browse files Browse the repository at this point in the history
GH-289 fix message box in AHKv2
  • Loading branch information
spyoungtech committed Apr 19, 2024
2 parents 245c84a + 61d2663 commit 6b84fe6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions ahk/_async/engine.py
Original file line number Diff line number Diff line change
Expand Up @@ -3756,6 +3756,9 @@ async def msg_box(
args = [str(options), title, text]
if timeout is not None:
args.append(str(timeout))
else:
args.append('')

return await self._transport.function_call('AHKMsgBox', args, blocking=blocking)

# fmt: off
Expand Down
3 changes: 3 additions & 0 deletions ahk/_sync/engine.py
Original file line number Diff line number Diff line change
Expand Up @@ -3744,6 +3744,9 @@ def msg_box(
args = [str(options), title, text]
if timeout is not None:
args.append(str(timeout))
else:
args.append('')

return self._transport.function_call('AHKMsgBox', args, blocking=blocking)

# fmt: off
Expand Down

0 comments on commit 6b84fe6

Please sign in to comment.