We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ee66239 commit 6d14cf2Copy full SHA for 6d14cf2
ahkpy/clipboard.py
@@ -19,7 +19,7 @@ def get_clipboard() -> str:
19
:variable: `Clipboard
20
<https://www.autohotkey.com/docs/misc/Clipboard.htm>`_
21
"""
22
- return ahk_call("GetVar", "Clipboard")
+ return str(ahk_call("GetVar", "Clipboard"))
23
24
25
def set_clipboard(value):
tests/test_clipboard.py
@@ -101,5 +101,6 @@ def objector():
101
text="Error: cannot convert '<object object",
102
timeout=0.1,
103
)
104
+ assert ahk.get_clipboard() == "371"
105
106
ahk.send("{F24}")
0 commit comments