|
SageTV Studio Discussion related to the SageTV Studio application produced by SageTV. Questions, issues, problems, suggestions, etc. relating to the Studio software application should be posted here. |
|
Thread Tools | Search this Thread | Display Modes |
#1
|
|||
|
|||
Text input widget, copy from clipboard
Is there any way to allow the text input widget to accept CTRL-C copying text from the clipboard?
|
#2
|
|||
|
|||
Quote:
Dirk |
#3
|
||||
|
||||
As mentioned by flachbar, the clipboard is accessible from Java: My dynamic menus have both copy and paste capabilities, and in the default STV, there is some code to copy the placeshifter locator ID to the clipboard.
Code:
"REM copy string "text" to windows clipboard" +- Clipboard =java_awt_Toolkit_getSystemClipboard(java_awt_Toolkit_getDefaultToolkit()) +- LocIDTransfer =new_java_awt_datatransfer_StringSelection(text) +- java_awt_datatransfer_Clipboard_setContents(Clipboard, LocIDTransfer, LocIDTransfer) Alternatively you can use my sageUtils pagage: Code:
text=net_sf_sageplugins_sageutils_GetClipboard_GetString()
__________________
Check out my enhancements for Sage in the Sage Customisations and Sageplugins Wiki |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
|
|