Zedna

Resources UDF

643 posts in this topic




@Rudex In function SplashImageOn you can't use resources directly.

You have to save image from resources to temporary file:

 

#AutoIt3Wrapper_Res_File_Add=logo1b.jpg, rt_rcdata, TEST_JPG_1
#include "resources.au3"

$path = @TempDir & "\TEST_JPG_1.jpg"
_ResourceSaveToFile($path, "TEST_JPG_1")
SplashImageOn("Splash1", $path,1000,800,-1, -1, 1)
WinSetOnTop("Splash1", "", 1)

 

In this case it's better to use FileInstall()

$path = @TempDir & "\TEST_JPG_1.jpg"
FileInstall("TEST_JPG_1.jpg", $path)
SplashImageOn("Splash1", $path,1000,800,-1, -1, 1)
WinSetOnTop("Splash1", "", 1)

 

Share this post


Link to post
Share on other sites

@Zedna

Thanks for help!. 

Like i didnt get solution i used this :

; Charge window in top
$GUI = GUICreate ("", 1000, 800, -1, -1,$WS_POPUP, BitOR ($WS_EX_TOOLWINDOW, $WS_EX_TOPMOST))
$pic1 = GUICtrlCreatePic("",-1,-1,1000,800)
GUICtrlSetState(-1, $GUI_DISABLE)
_ResourceSetImageToCtrl($pic1, "TEST_JPG_1")
GUICtrlCreateLabel(" Data Processing ... ", -1, @DesktopHeight/1.3, 1000, 800,$SS_CENTER,0)
GUISetBkColor(0xffffff, $GUI)
GUISetState(@SW_SHOW,$GUI)

I will try your solution. Thanks.

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