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
641 B
23 lines
641 B
import win32clipboard
|
|
####################################
|
|
#Info: Clipboard module of the Robot app (OpenRPA - Robot)
|
|
####################################
|
|
# GUI Module - interaction with Windows clipboard
|
|
|
|
################
|
|
###ClipboardGet
|
|
################
|
|
def ClipboardGet():
|
|
win32clipboard.OpenClipboard()
|
|
lResult = win32clipboard.GetClipboardData()
|
|
win32clipboard.CloseClipboard()
|
|
return lResult
|
|
################
|
|
###ClipboardSet
|
|
################
|
|
def ClipboardSet(inText):
|
|
win32clipboard.OpenClipboard()
|
|
win32clipboard.EmptyClipboard()
|
|
win32clipboard.SetClipboardText(inText)
|
|
win32clipboard.CloseClipboard()
|