win32clipboard.SetClipboardText
int = SetClipboardText(text, format )
Convienience function to call SetClipboardData with text.
Parameters
Comments
You may pass a Unicode or string/bytes object to this function, but depending on the value of the 'format' param, it may be converted to the appropriate type for that param.Many applications will want to call this function twice, with the same string specified but CF_UNICODETEXT specified the second.
Win32 API References
Return Value
If the function succeeds, the return value is integer handle of the data.If the function fails, win32api.error is raised with the GetLastError info.