Autocopy to clipboard

S

Steve Forman

I've been struggling with a very simple application that I've been
trying to write for years.
I know almost nothing about JS so that doesn't help much.
But basically for Windows 200, all I would want to do is have a memory
resident program (which could possibly be integrated into Mozilla
Firebird) that would automatically highlight whatever text I would
select and copy it to the clipboard WITHOUT pressing Control-C.
That's it. I know it should be easily able to do in JS and I found a
bit of code which outputs the highlighted text to a box but that's as
close as I could find.

Any help would be greatly appreciated.
Thanks!
 
K

kaeli

I've been struggling with a very simple application that I've been
trying to write for years.
I know almost nothing about JS so that doesn't help much.
But basically for Windows 200, all I would want to do is have a memory
resident program (which could possibly be integrated into Mozilla
Firebird) that would automatically highlight whatever text I would
select and copy it to the clipboard WITHOUT pressing Control-C.
That's it. I know it should be easily able to do in JS and I found a
bit of code which outputs the highlighted text to a box but that's as
close as I could find.

Any help would be greatly appreciated.
Thanks!

3 second search on Google yields
http://www.krikkit.net/howto_javascript_copy_clipboard.html
http://www.mozilla.org/editor/midas-spec.html
http://www.xulplanet.com/references/xpcomref/group_ClipboardandSelection
..html

--
 
T

Thomas 'PointedEars' Lahn

Steve said:
I know almost nothing about JS so that doesn't help much.

Yes, indeed.
But basically for Windows 200,
^^^
I don't think you can write code for OSes that are *this* old ;-)
all I would want to do is have a memory resident program (which could
possibly be integrated into Mozilla Firebird)

You cannot do that, the JavaScript engine knows nothing about the
things outside of the host environment it runs in, namely it does
not know about the OS, the CPU and the memory if the host does not
provide an API for accessing them. However, you can write an
extension for Firebird, if there is not already one that does this.
Check out said:
that would automatically highlight whatever text I would
select and copy it to the clipboard WITHOUT pressing Control-C.
That's it. I know it should be easily able to do in JS

Sounds pretty complicated to me, but I have never wrote a
XUL extension to date. The clipboard of the graphics server
and the host environment are different things that need to
work together here.
and I found a bit of code which outputs the highlighted
text to a box but that's as close as I could find.

After getting a minimum clue about JavaScript programming,
<http://xulplanet.com/> is probably a good place to start.


PointedEars
 
T

Thomas 'PointedEars' Lahn

jacksmernov said:
Sorry about the spam... It didn't give me any comformation and I could not
view my message. So if you see three or four messages from me, just ignore
them.

http://autocopy.mozdev.org/

Why would I need that? In the X Window System, copying
selections to the clipboard is the default. For Windows,
there is

user_pref("clipboard.autocopy", true);

in my user.js for quite a while.


PointedEars
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,431
Messages
2,571,679
Members
48,796
Latest member
Greg L.

Latest Threads

Top