Oops - forgot the link:
http://rubyforge.org/projects/win32utils/
Also available on the RAA.
Regards,
Dan
Oops - forgot the link:
http://rubyforge.org/projects/win32utils/
Also available on the RAA.
Regards,
Dan
You know what I would use this for? If I ever got around to it?
I use a KVM to switch back and forth between Windows and Linux.
I’ve been thinking of a little drb utility that would cut-and-paste
between them. Should be pretty simple really. (99% of my cut/paste
is simple text.)
Someone once pointed me to a utility to do something similar, but
for some reason it seemed like overkill to me.
Hal
Hal Fulton wrote:
You know what I would use this for? If I ever got around to it?
I use a KVM to switch back and forth between Windows and Linux.
I’ve been thinking of a little drb utility that would cut-and-paste
between them. Should be pretty simple really. (99% of my cut/paste
is simple text.)
If you do end up building it, I’ll definitely grab a copy. I KVM between Win2000 and Linux all the time at home.
H.
Harry Ohlsen wrote:
Hal Fulton wrote:
You know what I would use this for? If I ever got around to it?
I use a KVM to switch back and forth between Windows and Linux.
I’ve been thinking of a little drb utility that would cut-and-paste
between them. Should be pretty simple really. (99% of my cut/paste
is simple text.)If you do end up building it, I’ll definitely grab a copy. I KVM
between Win2000 and Linux all the time at home.
Well, why don’t we knock it out, then? What’s your GUI of choice?
Hal
Hey Hal,
Well, why don’t we knock it out, then? What’s your GUI of choice?
Do you mean Linux desktop? I tend to use KDE, but Gnome is also fine.
H.
Well, why don’t we knock it out, then? What’s your GUI of choice?
… or did you mean GUI toolkit? I’ve played a bit with FX/Ruby.
Harry Ohlsen wrote:
Well, why don’t we knock it out, then? What’s your GUI of choice?
… or did you mean GUI toolkit? I’ve played a bit with FX/Ruby.
Yes, that’s what I meant. I’m most familiar with fxruby, but there
are still many parts that won’t fit in my brain. And I can never
write an app from scratch without going and looking at an old one
to see how it works.
Suppose you crank out a little text window with a Send button, and
I’ll work on the drb part?
I think it’s acceptable to make the user hit Send, although it
would be nicer if it just sensed when the text had changed.
I’m not sure how to stick something in the clipboard on the Linux
side, though… for now, might have to re-copy the text when it
appears.
Hal
I’m not sure how to stick something in the clipboard on the Linux
side, though… for now, might have to re-copy the text when it
appears.
You probably want to check out a program like xclip
(http://people.debian.org/~kims/xclip). It allows you to put stuff into
the clipboard and take stuff out of the clipboard from the command line.
You can either use this directory, or just read the code to see how it
is done.
–
Zachary P. Landau kapheine@hypa.net
GPG: gpg --recv-key 0x24E5AD99 | http://kapheine.hypa.net/kapheine.asc
Just have a clip history of the last N things sent… Much more useful
than just dumping it straight into the clipboard.
Hal Fulton (hal9000@hypermetrics.com) wrote:
I’m not sure how to stick something in the clipboard on the Linux
side, though… for now, might have to re-copy the text when it
appears.
–
Eric Hodel - drbrain@segment7.net - http://segment7.net
All messages signed with fingerprint:
FEC2 57F1 D465 EB15 5D6E 7C11 332A 551C 796C 9F04
Hal Fulton wrote:
Sorry for the slow reply … timezones.
Suppose you crank out a little text window with a Send button, and
I’ll work on the drb part?
Sounds good to me. It’s Friday here, so I should be able to have a go at it tomorrow morning.
I think it’s acceptable to make the user hit Send, although it
would be nicer if it just sensed when the text had changed.
I think having to press Send isn’t such a bad thing. A lot of the time you won’t be switching backwards and forwards between the two systems. Hence, there’ll be many things that end up in the clipboard on one side that you don’t necessarily want to send to the other. Perhaps it could be an option.
I also think the idea of keeping the last N clips that were transferred, as Eric suggested, is a good idea.
Another thought is that we could use pull rather than push. Ie, each side keeps track of all the things that have gone through the clipboard (assuming that’s possible) and when you’re sitting on Linux, say, and want something that was copied to the Windows clipboard, you ask the Linux instance of the client to show you the Windows clips … and vice versa.
Cheers,
Harry O.
Zachary P. Landau wrote:
I’m not sure how to stick something in the clipboard on the Linux
side, though… for now, might have to re-copy the text when it
appears.You probably want to check out a program like xclip
(http://people.debian.org/~kims/xclip). It allows you to put stuff into
the clipboard and take stuff out of the clipboard from the command line.
You can either use this directory, or just read the code to see how it
is done.
KDE specific, but as it was mentioned earlier in this thread:
you can use DCOP to interact with the clipboard:
https://www.linux-magazine.com/issue/36/KDE_Scripting_DCOP.pdf
There is a perl example in the article, but I think stable ruby bindings are on
their way.
Raph
you can however use kxmlrpcd and script kde via xmlrpc, fairly easy
il Thu, 20 Nov 2003 11:30:28 +0100, Raphael Bauduin raphael.bauduin@be.easynet.net ha scritto::
https://www.linux-magazine.com/issue/36/KDE_Scripting_DCOP.pdf
There is a perl example in the article, but I think stable ruby bindings are on
their way.
Raphael Bauduin wrote:
KDE specific, but as it was mentioned earlier in this thread:
you can use DCOP to interact with the clipboard:https://www.linux-magazine.com/issue/36/KDE_Scripting_DCOP.pdf
There is a perl example in the article, but I think stable ruby bindings
are on their way.
It would be really nice if there was a common mechanism used by all X11 desktops for this kind of generic stuff, rather than each having their own :-(.
I don’t suppose there’s some way we can get to a lower level API, and avoid being KDE (or Gnome or …) specific. Does anyone have any ideas on whether that’s feasible?
H.
KDE specific, but as it was mentioned earlier in this thread:
you can use DCOP to interact with the clipboard:https://www.linux-magazine.com/issue/36/KDE_Scripting_DCOP.pdf
There is a perl example in the article, but I think stable ruby bindings
are on their way.It would be really nice if there was a common mechanism used by all X11
desktops for this kind of generic stuff, rather than each having their own
:-(.I don’t suppose there’s some way we can get to a lower level API, and avoid
being KDE (or Gnome or …) specific. Does anyone have any ideas on whether
that’s feasible?
There mostly is. The problem is not every piece of software follows it
exactly. Check out
http://freedesktop.org/Standards/clipboards-spec/clipboards.txt for an
explanation of how the clipboard is SUPPOSED to be implemented. I think
most software does follow this, however.
That xclip program I posted seems to follow these standards. Also, the
code is split up into a library and a command-line program, so it
probably wouldn’t be particularly difficult to create ruby bindings for
it. The xclip link was http://people.debian.org/~kims/xclip/ for those
who missed it.
–
Zachary P. Landau kapheine@hypa.net
GPG: gpg --recv-key 0x24E5AD99 | http://kapheine.hypa.net/kapheine.asc