I can't respond to you directly since I've not had time to dig into Skan's lib. Sorry
No worries & thank you!
Jump to content
Not in the manner I proposed. Its completely different project, looking similar at first glance
majkinetor : looks like it's exactly the purpose of skan's AxC : Pack and Unpack Binary files which offers the following functionnality :
Ye, there are solutions to each multimedia type, but they are specific and not uniformed. I am more interested in finding general solution. I see that Azerty don't have any interest in that, so it would probably have to be done by somebody else. Laszo's ideas about comiled executable definitely gives more attention to such approach, as you would be able to pack any of your resources in the 1 exe file.
Sarah : using PlaySound() API through DllCall() should do the trick using SND_MEMORY flag. See here. As for JPeG, BMP & al, browsing through the forum should help you find the trick (look at samples like hardcopy scripts, for instance, to see how to manipulate images in memory).
I am very beginner at AHK. What is the easiest way to safe the decoded BMP file? , something similar to
Decocede_BMP_File :=Ascii85_AhkDecoder(Logo, BinLogo)
FileAppend, %Decocede_BMP_File%, File.bmp
I have tryed %Decocede_BMP_File% and %BinLogo%, but I have just got bad results.
I tryed "BinReadWrite.ahk", but things got worse. :|
Thank you very much.
;//// ;//// --> EnCode the Picture ;//// LineLength=70 ; read PNG VarSetCapacity(Input, 100000) h:=OpenFileForRead("bild.png") ; file taken at http://www.autohotkey.com/docs/images/AutoHotkey_logo.gif BinarySize:=ReadFromFile(h, Input, 0, FILE_BEGIN) CloseFile(h) ; convert it OutputSize:=Ascii85_AhkEncoder(Input, BinarySize, Output, LineLength) ; convert to enable AHK inlining Ascii85_AhkEmbedParser(Output, Output) ; Write ASCII85 conversion of png FileDelete, logo.asc FileAppend, %Output%, logo.asc ;//// ;//// --> DeCode the Picture ;//// fileread,logo,logo.asc NeededBytes:=Ascii85_DecoderSize(&logo, 0xFFFFFFFF) VarSetCapacity(BinLogo, NeededBytes) DecodedBytes:=Ascii85_Decoder(&Logo, 0xFFFFFFFF, &BinLogo) h2:=OpenFileForWrite("bild2.png") WriteInFile(h2,BinLogo,NeededBytes) closefile(h2)