Sign in to follow this  
Followers 0

Splash Screen with png's

4 posts in this topic

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

#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
;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
Return 0
Return 1
;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)


Share this post

Link to post
Share on other sites

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??

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