Autocopy to clipboard

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Steve Forman

    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!
  • kaeli

    #2
    Re: Autocopy to clipboard

    In article <b4af5927.04010 81337.1da04b3c@ posting.google. com>,
    jaredsubman@yah oo.com enlightened us with...[color=blue]
    > 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!
    >[/color]

    3 second search on Google yields



    ..html

    --
    --
    ~kaeli~
    Press any key to continue or any other key to quit



    Comment

    • Thomas 'PointedEars' Lahn

      #3
      Re: Autocopy to clipboard

      Steve Forman wrote:
      [color=blue]
      > I know almost nothing about JS so that doesn't help much.[/color]

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

      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/>!
      [color=blue]
      > 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[/color]

      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.
      [color=blue]
      > and I found a bit of code which outputs the highlighted
      > text to a box but that's as close as I could find.[/color]

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


      PointedEars

      Comment

      • jacksmernov

        #4
        Re: Autocopy to clipboard

        There is now an extension for firefox that automaticaly copies selcted text
        to the clipboard.



        Comment

        • jacksmernov

          #5
          Re: Autocopy to clipboard

          There is now an extension for firefox that automaticaly copies selcted text
          to the clipboard.



          Comment

          • jacksmernov

            #6
            Re: Autocopy to clipboard



            Comment

            • jacksmernov

              #7
              Re: Autocopy to clipboard

              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.



              Comment

              • Thomas 'PointedEars' Lahn

                #8
                Re: Autocopy to clipboard

                jacksmernov wrote:
                [color=blue]
                > 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/[/color]

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

                user_pref("clip board.autocopy" , true);

                in my user.js for quite a while.


                PointedEars

                Comment

                Working...