Jump to content
Sign in to follow this  
ttleser

GIF image and transparency background

Recommended Posts

ttleser

I've read through the forums and found many suggestions and helpful tips, but none seem to work for me. I want to have an GIF image appear on the screen. Transparent background, no window border/title.

Here's a script that I'm using that's pretty much an exact duplicate of many others I searched for in the forums:

#include <GUIConstants.au3>
GUICreate("",480, 114,-1,-1, $WS_POPUP,$WS_EX_LAYERED)
;GUICreate("",480, 114,-1,-1,$WS_POPUPWINDOW+$WS_EX_TOOLWINDOW+$WS_EX_TRANSPARENT,$WS_EX_LAYERED)  ; will create a dialog box that when displayed is centered

;GUISetBkColor (-1)

$n=GUICtrlCreatePic("\\192.168.100.100\c$\client\Logging_in2.gif", 480, 114, 0, 0, BitOR($SS_NOTIFY,$WS_GROUP))
GUICtrlSetBkColor(-1, $GUI_BKCOLOR_TRANSPARENT)
GUISetState ()
$n=GUICtrlSetPos($n,0,0,480,114)

sleep(4000)

Here's what it should look like:

Posted Image

But instead it looks like this:

Posted Image

Help?

Share this post


Link to post
Share on other sites
Valuater

try this one

worked for me

8)


NEWHeader1.png

Share this post


Link to post
Share on other sites
ttleser

huh? Are you saying my script worked for you?

PS, first image is a GIF on a transparent background.

Share this post


Link to post
Share on other sites
Alek

are you useing windows vista??


[font="Impact"]Never fear, I is here.[/font]

Share this post


Link to post
Share on other sites
ttleser

are you useing windows vista??

Nope, Windows XP Pro

try this one

I don't see anything there Valuater, doesn't appear your attachment is there anymore. I tried my script again on another PC and I still get the tanish background to show up. In Internet explorer, viewing this forum I can see the graphic fine without the tan background so I know I've got he GIF setup right. Something just isn't right here.

Thoughts?

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  

×