473,403 Members | 2,359 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,403 software developers and data experts.

Autocopy to clipboard

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!
Jul 20 '05 #1
7 5066
In article <b4**************************@posting.google.com >,
ja*********@yahoo.com enlightened us with...
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_javascr...clipboard.html
http://www.mozilla.org/editor/midas-spec.html
http://www.xulplanet.com/references/...rdandSelection
..html

--
--
~kaeli~
Press any key to continue or any other key to quit
http://www.ipwebdesign.net/wildAtHeart
http://www.ipwebdesign.net/kaelisSpace

Jul 20 '05 #2
Steve Forman wrote:
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 <http://mozdev.org/>!
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
Jul 20 '05 #3
There is now an extension for firefox that automaticaly copies selcted text
to the clipboard.

http://autocopy.mozdev.org/

Jul 23 '05 #4
There is now an extension for firefox that automaticaly copies selcted text
to the clipboard.

http://autocopy.mozdev.org/

Jul 23 '05 #5
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/

Jul 23 '05 #7
jacksmernov wrote:
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
Jul 23 '05 #8

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: xyz | last post by:
I have a menu item to handle clipboard actions (cut, copy, paste). When I paste text that I copied from a Hungarian web page, the display looks normal on my RichTextBox, but the text retrieved from...
8
by: LG | last post by:
Just have a question with regards to the clipboard, and how to read what other applications (Adobe InDesignCS) place in the clipboard. I am currently in the process of creating a booklet from a...
7
by: lgbjr | last post by:
Hello All, I¡¯m using a context menu associated with some pictureboxes to provide copy/paste functionality. Copying the image to the clipboard was easy. But pasting an image from the clipboard...
0
by: James Russo | last post by:
Hello, I have an application which requires an image to be retrived from the clipboard. So, I am writting a quick C# windows application to take images from a webcam and store a single frame on...
7
by: Newbie | last post by:
How do I clear the clipboard in VB.NET 2003? TIA Newbie
15
by: Peter Duniho | last post by:
I'm trying to use .NET and C# to draw a metafile copied to the clipboard by another application (Word 2003 in this case, but it shouldn't matter). I naively thought that I'd be able to use the...
1
by: Figmo | last post by:
Wow.....this is darned odd.... I have an app that integrates with other applications. It registers a global hotkey with Windows. When the hotkey executes it sends a CTRL-C to the active...
8
by: active | last post by:
Guess I'm looking for someone who likes to work difficult puzzles. I can't seem to ever retrieve a palette handle from the clipboard. Below is a simple test program that demonstrates the...
20
by: Joe Duchtel | last post by:
Hello - I have the following code to get a bitmap from the clipboard and to save it to a *.png file ... Dim lData As IDataObject = Clipboard.GetDataObject() If...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.