BBC BASIC for Windows
Programming >> BBC BASIC language >> Clipboard?
http://bb4w.conforums.com/index.cgi?board=language&action=display&num=1274140750

Clipboard?
Post by Wol on May 17th, 2010, 11:59pm

I am at the beginner/rediscovering BBC BASIC stage so don't get *too* technical!

You know the phenomenon whereby you can read complex text that's all garbled up, so long as the first and last letters of each word are maintained in position and the other letters are correct although in random order?

Out of interest I am writing a small BBC4W program to do this - you input the sentences and the program does the business and prints onscreen the jumbled sentence.

What I can't do is to copy the screen output so as to use it outside the program: for example, copy it to the Windoze clipboard, and I can't seem to find a way of retrieving this output text string to, say, Notepad.

I am sure there must be a way.....
Re: Clipboard?
Post by admin on May 18th, 2010, 08:14am

on May 17th, 2010, 11:59pm, Wol wrote:
What I can't do is to copy the screen output so as to use it outside the program: for example, copy it to the Windoze clipboard

You can copy the contents of BB4W's output window to the clipboard by pressing Ctrl+Tab, as described in the main Help documentation under 'Graphics and Colours... Capturing the screen contents':

http://www.bbcbasic.co.uk/bbcwin/manual/bbcwin3.html#capturing

(note the caveat about using a monospaced font, and the fact that it doesn't work under Win9x).

Alternatively you can copy text to the clipboard in your own code, as described under 'Accessing the Windows API... Using the clipboard':

http://www.bbcbasic.co.uk/bbcwin/manual/bbcwine.html#usingclipboard

Richard.
Re: Clipboard?
Post by Wol on May 18th, 2010, 08:53am

That's marvellous - many thanks!