Search found 62 matches

by KenDown
Wed 16 Oct 2019, 17:14
Forum: User Interface
Topic: keystroke detection
Replies: 3
Views: 1153

Re: keystroke detection

It should be noted that ON MOUSE provides a way of telling whether SHIFT or CTRL are held down (see the help files for details). However for other keys you will have to use a negative inkey to test for the specific key. This can be a nuisance if you have half a dozen keys that need to be checked, bu...
by KenDown
Mon 14 Oct 2019, 20:56
Forum: BBC BASIC language
Topic: Request by Richard to return
Replies: 11
Views: 2910

Re: Request by Richard to return

And I agree with all the rest. I believe that someone made critical comments once (or on a few occasions) which Richard took to heart. I hope that will not be repeated.
by KenDown
Tue 06 Aug 2019, 19:30
Forum: Miscellaneous
Topic: BBC BASIC discord server?
Replies: 2
Views: 1737

Re: BBC BASIC discord server?

Can you tell us a bit more about this discord business, of which I have not previously heard. It would be a shame to lose this forum and I do think that something needs to be set up to take its place.
by KenDown
Tue 06 Aug 2019, 19:29
Forum: Miscellaneous
Topic: Self aware computers project - written in BBC Basic, help needed!
Replies: 11
Views: 3944

Re: Self aware computers project - written in BBC Basic, help needed!

For writing my Windows programs I have an outline program that I wrote and use. It contains a lot of routines, not all of which will be applicable to you, but it should make the business of implementing the GUI a bit easer for a novice. Let me know if you would like a copy.
by KenDown
Fri 14 Jun 2019, 12:48
Forum: User Interface
Topic: NUMBER LOCK
Replies: 8
Views: 5442

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: 1399

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: 1470

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: 993

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: 4944

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: 4944

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...