I compiled a script with a background image, but if I dont provide the real path to the image outside the script, the image display blank
Dialog>MyDialog
Caption=SEND FILE TO NEWSWAY
Width=445
Height=215
Top=CENTER
Left=CENTER
Max=1
Min=1
Close=1
Resize=0
Button=YES,48,112,111,35,3
Button=NO,256,112,111,35,2
Image=W:\ScriptSupport\background.bmp,0,0,441,185,msImage1,0
EndDialog>MyDialog
To make the background image appear when running the script, I have to create a mapped drive "W" so the script can have access to the real bitmap image. Is there a way to imbed the image inside the script?
thanks
how to include image in the compiled package
Moderators: JRL, Dorian (MJT support)
-
- Automation Wizard
- Posts: 1101
- Joined: Fri Jan 07, 2005 5:55 pm
- Location: Somewhere else on the planet
There is a long thread about the addition of this feature, this page of it http://www.mjtnet.com/forum/viewtopic.p ... 2&start=15 has a basic example of how to import the image data directly into the script.
Also note that there is a system variable for the script directory SCRIPT_DIR which can be useful if you are making portable scripts that reference other files.
Also note that there is a system variable for the script directory SCRIPT_DIR which can be useful if you are making portable scripts that reference other files.