Home
JAQForum Ver 24.01
Log In or Join  
Active Topics
Local Time 07:07 02 Aug 2025 Privacy Policy
Jump to

Notice. New forum software under development. It's going to miss a few functions and look a bit ugly for a while, but I'm working on it full time now as the old forum was too unstable. Couple days, all good. If you notice any issues, please contact me.

Forum Index : Microcontroller and PC projects : MMBASIC for DOS question....

Author Message
Grogster

Admin Group

Joined: 31/12/2012
Location: New Zealand
Posts: 9610
Posted: 06:02am 01 Jun 2025
Copy link to clipboard 
Print this post

Hi everyone.  

As I continue to play around with my VLC idea, the MMB4D method seems to be a very real possibility, based on example code posted in my other thread by member mozzie.

However, is there any way to change the SIZE of the text inside the MMBASIC window?
It's tiny and hard to read - for me, anyway.....
Smoke makes things work. When the smoke gets out, it stops!
 
Grogster

Admin Group

Joined: 31/12/2012
Location: New Zealand
Posts: 9610
Posted: 06:27am 01 Jun 2025
Copy link to clipboard 
Print this post

Ignore.  Found out how.  

Right-click window title/properties/font....

Select size or font options, then click OK.
Smoke makes things work. When the smoke gets out, it stops!
 
mozzie
Senior Member

Joined: 15/06/2020
Location: Australia
Posts: 142
Posted: 03:56pm 01 Jun 2025
Copy link to clipboard 
Print this post

G'day Grogster,
MMB4Dos is surprisingly powerful, between it and AutoHotKey all sorts of madness can be created  

A word of warning, unless someone knows a way around this, I have never figured out how to send a file name or path containing a space with the SYSTEM command, tried all sorts of things (chr$ / enclosing in single or extra brackets / separate strings) all with no luck.  

Mention this just in case your video names contain spaces.

Whoever made it "Program Files" instead of ProgramFiles or Program_Files needs space between his head and neck  

File names should NEVER contain spaces....

Good Luck
Lyle.
 
phil99

Guru

Joined: 11/02/2018
Location: Australia
Posts: 2642
Posted: 09:41pm 01 Jun 2025
Copy link to clipboard 
Print this post

On W10 hidden 8.3 format names still work.

Eg in Explorer when you enter C:\PROGRA~1 in the address bar it goes to "Program Files".
(between PROGRA and 1 is a Tilde not a dash. In my browser it looks like a dash)

In a CMD window enclosing in double quotes also works.

CHDIR "c:\Program Files"

I think MMBasic can include double quotes in a string but don't remember how.
.
Edited 2025-06-02 08:04 by phil99
 
TassyJim

Guru

Joined: 07/08/2011
Location: Australia
Posts: 6283
Posted: 10:29pm 01 Jun 2025
Copy link to clipboard 
Print this post

  phil99 said  
I think MMBasic can include double quotes in a string but don't remember how.
.

CHR$(34)
VK7JH
MMedit
 
phil99

Guru

Joined: 11/02/2018
Location: Australia
Posts: 2642
Posted: 10:34pm 01 Jun 2025
Copy link to clipboard 
Print this post

Thank you!
> Print "adding double quotes in a string "chr$(34)"c:\Program Files"chr$(34)" is done this way"
addind double quotes in a string "c:\Program Files" is done this way
>

But for a string variable you need this:-
> P$ = "Or "+chr$(34)+"c:\Program Files"+chr$(34)+" this way"
> ? P$
Or "c:\Program Files" this way
>

Edited 2025-06-02 09:17 by phil99
 
Grogster

Admin Group

Joined: 31/12/2012
Location: New Zealand
Posts: 9610
Posted: 01:39am 02 Jun 2025
Copy link to clipboard 
Print this post

I hope to have a play about with this and mozzie's example code, tonight or in the next few days.  I'll keep the thread updated.

The first thing I plan to do, is basically run mozzie's example code as-is, so that I can(hopefully!) replicate that behaviour here.  Once I have the example code working, I can start playing about.  I plan to make use of DATE$ and TIME$ as I expand the code.

I already have a couple of very useful commands for use with IrfanView picture viewer, which I plan to use to show an image full-screen when nothing is being played, then I can kill that process and start VLC.

Amusingly, the command to close all IrfanView instances is i_view64 /killmesoftly  

I think this is a reference to Killing Me Softly With His Song.
Smoke makes things work. When the smoke gets out, it stops!
 
Mixtel90

Guru

Joined: 05/10/2019
Location: United Kingdom
Posts: 7938
Posted: 08:28am 02 Jun 2025
Copy link to clipboard 
Print this post

I love Irfanview. It's a truly remarkable piece of programming. The sheer number of file types that it can either load or at least take some sort of a shot at is astounding.
Mick

Zilog Inside! nascom.info for Nascom & Gemini
Preliminary MMBasic docs & my PCB designs
 
Grogster

Admin Group

Joined: 31/12/2012
Location: New Zealand
Posts: 9610
Posted: 11:55pm 02 Jun 2025
Copy link to clipboard 
Print this post

Yes, I've been using it for years, and it still remains my go-to picture viewer and basic editor/cropper/resizer etc.
Smoke makes things work. When the smoke gets out, it stops!
 
tgerbic
Regular Member

Joined: 25/07/2019
Location: United States
Posts: 66
Posted: 02:07am 03 Jun 2025
Copy link to clipboard 
Print this post

I have used it for years as well, both under windows and linux (WINE). Has great support and functionality.
 
Volhout
Guru

Joined: 05/03/2018
Location: Netherlands
Posts: 5091
Posted: 11:36am 03 Jun 2025
Copy link to clipboard 
Print this post

I just used MMBasic for DOS to convert some files to another format.
It works reliable and (on this PC) is fast.
But.
Coming from PicoMite the DOS version (5.05) is miles behind. I constantly try to use commands from pico, that are not available in the DOS version. It is easy enough to work around it, but I realize I am truly spoiled with pico.

Anyway, MMBasic4DOS performed it's task on some huge excel files, and is highly valued. Especially since it came packed with MMEdit (that I used to develop the file convertor code).

Volhout
PicomiteVGA PETSCII ROBOTS
 
mozzie
Senior Member

Joined: 15/06/2020
Location: Australia
Posts: 142
Posted: 12:10am 04 Jun 2025
Copy link to clipboard 
Print this post

G'day,
Thanks for the hints, I had the 8.3 figured out but after looking back at some older programs realized I was using chr$(22) instead of chr$(34), got my HEX and DEC muddled up  

Little wonder MMbasic refused to work  

I still reckon spaces in filenames are the work of the devil  

IrFanview can also play video files, but used Windows media player so you have no real control, might still be worth a try?

Regards,
Lyle.
 
Print this page


To reply to this topic, you need to log in.

The Back Shed's forum code is written, and hosted, in Australia.
© JAQ Software 2025