Keyboard: setClipboard

setClipboard(info)
  • Copies information into the clipboard.

info:

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

##################  set Clipboard  
 
# import bge

import bge

# get the keyboard
keyBoard = bge.logic.keyboard

# copy information into the clipboard
keyBoard.setClipboard("Speed is 34 mph")