[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [StrongED] Programming question
- To: stronged@xxxxxxxxxxx
- Subject: Re: [StrongED] Programming question
- From: Bob Latham <bob@xxxxxxxxxxxxxxxx>
- Date: Wed, 31 Oct 2018 10:41:12 +0000 (GMT)
- Dkim-signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=mightyoak.org.uk; s=default; h=Content-Type:References:In-Reply-To: Message-ID:Subject:Date:To:From:MIME-Version:Sender:Reply-To:Cc: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=7YId88yDDuCee6Ks4qddxG01ADmQF76cIMVru9VAvos=; b=qIoRiy0gM0Mch1FltWPKNFovn tKHohP6L+i77bRAMqPgOEoA5Jpe/beNxvnwuslfJh+8rjtr3fAtTCwE2zfLoSmZ9ptQMCw9GkDq0d KlhaGNJZjTIV9KIFkuhE84kjx7+5Yi5xdUA/QIOiuy1FVmArWSRSyTi6I4yl/DyFXPXl/xNE3ypJf Bc5BdNbqdHbvh/irQsnTpZUmWVft2P9oQiCyZxtTHr6VIYs84bqx9bXbgDVHSNHIYOZmFtNbru5Ww 2sH0u75hOrWPKIDEc2PmPMt4muLQSOe9W+ZikZkJr1ctVaY0AIeOyJpGKfNWtQo5rn8XtmPDPBKFp O6fMoZ6Tg==;
- Envelope-to: stronged@xxxxxxxxxxx
- In-reply-to: <626a424f57.fjgraute@casema.nl>
- List-id: RISC OS StrongED mailing list
- References: <574f213357bob@mightyoak.org.uk> <626a424f57.fjgraute@casema.nl>
- Reply-to: StrongED@xxxxxxxxxxx
In article <626a424f57.fjgraute@xxxxxxxxx>,
Fred Graute <fjgraute@xxxxxxxxx> wrote:
> In message <574f213357bob@xxxxxxxxxxxxxxxx>
> Bob Latham <bob@xxxxxxxxxxxxxxxx> wrote:
> > Assume StrongED has a basemode window open for text only. There
> > may or may not be text in the window and there may or may not be
> > an associated file stored somewhere.
> >
> > Is there a way a small program of mine can send text to that
> > window at the end of file / bottom of the text other than copy
> > and paste?
> You can use Wimp_ProcessKey or OS_Byte (138 or 153) to send
> characters to the window with the input focus. You'll need to place
> the cursor at the end of the text manually.
> A more involved way is to send a StrongED_ExecCmds message to
> StrongED with either the text to insert or the name of a file to
> insert. See StrongED manual -> Reference section -> List of
> Messages.
> In the latter case you can include the EndOfText function to make
> sure the cursor is at end of text.
Very interesting, I'll look into both options.
Thanks Fred.
Cheers,
Bob.
--
Bob Latham
Stourbridge, West Midlands
--
To unsubscribe send a mail to StrongED+unsubscribe@xxxxxxxxxxx
List archives and instructions at
http://stronged.torrens.org/index.html