Sign in to follow this  
Followers 0
jvanegmond

Problem with .gif images

4 posts in this topic

#1 ·  Posted (edited)

I've had any problems using gif images but recently i tried to build a funny game, now that i'm starting over realising the concept had too many flaws. I'm getting problems using a .gif image. The problem may be in the gif or in AutoIt itself, i think i have pretty much ruled out problems in my script. It may have something with AutoIt picking the wrong color as the transparent one. (Adobe CS and Windows' ImageViewer do it the right way though).

Please look at this, I have included the gif and the script and please play around with it because i can't get it right.

[Edit] IE displays the gif properly too.

[Edit] Those who háve downloaded this. Please tell me if it's Not working also, because i am clueless wether or not it is my pc or autoit.

Edited by Manadar

Share this post


Link to post
Share on other sites



This is a transparent GIF?

Transparent GIF have to be treated diffently.

Example From the Help File:

;----- example 2
#include "GUIConstants.au3"

$gui=GUICreate("test transparentpic", 200, 100)
$pic=GUICreate("", 68, 71, 10, 10,$WS_POPUP,BitOr($WS_EX_LAYERED,$WS_EX_MDICHILD),$gui)
GUICtrlCreatePic(@Systemdir & "\oobe\images\merlin.gif",0,0, 0,0)

GUISetState(@SW_SHOW,$pic)
GUISetState(@SW_SHOW,$gui)
do
until GuiGetMsg() = $GUI_EVENT_CLOSE

Share this post


Link to post
Share on other sites

I have copied that script and pasted my own image in but i still had the same problem. So i'd say in that case the code is PERFECT. The image is fine. So does the problem lie in AutoIt itself?

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0