tboy offered
THIS on github re: HTML but since i don't use tier 2 i didn't pursue.
perhaps he can offer a pi solution similarly.
add:
added issue to studio repo...
tangent: i see that a few pull requests
were merged years ago. perhaps the community can submit more so we can keep moving forward?
WIN Source
//****f* Extras/Clipboard/SetClipboardText
// FUNCTION
// Sets the device clipboard to the specified text, this overwrites anything that was previously in the device clipboard.
// The clipboard is the same as that used by the copy/paste functionality of the device.
// INPUTS
// szText -- The text to copy
// SOURCE
void agk::SetClipboardText( const char* szText )
//****
{
if ( !OpenClipboard( 0 ) ) return;
EmptyClipboard();
int length = strlen(szText) + 1;
HGLOBAL hg = GlobalAlloc( GMEM_MOVEABLE, length );
if ( !hg )
{
CloseClipboard();
return;
}
memcpy( GlobalLock(hg), szText, length );
GlobalUnlock( hg );
SetClipboardData( CF_TEXT, hg );
CloseClipboard();
GlobalFree(hg);
}
//****f* Extras/Clipboard/GetClipboardText
// FUNCTION
// Gets any text currently held in the device clipboard, the text remains in the clipboard so it can still be used by other apps.
// The clipboard is the same as that used by the copy/paste functionality of the device.
// SOURCE
char* agk::GetClipboardText()
//****
{
if ( !OpenClipboard( 0 ) ) goto error;
HANDLE hData = GetClipboardData( CF_TEXT );
if ( !hData )
{
CloseClipboard();
goto error;
}
char* szData = (char*)GlobalLock( hData );
if ( !szData ) goto error;
int length = strlen( szData ) + 1;
char *str = new char[ length ];
strcpy( str, szData );
GlobalUnlock( hData );
CloseClipboard();
return str;
error:
char *str2 = new char[1]; *str2 = 0;
return str2;
}
Pi Source
void agk::SetClipboardText( const char* szText )
//****
{
}
char* agk::GetClipboardText()
//****
{
char *str = new char[1]; *str = 0;
return str;
}
HTML Source
void agk::SetClipboardText( const char* szText )
//****
{
}
char* agk::GetClipboardText()
//****
{
char *str = new char[1]; *str = 0;
return str;
}
meanwhile, i tried my first
pull request: re: a different issue.