Jump to content

SplashImageOn - Not working


kuhicop
 Share

Recommended Posts

Hello, I'm trying to build some script with SplashImageOn, the idea is to show an image on top of the screen.

But I don't know why it's not showing anything, I press "t" and nothing happens...

#include <Date.au3>
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>

HotKeySet("t","test")

Global $title = "Time now: " & @HOUR & ":" & @MIN
Global $image = "images\karanda0015.jpg"

#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("Form1", 615, 437, 192, 124)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###

Func test()
If Not FileExists($image) Then
    MsgBox(16,"ERROR","Unable to find " & $image)
EndIf
SplashImageOn($title,$image,250,200,6,5)
Sleep(5000)
SplashOff()
EndFunc

While 1
    $nMsg = GUIGetMsg()
    Switch $nMsg
        Case $GUI_EVENT_CLOSE
            Exit
    EndSwitch
    ;Loop()
WEnd

 

Link to comment
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
 Share

×
×
  • Create New...