

They also convert to Base64 instead of hex to make the encoded image a shorter string of characters.įincs takes Skan's concept one step further by instead of converting the image to hex and putting in the script, they use FileInstall to have the image bundled into the exe package when compiled. Just me created a nice utility to make the Skan code above easier to implement.

The script with image data can literal be cut and pasted as text. It is also highly portable because the information is converted to plain text. This has the benefit that the script does not have to be compiled into an executeable to have an image all in one file.
AUTOHOTKEY BUNDLE FILES FOR COMPILE HOW TO
Skan shows how to take a picture, convert it to hex, put the hex in an AHK script, then convert the hex to an image in memory. The Alternate Data Stream was basically designed for holding data and resources attached to a file. Luckily, just me (the user, not me), made a utility that makes it somewhat less painful.īecause this comes up pretty often, so for the sake of googling here is collected information for ways to embed images into scripts and executables.Īs easy way on NTFS systems is the alternate data stream. To not make a "dumb impression", you actually have to be pretty smart in your coding skills. It is clumbersome but it does add a nice touch to a script. It can definitely be done and their are several examples on the forum. Usually it is converted characters of hex data. So to really store stuff within an AHK script you have to convert the data to characters and then back to your data from the characters. Even compiled AHK is just a glorified self-extracting text file. One easy approach on NTFS systems is to put the support files in the alternate data stream of the exe file.īelow is a link that shows that approach.ĪHK scripts are text files. Some little programs go through the trouble of doing it.
AUTOHOTKEY BUNDLE FILES FOR COMPILE FULL
Most computers are full of folders that hold programs' files. The reason being in general, in most programming language it is a pain. There may be millions of single file programs but there are many millions more that are not.
