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


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

Re: loading the clipboard

From Ronald <gettingchoppy@gmail.com>
Newsgroups comp.sys.acorn.programmer
Subject Re: loading the clipboard
Date 2019-01-03 08:50 +1300
Organization -
Message-ID <7f09367057.beeb@-.-> (permalink)
References <19191f7057.jim@6.abbeypress.net>

Show all headers | View raw


In message <19191f7057.jim@6.abbeypress.net>
          Jim Nagel <jnews18c@abbeypress.co.uk> wrote:

> From within a program, is there a way of loading a specified string onto 
> the clipboard?
> 
> It used to be possible in Ro4.39 but the routine I had there does not work 
> in Ro5.
> 
> I'd want to do this from within Basic or a Datapower script, or perhaps a 
> PHP script.
> 
> The intention is that the user can then use Ctrl-V to paste the string 
> into a dialogue field of some other application.  For example, generate an 
> address to paste onto a envelope for printing, or generate an email 
> address to paste into the email client.
>

I have used Typer by  Martin Bazely for something similar in the past.
http://www.starfighter.acornarcade.com/mysite/utilities.htm
I think it is as simple as writing the text file it expects to find in
<Wimp$ScrapDir>.Typer.File You have to click on the icon to deposit the
text at the focus though. The intended design of dragging some text to
the iconbar icon is pretty handy as a bonus.

Written in BASIC, probably many areas of interest to you.

Ronald M.

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


Thread

loading the clipboard Jim Nagel <jnews18c@abbeypress.co.uk> - 2019-01-02 15:40 +0000
  Re: loading the clipboard Ronald <gettingchoppy@gmail.com> - 2019-01-03 08:50 +1300
  Re: loading the clipboard Jim Nagel <jnews18c@abbeypress.co.uk> - 2019-01-03 15:23 +0000
    Re: loading the clipboard Alan Wrigley <usenet@alanwrigley.me.uk> - 2019-01-03 17:09 +0000
      Re: loading the clipboard Andrew Conroy <a.m.conroy@owlart.co.uk> - 2019-01-03 21:53 +0000
        Re: loading the clipboard Alan Wrigley <usenet@alanwrigley.me.uk> - 2019-01-03 22:45 +0000
          Re: loading the clipboard Steve Fryatt <news@stevefryatt.org.uk> - 2019-01-03 23:13 +0000
    Re: loading the clipboard Fred Graute <fjgraute@planet.nl> - 2019-01-04 02:31 +0100

csiph-web