Keyboard: getClipboard

getClipboard()
  • Returns the last information that was copied into the clipboard.

Return Type:

  • string
Note:
  • bge.logic.keyboard does not use the Keyboard Sensor. 
     
  • The Clipboard is used to copy and paste information.
Sample Code

################## get the clipboard
    

# import bge
import bge

# get the keyboard
keyBoard = bge.logic.keyboard

# get the contents of the clipboard
info = keyBoard.getClipboard()