kuhicop Posted January 18, 2019 Posted January 18, 2019 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
Subz Posted January 19, 2019 Posted January 19, 2019 Have you tried using the full path for example: Global $Image = @ScriptDir & "\images\karanda0015.jpg"
kuhicop Posted January 19, 2019 Author Posted January 19, 2019 3 hours ago, Subz said: Have you tried using the full path for example: Global $Image = @ScriptDir & "\images\karanda0015.jpg" Yes I already tested
Subz Posted January 19, 2019 Posted January 19, 2019 Open your image with Paint and then resave it, for some reason some images get corrupted and won't display, but I've tested the code and it works fine.
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