English 中文(简体)
Is there any platform-independent way to access the clipboard?
原标题:

I have a small side project I want to write and have yet to decide on a language. Ultimately, I want a way to access and/or modify the clipboard in a platform-independent way.

I d like to learn a new language to do this, preferably something that:

  1. I ll learn a lot from.
  2. Will look good on my resume.

...and I m leaning towards a functional language of some kind (Lisp would be ideal). That said, I might also want to experiment with interfacing C with other languages, so a C library would also be acceptable. Are there any libraries out there that would do what I m looking for in a language that meets the above criteria?

最佳回答

One approach to this is to use Java s clipboard class. This gives me a pretty wide selection of languages to choose from.

问题回答

A crossplatform library (like thewxWidgets framework, which would let you implement in C++, Python, Ruby, and several more) would give you a way to implement this is a cross-platform manner...





相关问题
Copy text from Vim 7.2 running in xterm to windows clipboard

I m using Vim 7.2 , compiled with +xterm_clipboard , in a xterm through putty . I ve put set clipboard=unnamed in .vimrc , and from what i ve read in other threads , this should put all yanks/deletes ...

putting a stream in the clipboard

Lets begin with the final goal - I need to able to paste a file into the local file system, that is obtained from a web response stream. I think that the best course of action is to somehow put ...

Send selected text to a command line argument

I found this utility, pytranslate, which translates a variety of languages into each other using Google s translation API. It works exactly as described. However I ve gotten sick of selecting a word ...

JTextArea.copy() clipboard cleared when program exits

I have a JDialog with a JTextArea component. This dialog shows the user what arguments to use when running the program to have it run the mode they just set up. I have a button on the dialog to copy ...

Clipboard access using Javascript - sans Flash?

Is there a reliable way to access the client machine s clipboard using Javascript? I continue to run into permissions issues when attempting to do this. How does Google Docs do this? Do they use ...

热门标签