Home
JAQForum Ver 24.01
Log In or Join  
Active Topics
Local Time 17:48 13 Nov 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 : Show pictures in MMBasic for DOS

Author Message
hkoetz
Newbie

Joined: 30/03/2019
Location: Netherlands
Posts: 19
Posted: 05:58pm 08 Mar 2020
Copy link to clipboard 
Print this post

I appreciate TassyJim's MMExtra to play sounds from MMBasic for DOS. Is there a similar way to open a window and show a picture in it, e.g.

System "MMView.exe TestPicture.bmp"

Obviously MMView would have to be developed. Any tips on how to do this?

Regards
Henk Koetzier
 
matherp
Guru

Joined: 11/12/2012
Location: United Kingdom
Posts: 10573
Posted: 06:11pm 08 Mar 2020
Copy link to clipboard 
Print this post

Just google "w10 command line picture viewer"

I found

system "start filename.jpg"

works fine

Works with audio files as well and presumably any other file type with an allocated program
 
hkoetz
Newbie

Joined: 30/03/2019
Location: Netherlands
Posts: 19
Posted: 05:45pm 09 Mar 2020
Copy link to clipboard 
Print this post

Thank for the input Matherp. The method works well. However, all imageviewers I found have far too much functionality. So I made my own (MMView). Its use is shown in the picture.



One problem though. You do not return to the MMBasic prompt, unless you close the picture viewer. Any thought on how to remedy this.

Henk
 
lizby
Guru

Joined: 17/05/2016
Location: United States
Posts: 3470
Posted: 06:54pm 09 Mar 2020
Copy link to clipboard 
Print this post

This should work (system "call start e-28.jpg" works for me, returning to the ">" prompt when interactive).

system "call start mmview.exe outsideshed63.bmp"

Maybe you don't need "start".

~
Edited 2020-03-10 04:56 by lizby
PicoMite, Armmite F4, SensorKits, MMBasic Hardware, Games, etc. on fruitoftheshed
 
hkoetz
Newbie

Joined: 30/03/2019
Location: Netherlands
Posts: 19
Posted: 08:11pm 09 Mar 2020
Copy link to clipboard 
Print this post

Thx Lizby, that works. You don't need call. So the syntax is:

system "start mmview.exe outsideshed63.bmp"
 
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