access clipboard contents

Having problems with building or using CEF's C/C++ APIs? This forum is here to help. Please do not post bug reports or feature requests here.

access clipboard contents

Postby salmon17 » Mon Feb 20, 2017 5:02 am

Hi
is there a CEF API to access clipboard contents?
i found out about CefFrame::Copy()/Paste(), but i need to be able to inspect the contents themselves so that, e.g. to provide an API to JS whether clipboard is empty etc.
is this possible through CEF or I'd have to write my own platform-specific handlers?

thanks!
salmon17
Newbie
 
Posts: 9
Joined: Tue Jul 05, 2016 9:55 am

Re: access clipboard contents

Postby magreenblatt » Mon Feb 20, 2017 3:06 pm

There are already JavaScript APIs for accessing the clipboard. Have you tried using them?
magreenblatt
Site Admin
 
Posts: 12409
Joined: Fri May 29, 2009 6:57 pm

Re: access clipboard contents

Postby salmon17 » Tue Feb 21, 2017 3:53 am

do you mean something like clipboard.js, or CEF-specific? i thought only 'copy' is possible from js land?
salmon17
Newbie
 
Posts: 9
Joined: Tue Jul 05, 2016 9:55 am

Re: access clipboard contents

Postby salmon17 » Tue Feb 21, 2017 4:40 am

i see - you probably meant chrome.clipboard API
but how to access it? when i type chrome.clipboard in the debug console, it comes undefined
salmon17
Newbie
 
Posts: 9
Joined: Tue Jul 05, 2016 9:55 am

Re: access clipboard contents

Postby magreenblatt » Tue Feb 21, 2017 12:11 pm

magreenblatt
Site Admin
 
Posts: 12409
Joined: Fri May 29, 2009 6:57 pm

Re: access clipboard contents

Postby salmon17 » Wed Feb 22, 2017 3:32 am

will look into this
thank you!
salmon17
Newbie
 
Posts: 9
Joined: Tue Jul 05, 2016 9:55 am


Return to Support Forum

Who is online

Users browsing this forum: Google [Bot], Majestic-12 [Bot] and 68 guests