OpenMovie ....gif

Archives Forums/BlitzPlus Bug Reports/OpenMovie ....gif

liuhaitao(Posted 2014) [#1]

Invalid Movie Graphics handle

liuhaitao(Posted 2014) [#2]
OpenMovie ("my.gif")

Results the error display "Invalid Movie Graphics handle"

Seek expert help, what method can play the animation Gif?

Floyd(Posted 2014) [#3]
You can find an example in the IDE help.

Online version here:

You will have have to adapt it slightly to find your my.gif movie.

liuhaitao(Posted 2014) [#4]
If the GIF animation with transparent effect, when opened, will appear above the error information.

Floyd(Posted 2014) [#5]
"Invalid Movie Graphics handle" would usually mean OpenMovie couldn't find the file.

If you use simply "my.gif" then the current directory will be searched. If my.gif is not there it will not be found.

I tried the example from the docs and it worked, using this:

liuhaitao(Posted 2014) [#6]

liuhaitao(Posted 2016) [#7]
The program returns "Error - Movie not loaded!"
Has not succeeded, I do not know why.

Dan(Posted 2016) [#8]
Then the file was not found by the program. There is a check, if the file was loaded, and if not then it will display the Error:
; check to see if it loaded okay
If movie=0 Then RuntimeError "Error - Movie not loaded!"
If Not(MoviePlaying(movie)) Then RuntimeError "Error - Movie not playing!"

the filename, from the example, is:

To fix this error, controll if the filename, on your hard disk, is correct.
Use the fixed paths,if the filename is the same.
For example use "c:\blitzplus\media\my.gif"

Make sure that you do not use "/" instead of "\" for path names. "c:/blitzplus/media/my.gif" would produce the error.
(see floyds post from here)

And at last, using relative paths, save the file in the parent folder, from which you can access the media folder.

if the file is in c:\blitz+\media then save the file to c:\blitz+\ folder

if your error is still due to:

If the GIF animation with transparent effect, when opened, will appear above the error information.

then please .zip (7z,rar etc) your troublesome picture and upload it to here, and give us the link to download it.

liuhaitao(Posted 2016) [#9]
I use the code is an example of the software, I promise to put hat.gif the same directory as the code, then the code into “movie = OpenMovie ( "hat.gif")” is still not.