Search found 58 matches

by KenDown
Fri 14 Jun 2019, 12:48
Forum: User Interface
Topic: NUMBER LOCK
Replies: 8
Views: 4063

Re: NUMBER LOCK

Some time ago I needed to know (and set) the CapsLock key and someone kindly provided me with this routine. It requires a byte array K%, which I have set to 255 DIMK%255 : DEFPROCcapsoff:LOCALf%,cmd$ SYS"GetKeyboardState",K% IFK%?20THEN ipfile$=CHR$34+@tmp$+"myscript.vbs"+CHR$34 f%=OPENOUTipfile$ PR...
by KenDown
Fri 14 Jun 2019, 12:37
Forum: BBC BASIC language
Topic: * vs OSCLI
Replies: 2
Views: 566

Re: * vs OSCLI

TIME=0 FORi%=0TO20000 *FONT Ariel,48 NEXT PRINTTIME TIME=0 FORI%=0TO20000 OSCLI("FONT Ariel,48") NEXT PRINTTIME a$="Ariel,48" TIME=0 FORI%=0TO20000 OSCLI("FONT "+a$) NEXT PRINTTIME Play around, perhaps substituting other variable for the font name or the font size. As it stands, using the star comma...
by KenDown
Fri 14 Jun 2019, 12:30
Forum: BBC BASIC language
Topic: Focus Handle of Multiwin Output Window
Replies: 2
Views: 424

Re: Focus Handle of Multiwin Output Window

Hmmm. I have multiple windows and although I don't need to ensure that one of them has the focus, I do need to know which one is being accessed by the program, which I guess comes down to the same thing. SYS"GetForegroundWindow"TOhw% IFhw%=hw1%ORhw%=hw2%ORhw%=hw3%ORhw%=hw5%ORhw%=hw6%ELSEENDPROC hw1%...
by KenDown
Fri 14 Jun 2019, 12:22
Forum: BBC BASIC language
Topic: The Order of WHEN Statements
Replies: 1
Views: 256

Re: The Order of WHEN Statements

The other aspect of the order of WHEN statements is that you need to order them carefully, otherwise the one you want may never actually be reached because some other condition was fulfilled first.
by KenDown
Mon 22 Apr 2019, 10:00
Forum: Assembly language
Topic: Reverting .exe files to .BBC format
Replies: 8
Views: 3540

Re: Reverting .exe files to .BBC format

Someone has kindly written to me privately to point out that I have completely misunderstood the effect of the 'Encrypt & compress' option. It has NO EFFECT WHATSOEVER on the ability to print the contents of a named variable. The compression and encryption are completely lossless and the program tha...
by KenDown
Mon 22 Apr 2019, 04:12
Forum: Assembly language
Topic: Reverting .exe files to .BBC format
Replies: 8
Views: 3540

Re: Reverting .exe files to .BBC format

Hmmm. I notice the comment that one would never normally NOT compress and encrypt. I must admit that I *always* turn those options off. Perhaps doing so slows down execution or something, but on the other hand it can be very useful in the sort of case "guest" describes. For example, I commonly use t...
by KenDown
Fri 15 Mar 2019, 08:21
Forum: Graphics and Games
Topic: Urdu
Replies: 2
Views: 1107

Re: Urdu

I have had a reply from the very kind gentleman whose name we may not mention, which indicates that there would need to be a separate FN written for each language that uses the Arabic-style scripts - Urdu, Persian and no doubt others.

Very frustrating.
by KenDown
Fri 15 Mar 2019, 08:19
Forum: Graphics and Games
Topic: Source code for old BBC Micro games
Replies: 5
Views: 1475

Re: Source code for old BBC Micro games

Of course there is the point that something written in old 6502 assembler (happy days) will now run as fast, if not faster, when written in plain old BASIC. In fact, I can remember when the Archimedes with is ARM processor first came out, one of the boasts was that its BASIC ran as fast as the old B...
by KenDown
Thu 07 Mar 2019, 17:56
Forum: Database and Files
Topic: Trying to get "dir /s ..." to work from BASIC
Replies: 6
Views: 1958

Re: Trying to get "dir /s ..." to work from BASIC

Richard, who appears to be lurking rather than participating, wrote to me to point out that virtually everything I said was wrong! So ignore, please. However he very kindly posted the solution to your problem: ===== EDIT (DDRM): At Richard's request, I have removed the direct quotes from his email. ...
by KenDown
Wed 06 Mar 2019, 20:58
Forum: Graphics and Games
Topic: Urdu
Replies: 2
Views: 1107

Urdu

I'm really not sure if this is the place for my query, but here goes. If you take a string of Arabic characters and PRINT it (having set text to right-to-left, of course) it all comes out as the equivalent of capital letters (they are actually terminal letters, but never mind) whereas what you need ...