parent
83b8ad0e22
commit
165b6290b1
@ -0,0 +1,22 @@
|
||||
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()
|
Loading…
Reference in new issue