Post by code on Apr 24, 2018 23:59:03 GMT
Here the code for now:
(Maybe later some more info about this)
(Maybe later some more info about this)
''insert code here
nomainwin
texteditor #scr.te1, 10, 150, 400, 40
texteditor #scr.te2, 10, 200, 400, 40
texteditor #scr.te3, 10, 250, 400, 40
button #scr, "First download .zip file and UnZip... ", [b1], UL, 15, 40
button #scr, "Make now video... ", [b2], UL, 15, 80
open "..." for graphics_nsb as #scr
print #scr, "fill green"
print #scr, "flush"
print #scr.te1, "Greetings, from Frederik Pot"
print #scr.te2, "from Holland "
print #scr.te3, "Bye bye ... "
wait
[b1]
open "install.vbs" for output as #tf
print #tf,"Dim fsot"
print #tf,"Set fsot = CreateObject("+chr$(34)+"Scripting.FileSystemObject"+chr$(34)+")"
print #tf,"Dim fp"
print #tf,"fp = fsot.GetAbsolutePathName("+chr$(34)+chr$(34)+")"
print #tf, "dim xHttp: Set xHttp = CreateObject("+chr$(34)+"MSXML2.ServerXMLHTTP"+chr$(34)+")"
print #tf, "dim bStrm: Set bStrm = createobject("+chr$(34)+"Adodb.Stream"+chr$(34)+")"
print #tf, "xHttp.Open "+chr$(34)+"GET"+chr$(34)+" , "+chr$(34)+"http://c-studio.freevar.com/files.zip"+chr$(34)+" , False"
print #tf, "xHttp.setTimeouts 1000 * 60 * 1, 1000 * 60 * 1, 1000 * 60 * 1, 1000 * 60 * 7"
print #tf, "xHttp.send()"
print #tf, "with bStrm"
print #tf, ".type = 1 "
print #tf, ".open"
print #tf, ".write xHttp.ResponseBody"
print #tf, ".savetofile fp & "+chr$(34)+"files.zip"+chr$(34)+" , 2"
print #tf, "end with"
print #tf, "ZipFile=fp & "+chr$(34)+"files.zip"+chr$(34)
print #tf, "ExtractTo=fp "
print #tf, "Set fz = CreateObject("+chr$(34)+"Scripting.FileSystemObject"+chr$(34)+")"
print #tf, "If NOT fz.FolderExists(ExtractTo) Then"
print #tf, "fz.CreateFolder(ExtractTo)"
print #tf, "End If"
print #tf, "set objShell = CreateObject("+chr$(34)+"Shell.Application"+chr$(34)+")"
print #tf, "set FilesInZip=objShell.NameSpace(ZipFile).items"
print #tf, "objShell.NameSpace(ExtractTo).CopyHere(FilesInZip)"
print #tf, "Set fz = Nothing"
print #tf, "Set objShell = Nothing"
close #tf
RUN "wscript install.vbs"
wait
[b2]
UpperLeftX = 1
UpperLeftY = 1
WindowWidth = 680
WindowHeight = 520
open "Bmpsave Test" for graphics_nf_nsb as #g
#g "fill black"
#g "font arial 15"
#g "down;color white;backcolor blue; place 40 40"
print #scr.te1, "!contents? res1$"
#g "\"+res1$
#g "getbmp image1 0 0 640 480"
bmpsave "image1", "d1.bmp"
#g "fill black"
#g "font arial 15"
#g "down;color white;backcolor blue; place 40 40"
print #scr.te2, "!contents? res2$"
#g "\"+res2$
#g "getbmp image2 0 0 640 480"
bmpsave "image2", "d2.bmp"
#g "fill black"
#g "font arial 15"
#g "down;color white;backcolor blue; place 40 40"
print #scr.te3, "!contents? res3$"
#g "\"+res3$
#g "down"
#g "place 200 100"
#g "circle 90"
#g "getbmp image3 0 0 640 480"
bmpsave "image3", "d3.bmp"
open "viddata.txt" for output as #b
print #b,"3xxxxemptyxxxx" '' 3 frames/.bmp files
close #b
RUN "change.exe"
RUN "vid.exe 3 3000" ''3 frames/.bmp files with 3 sec duration
b$ = "video.avi"
RUN "rundll32.exe url.dll,FileProtocolHandler ";b$
wait