Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.sys.acorn.programmer > #1470

Re: clipboard from a script

From Martin Wuerthner <spamtrap@mw-software.com>
Newsgroups comp.sys.acorn.programmer
Subject Re: clipboard from a script
Date 2012-03-06 13:29 +0100
Organization MW Software
Message-ID <a8aa326c52.martin@bach.planiverse.com> (permalink)
References <25f3306c52.jim@nails.abbeypress.net>

Show all headers | View raw


In message <25f3306c52.jim@nails.abbeypress.net>
          Jim Nagel <jimnewsm10d@abbeypress.co.uk> wrote:

> Are commands available to put something onto the ("global") clipboard,
> which can be used in a script?

No. The "global" clipboard is an abstract thing that is negotiated 
between applications. There is no separate global clipboard in the 
system which you can place things, it is always one of the 
applications that just happens to hold the global clipboard at any 
given time. Your script cannot hold the clipboard, so that idea cannot 
work.

That said, the Select strand of RISC OS has a separate global 
clipboard module as an extension of the original scheme, so on any 
Select version you can put any file onto the global clipboard with a 
single SWI call (ClipboardHolder_Copy).

> A further problem might be that my string will include Newlines. If
> commands for the clipboard do exist, do certain characters such as
> Newline need special attention?

The clipboard does not care about the format of your data. It simply 
holds typed files. You can have Newlines in a text file, so you can 
have them on the clipboard, too.

-- 
Martin
---------------------------------------------------------------------
Martin Wuerthner         MW Software      http://www.mw-software.com/
        RISC OS Software for Design, Printing and Publishing
---------------------------------------------------------------------

Back to comp.sys.acorn.programmer | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

clipboard from a script Jim Nagel <jimnewsm10d@abbeypress.co.uk> - 2012-03-06 12:10 +0000
  Re: clipboard from a script Martin Wuerthner <spamtrap@mw-software.com> - 2012-03-06 13:29 +0100
    Re: clipboard from a script Ron <beeb@woosh.co.nz> - 2012-03-07 11:01 +1300

csiph-web