Ditto... thx JRL for the great example.Bob Hansen wrote:Kudos to JRL for his high quality work.
Picture for a button
Moderators: Dorian (MJT support), JRL
jpuziano
Note: If anyone else on the planet would find the following useful...
[Open] PlayWav command that plays from embedded script data
...then please add your thoughts/support at the above post -
Note: If anyone else on the planet would find the following useful...
[Open] PlayWav command that plays from embedded script data
...then please add your thoughts/support at the above post -
image date block
What is the easiest way to turn an image into a data block so I can include them inside my scripts?
The easiest way is to use the "Import Binary File" item under the "Tools" menu in the Macro Scheduler editor.
Using "Import Binary File" will automatically insert your file data in a label block that will look similar to the following. It is usually good to place the block at the end of the script so that it is out of the way. It could be quite large for some files.
Then use the ExportData> function to write the data back out to a file. Something like:
Be sure to exclude the colon when you enter the label name as the first parameter of the ExportData> function.
Using "Import Binary File" will automatically insert your file data in a label block that will look similar to the following. It is usually good to place the block at the end of the script so that it is out of the way. It could be quite large for some files.
Code: Select all
/*
FILENAME.BMP_DATA:
424D36241200000000003600000028000000AF020000400200...
*/
Code: Select all
ExportData>FILENAME.BMP_DATA,%temp_dir%NewFile.bmp