Page 1 of 1

Show Embedded Pictures in Rectangle or ?

PostPosted: Mon Mar 13, 2017 2:16 am
by StarterPack
Hi guys, I have 5 pictures embedded, how can I display the pictures in a Rectangle, hotspot, picture etc. I don't want to display all 5 at once, but if I use the "If" command, it must display a certain picture

Thank You

Re: Show Embedded Pictures in Rectangle or ?

PostPosted: Mon Mar 13, 2017 6:19 am
by Gaev
StarterPack:

Take a look at SetObjectFileName ... if ...
Code: Select all
SetObjectFileName "Picture1" "[Embedded]myImage1.jpg"

... does not work, you will have to Extract the file first ...
Code: Select all
ExtractFile "[Embedded]myImage1.jpg" "[TempDir]myImage1.jpg"

Re: Show Embedded Pictures in Rectangle or ?

PostPosted: Mon Mar 13, 2017 2:28 pm
by StarterPack
Take a look at SetObjectFileName


Thanks again Gaev, this is just what I need

Allthough, I can still use the If command now without extracting the files first

Code: Select all
If "[PicNum]" "=" "1"
SetObjectFileName "Picture" "[Embedded]Picture1.jpg"
Else
EndIf
If "[PicNum]" "=" "2"
SetObjectFileName "Picture" "[Embedded]Picture2.jpg"
Else
EndIf