TassyJim Guru Joined: 07/08/2011 Location: AustraliaPosts: 6572
Posted: 08:08am 23 Apr 2023
V5.1.2 has been released. The main difference is the transfer of files from MMEdit to MMCC. The MMCC window now comes to the front and talles focus immediaetly. Much better than having to click in it to get control.
A new feature is syntax help for commands that have a long list of parameters/b commands. OPTION is the main culprit and MM.INFO has a giddy list of choices also. start typing the command and afer a couple of characters hit F12. A selection window opens with the list of choices to select. Double click and the selection is pasted into oyur code. The F12 key also works it's magic in MMCC provided you are in the single line comand entry box. The commnads included in this feature are Bitbang, Framebuffer, GPS, GUI, LOngstring, Math, MM.Info, Memory, OPtion, Peek and Poke, PIO ans Setpin.
Jim
panky Guru Joined: 02/10/2012 Location: AustraliaPosts: 1132
Posted: 10:31pm 23 Apr 2023
Jim, Is there a write up anywhere of using MMEdit5MMCC with MMB4W? If so, I would like to include it as an Annex in the MMB4W User Manual please. Regards, Doug.
TassyJim Guru Joined: 07/08/2011 Location: AustraliaPosts: 6572
Posted: 01:41am 24 Apr 2023
Setting up MMB4W in MMEdit is the same as any other external program.
From the "Action" menu, select "Edit" This opens up the preferences window at the correct tab.
Using the spinwheel, select the first empty entry. This will usually be "1" as "0" is used for the DOS version of MMBasic. Fill out the fields as shown with the path to your copy of MMB4W (The exe is named MMBasic.exe, the same as the DOS version) Check the "Use Batch" tick box. If you want this to be the default external program, select "set as default" Select "Save" To run your program in MMB4W, use the Action menu or, if it is set as default, the "Run Icon" (third from right) is more convenient.
Jim
Turbo46 Guru Joined: 24/12/2017 Location: AustraliaPosts: 1694
Posted: 03:05am 24 Apr 2023
Hi Jim, Unless I've missed it somehow, there doesn't seem to be an explanation of the "Use batch file" option. I remember that with the previous version a batch file was used to associate the BASIC files with. Is that what this is for?
Bill
TassyJim Guru Joined: 07/08/2011 Location: AustraliaPosts: 6572
Posted: 05:21am 24 Apr 2023
As usual, I have been slack with the documentation. There is a batch file called runhere.bat in the program folder. Depending on the mood of Windows and the program being called, using this instead of calling the external program directly sets the startup folder correctly.
ruhere.bat
rem run external program. cd %1 %2 %3 rem alternative option rem start "" %2 %3
All it does is change directories before running. Supplying the batch file makes taming external programs less prone to throwing things at the computer.
File association works properly without the need for any funny business with V5.
Jim
Turbo46 Guru Joined: 24/12/2017 Location: AustraliaPosts: 1694
Posted: 11:44pm 24 Apr 2023
Thanks Jim, documentation is always the worst and most boring part of a project.
TassyJim Guru Joined: 07/08/2011 Location: AustraliaPosts: 6572
Posted: 11:48pm 24 Apr 2023
Especially when your typing is sh...
Andrew_G Guru Joined: 18/10/2016 Location: AustraliaPosts: 887
Posted: 01:03am 25 Apr 2023
Hi Jim, MMEdit is perfect - but in keeping with our shared lack of skills in typing and spelling how hard would it be to add a spell checker?: - you already have a list of keywords to exempt - maybe for comments only?
(or I could stop being lazy and save it to text and then spell check that)
Cheers,
Andrew
TassyJim Guru Joined: 07/08/2011 Location: AustraliaPosts: 6572
Posted: 03:13am 25 Apr 2023
No spellcheck. Sorry. I would have to have a special one for the US users, not to mention the now numerous other languages used.
I did offer to make the menus etc multi-lingual but there were no takers. Saves me a lot of work.
Jim
Andrew_G Guru Joined: 18/10/2016 Location: AustraliaPosts: 887
Posted: 05:25am 25 Apr 2023
Hi Jim, Thanks - understood. (MMEdit is still perfect).
Andrew
matherp Guru Joined: 11/12/2012 Location: United KingdomPosts: 11744
Posted: 12:27pm 25 Apr 2023
Jim
There has just been the umpteenth confused user because they haven't selected the correct syntax for their version of MMbasic. Would it be possible to autoconfigure this using a call to mm.device$?
TassyJim Guru Joined: 07/08/2011 Location: AustraliaPosts: 6572
Posted: 08:38pm 25 Apr 2023
Yes, I think I might have to...
I did do it in earlier versions of MMEdit but changed to user responsibility to make it easier and faster.
I can only do it in MMCC so there will still be confusion when the wrong syntax is selected and it would require users to update MMEdit regularly.
Just stop adding new devices so I can catch up.
Jim
Mixtel90 Guru Joined: 05/10/2019 Location: United KingdomPosts: 9028
Posted: 08:58pm 25 Apr 2023
Apart from the 1977 port to the Cray 1 (which Peter put on the back burner in 1978 due to no shed users having big enough mains supplies - although they all fancied the seat) I think you may have a little time now, Jim, as I don't think there are any more machines left.
;)
Turbo46 Guru Joined: 24/12/2017 Location: AustraliaPosts: 1694
Posted: 11:53pm 25 Apr 2023
Often I don't have the target device connected. Maybe an optional splash screen when it starts telling the user what the syntax is set to?
Bill
TassyJim Guru Joined: 07/08/2011 Location: AustraliaPosts: 6572
Posted: 05:23am 26 Apr 2023
There are two places where the device type is important. Uploading bas software and running the file manager.
There will be a new option in the Setup menu called "Auto Configure"
If you have Auto Configure ticked, the device will be checked and changed if needed after connecting during uploads and before starting the file manager.
There is also a new button "Device?" When pressing "Device?", the device currently connected will be checked and, if you have Auto Configure ticked, the device setting will be changed, otherwise just a warning.
I will give it a few days of testing before updating the downloads.
Jim
Andrew_G Guru Joined: 18/10/2016 Location: AustraliaPosts: 887
Posted: 08:31am 29 Apr 2023
Hi Jim, A minor bug on a PicoMite (not VGA nor Web) RC3.
MMEdit is not seeing "IMAGE" as a keyword in:
LOAD IMAGE "filename.BMP", x, y
so when I crunch it it produces:
LOAD IMAGE"filename.BMP", x, y
Which throws up "Error : Syntax".
Over to you, Cheers,
Andrew
TassyJim Guru Joined: 07/08/2011 Location: AustraliaPosts: 6572
Posted: 11:56am 29 Apr 2023
Thanks, I have added IMAGE to the tkn file. You can add it to your copy to save waiting for the next update.
Andrew_G Guru Joined: 18/10/2016 Location: AustraliaPosts: 887
Posted: 09:16pm 29 Apr 2023
Hi Jim, Thanks.
Sorry, but how? In Notepad (or ++) it looks like something I don't want to mess with.
Cheers,
Andrew
Volhout Guru Joined: 05/03/2018 Location: NetherlandsPosts: 6035
Posted: 09:39pm 29 Apr 2023
Hi
5.1.2 works fine. The only odd thing I noticed that sometimes when opening a progam, it refuzes to send it to the pico, until I save it first. Essentially writing the same program on the same location on disk.
This is the linux version. This was also happening in 5.0
No big issue for me, I am perfectly happy with 5.1.2 as is.
Volhout
Turbo46 Guru Joined: 24/12/2017 Location: AustraliaPosts: 1694
Posted: 09:42pm 29 Apr 2023
I have done this before with the earlier version. Make a backup of the tkn file and just add the word 'image' in there separated by a space. It looks like it doesn't need to be in alphabetical order but I would do that. Plain Windows notepad will do it.