Displaying 1 result from an estimated 1 matches for "get_text_data".
Did you mean:
get_hex_data
2009 Apr 17
2
win32-clipboard issues and support for additional formats
...way to handle text or images:
# something like this
def self.data(format = TEXT)
begin
self.open
if IsClipboardFormatAvailable(format)
clipdata = GetClipboardData(format)
case format
when text_format
clipdata = get_text_data(clipdata)
when image_format
clipdata = get_image_data(clipdata)
when other_format
# ???
end
else
clipdata = ''''
end
ensure
self.close
end
clipd...