开发者

Multiple Copy and Paste

To help me learn c++ (I've been going around in circles for a while), I've decided to write an app that gives me multiple slots to copy/past into. It probably already exists, but this is just for me.

I was wondering what the process would be to get the selected raw data from one application, and then send it to开发者_JAVA百科 another with mine being the middle man. I'd activate the process using Ctrl-C-[Number 0-9] and Ctrl-V-[etc].

I'm using linux.

Thanks.


I don't know how to do this, but if I needed to implement it, I would start by looking at programs that access the X clipboard like xclip (http://sourceforge.net/projects/xclip/). From there, start either reading the man pages for the X functions used in xclip or search for them on google. Some quick searches turned up this page which looks like it has some of the info you'd need: http://tronche.com/gui/x/xlib/window-information/selection.html

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜