Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.sys.acorn.programmer > #1470
| Path | csiph.com!usenet.pasdenom.info!news.albasani.net!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail |
|---|---|
| From | Martin Wuerthner <spamtrap@mw-software.com> |
| Newsgroups | comp.sys.acorn.programmer |
| Subject | Re: clipboard from a script |
| Date | Tue, 06 Mar 2012 13:29:40 +0100 |
| Organization | MW Software |
| Lines | 32 |
| Message-ID | <a8aa326c52.martin@bach.planiverse.com> (permalink) |
| References | <25f3306c52.jim@nails.abbeypress.net> |
| X-Trace | individual.net AlQB7mhtmMGUSPDtuh2D2QxUCCAnshtzXOrVtvL5IyxBI6g9l4 |
| X-Orig-Path | bach.planiverse.com%martin |
| Cancel-Lock | sha1:g1Lfa2nP/dBVMulA4IlH/ZrukaQ= |
| X-Editor | EmailEdit 6.00 |
| User-Agent | Messenger-Pro/6.03 (MsgServe/6.00) (RISC-OS/5.18) NewsHound/v1.50-32 |
| Xref | csiph.com comp.sys.acorn.programmer:1470 |
Show key headers only | 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 | Next — Previous in thread | Next in thread | Find similar | Unroll 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