Posted: Thu Sep 22, 2005 8:15 am Post subject: MBMSplit code snippet
This is the simplest way to split multi(MBM) file into single bitmaps.
Bitmap files will be saved in the same folder where the source file is found, like file.000.mbm, file.001.mbm etc...
Edo
Code:
REM Code snippet ŠEdo 20.09.05.
REM Split multi(MBM) into single bitmaps
INCLUDE "Const.oph"
PROC Main:
LOCAL bitmaps%, MBM$(255)
dINIT "Split MBM file into single bitmaps", KDlgButRight%
dFILE MBM$, "MBM file:", KDFileSelectorWithSystem%
dBUTTONS "Cancel",KDButtonEsc%, "Ok",KDButtonEnter%
IF 0 = DIALOG
STOP
ENDIF
bitmaps%=MBMSplit%:(MBM$)
PRINT ""
PRINT "Extracted", NUM$(bitmaps%,3), "bitmaps"
PRINT "Press any key to close"
GET
ENDP
PROC MBMSplit%:(File$)
LOCAL bitmaps%, bit%,p%(6),bitmap$(255)
Thanks for sharing it to us! Will try this out tonight
Test:
Code:
PROC HilfeEnglisch:
dINIT "Help",1 or 2
dTEXT "","-=FUN-MODE=-",0
dTEXT "","Press [l] to set the LED on and [k] to set it off.",0
dTEXT "","With any other KeyPress it will set the LED on and off fast.",0
dTEXT "","Press [e] to come to the Menu. Try out [F] also",0 or $200
dTEXT "","-=MORSE-MODE=-",0
dTEXT "","Press a Key from A-Z and you will get the Morse-Code as",0
dTEXT "","Blinking or Beeping (Set in Options). Quit the Macro with",0
dTEXT "","a KeyPress like [Esc] !",0 or $200
dTEXT ""," http://boni.de.ms ",0
dTEXT ""," 'LED' is a Macro written by Jonas Bark. For any Tips",0
dTEXT ""," please send an E-M@il to <jonas.bark@gmx.de>",0
dBUTTONS "Back",13 or $100 or $200,"Quit",27 or $100 or $200
IF DIALOG=13
ELSE
ENDIF
ENDP
Ah well, Edo, use [*code] Your source code [*/code] for displaying it with indentions
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum