sancas Posted October 26, 2008 Share Posted October 26, 2008 Hello I need at splash screen with one image on png but, mi code only acept jpg how can I do to make me accept? This the code #NoTrayIcon #include <GUIConstants.au3> Dim $Version, $Title, $Windows, $Text;Declaro variables ;Si la ventana existe entonces salir $Version = "Portable by Sancas" If WinExists($Version) Then Exit AutoItWinSetTitle($Version) ;Titulo de la ventana del ejecutable autoit $Title = "Portable by Sancas" ;función animar ventana Global Const $AW_FADE_IN = 0x00080000 Global Const $AW_FADE_OUT = 0x00090000 Func _WinAnimate($v_gui, $i_mode, $i_duration = 1500) If @OSVersion = "WIN_XP" Or @OSVersion = "WIN_2000" Or @OSVersion = "WIN_VISTA" Or @OSVersion = "WIN_2003" Then DllCall("user32.dll", "int", "AnimateWindow", "hwnd", WinGetHandle($v_gui), "int", $i_duration, "long", $i_mode) Local $ai_gle = DllCall('kernel32.dll', 'int', 'GetLastError') If $ai_gle[0] <> 0 Then SetError(1) Return 0 EndIf Return 1 EndIf EndFunc ;animar ventana $hwnd = GUICreate($Title, 418, 251, -1, -1) GUICtrlCreatePic("Other\Splash.jpg", 0, 0, 418, 251) _WinAnimate($hwnd, $AW_FADE_IN) ConsoleWrite('er: ' & @error & @LF & 'ex: ' & @extended & @CRLF) ;Ventana de splash simepre en frente WinSetOnTop($Title, "", 1) Exit Thanks Link to comment Share on other sites More sharing options...
dbzfanatic Posted October 26, 2008 Share Posted October 26, 2008 There are codes in the forum to be able to use png. Use the search feature. Go to my website. | My Zazzle Page (custom products)Al Bhed Translator | Direct linkScreenRec ProSimple Text Editor (STE) [TUTORIAL]Task Scheduler UDF <--- First ever UDF!_ControlPaste() UDF[quote name='renanzin' post='584064' date='Sep 26 2008, 07:00 AM']whats help ?[/quote] Link to comment Share on other sites More sharing options...
sancas Posted October 26, 2008 Author Share Posted October 26, 2008 There are codes in the forum to be able to use png. Use the search feature.Yeah! Yeah!, I could do that but the codes that are here are too difficult for me, that's why I ask that if you can give me a where I just change the Address of the image.someone can help me?? Link to comment Share on other sites More sharing options...
Pain Posted October 26, 2008 Share Posted October 26, 2008 (edited) You said PNG, GUICtrlCreatePic doesn't work with PNG so take a look herehttp://www.autoitscript.com/forum/index.php?showtopic=47651You might also take a look at \AutoIt3\Examples\GUI\Advanced\AlphaBlend.au3 and ShowPNG.au3 Edited October 26, 2008 by Pain Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now