Determine content of Windows-clipboard in LotusScript

230 views Asked by At

Is there a way to determine what kind of data currently is in the clipboard? I'm trying to check this on HCL Notes' QueryPaste-event, which occurs when a user is about to paste "something" into a view. It would be awesome if I could check whether the clipboard's content is a file - if so, I'd like to write this file to disc an process its content.

Any ideas about this?

Thanks, Buzzy

1

There are 1 answers

1
Scott Leis On

It should be possible for LotusScript to call Windows platform APIs to query the Windows clipboard, but doing what you want from a view's QueryPaste event isn't possible.

I've done some testing, and found that if a user hasn't copied any Notes documents in the current session (i.e. between starting Notes and quitting Notes), then a view's QueryPaste event doesn't run when trying to paste anything. QueryPaste only runs when pasting Notes documents.