[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: Fred Graute <fjgraute@xxxxxxxxx>
- Date: Tue, 30 Oct 2018 21:11:14 +0100
- Dkim-signature: v=1; a=rsa-sha256; q=dns/txt; c=simple/simple; d=casema.nl; s=201809corplgsmtpnl; h=MIME-Version:Message-ID:Subject:To:From:Date; bh=G3qbNW3Wu1YK8wvo+cEMjL6Yg/84VSwwXtsx3Ezv8ek=; b=q1BimS3NNuaz6TsBaBd7dCuN2P rLJSUo4CkD5Z9j3bMkWCasvxSxpk3K6eA6/rR7uFLFSB4owGq1eo3GW8K0IISNYnKs+PxTZgoFdW4 zXO1PY75ptTQppqLaG5ADXd5YvwdF4YehKrJsBQRntNRsQq0MdUMSXK3CnGC+yU/EUbqIgXt3exI1 xJbmb70UVotbedbHA90uVcIIl3F3RvraDUeCrnAa/7H8uG/IjXOQWzHM5I4ea5J7u1hKqb5VQRXD0 Go0mcRLRIuwfFgBWRHtPgepsO5xZau0LpZXKnCt6MlzcJwvtcqWAALn37dgJoM/rRruIZJOn1EDwg kaGnoJoQ==;
- Envelope-to: stronged@xxxxxxxxxxx
- In-reply-to: <574f213357bob@mightyoak.org.uk>
- List-id: RISC OS StrongED mailing list
- References: <574f213357bob@mightyoak.org.uk>
- Reply-to: StrongED@xxxxxxxxxxx
- User-agent: Messenger-Pro/7.06 (MsgServe/7.06) (RISC-OS/5.24)
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.
Cheers,
Fred.
--
StrongED Developer
http://www.stronged.iconbar.com/
--
To unsubscribe send a mail to StrongED+unsubscribe@xxxxxxxxxxx
List archives and instructions at
http://stronged.torrens.org/index.html