You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
700 B
23 lines
700 B
6 years ago
|
import win32clipboard
|
||
|
####################################
|
||
|
#Info: Clipboard module of the Robot app (OpenRPA - Robot)
|
||
|
####################################
|
||
|
# GUI Module - interaction with Windows clipboard
|
||
|
|
||
|
################
|
||
|
###ClipboardGet
|
||
|
################
|
||
|
def ClipboardGet():
|
||
|
win32clipboard.OpenClipboard()
|
||
5 years ago
|
lResult = win32clipboard.GetClipboardData(win32clipboard.CF_UNICODETEXT)
|
||
6 years ago
|
win32clipboard.CloseClipboard()
|
||
|
return lResult
|
||
|
################
|
||
|
###ClipboardSet
|
||
|
################
|
||
|
def ClipboardSet(inText):
|
||
|
win32clipboard.OpenClipboard()
|
||
|
win32clipboard.EmptyClipboard()
|
||
5 years ago
|
win32clipboard.SetClipboardData(win32clipboard.CF_UNICODETEXT,inText)
|
||
6 years ago
|
win32clipboard.CloseClipboard()
|