Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.sys.acorn.programmer > #1469
| From | Jim Nagel <jimnewsm10d@abbeypress.co.uk> |
|---|---|
| Newsgroups | comp.sys.acorn.programmer |
| Subject | clipboard from a script |
| Date | 2012-03-06 12:10 +0000 |
| Organization | A noiseless patient Spider |
| Message-ID | <25f3306c52.jim@nails.abbeypress.net> (permalink) |
Are commands available to put something onto the ("global") clipboard,
which can be used in a script?
I have some text that is held in two or more string variables in one
application, and I want to be able to concatenate and then paste into
another application. (I know I could do it via a Save box or
something, but I use Workspace or Moredesk, and the target application
is in a different virtual desktop, so the clipboard is the ideal
route.)
In the scrap directory, loose, I notice that a file called ScrapFile
appears when I copy or cut a selection, and then a file called
Clipboard is generated when I paste it. (Why? In fact the file
Clipboard is regenerated *each time* I paste it.) This is probably a
red herring -- manually changing the contents of ScrapFile has no
effect on subsequent pasting.
Impression stores the contents of its clipboard (for text anyway) in
the system variable Impulse$selection -- again, changing its contents
manually has no effect on subsequent pastes.
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?
--
Jim Nagel www.archivemag.co.uk
>> "from" address is genuine but will change. website has current one.
Back to comp.sys.acorn.programmer | Previous | Next — 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