Jump to content

Recommended Posts

Posted

I've been trying to update the code for this using GitHub AI, all good, the app has been correctly updated to conform to the changes. It works as expected to. My only issue is that I want the splash screen to show when launching apps with it.

Copilot said to test with this script to see if the code is wrong or something else:
 

SplashImageOn("Test", @ScriptDir & "\graphics\x-splash.jpg", 307, 213)
Sleep(2000)
SplashOff()

The result was that the code is correct and the possible issues were:
 

Quote

This is a crucial clue! If this minimal script does not show the splash image, the problem is:

  • Not in your code logic
  • Not in the INI file
  • But with one of:
    • The image file itself (invalid or unsupported format for AutoIt v3.3.16.1)
    • The runtime environment (permissions, display)
    • The way AutoIt handles that image in newer versions (e.g., JPEG format, color depth, encoding)

The file is attached below, but could you tell me where I can find more info about what images are accepted, are there any changes in supported images, sizes, formats since AutoIT v3.2.12.1? Does AutoIT no longer support this sort of thing?

How do I proceed with trouble shooting this if the code is correct?

Thank you. :)

x-splash.jpg

  • Developers
Posted (edited)

How are you running this code?
Are you sure about the path to the graphics file is correct?

EDIT: the code works fine:

image.thumb.png.b64f91254b8ddf785284e8bd5ecf21fa.png

Edited by Jos

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Posted (edited)

Thanks. I managed to solve it. It was a lot of code changes required. I got the AI to find the issues and everything got resolved. Only issue now is user images not showing. But I'll see how I get on with AI first. It's actually pretty accurate most of the time, just gets lost when dealing with multiple files in a project at times.

No idea why that wouldn't work for me though?! Yes, paths, sizes, everything checked and double checked.

Edited by sl23
  • Developers
Posted (edited)

Ok...  So I try to help you and you trust AI better....  Good luck with that! ;) 

ps: Do us a favour and refrain for posting for support when you are not open for it to avoid this kind of silly situations in the future. 

Edited by Jos

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Posted (edited)
2 hours ago, sl23 said:

It's actually pretty accurate most of the time ..

Seriously? AI & AutoIt, most of the time .. 😂 ?! I doubt it!
Maybe for basic tasks, not for complex scenarios.

Next time, @sl23 please be more considerate of the fact that people here take the time to help people like you. A little more sensitivity and gratitude is certainly appropriate. It's no problem that you also work with AI - why not? But if you want to interact with people in a forum, please do so appropriately.

Best regards
Sven

Edited by SOLVE-SMART

==> AutoIt related: 🔗 GitHub, 🔗 Discord Server, 🔗 Cheat Sheet

Spoiler

🌍 Au3Forums

🎲 AutoIt (en) Cheat Sheet

📊 AutoIt limits/defaults

💎 Code Katas: [...] (comming soon)

🎭 Collection of GitHub users with AutoIt projects

🐞 False-Positives

🔮 Me on GitHub

💬 Opinion about new forum sub category

📑 UDF wiki list

✂ VSCode-AutoItSnippets

📑 WebDriver FAQs

👨‍🏫 WebDriver Tutorial (coming soon)

Posted
4 hours ago, sl23 said:

This is a crucial clue! If this minimal script does not show the splash image, the problem is:

  • Not in your code logic
  • Not in the INI file
  • But with one of:
    • The image file itself (invalid or unsupported format for AutoIt v3.3.16.1)
    • The runtime environment (permissions, display)
    • The way AutoIt handles that image in newer versions (e.g., JPEG format, color depth, encoding)
4 hours ago, sl23 said:

...since AutoIT v3.2.12.1? Does AutoIT no longer support this sort of thing?

I do crazy things. I just fixed _NowCalc() for v3.2.x.x

ConsoleWrite(_NowCalc_v32() & @CRLF)
Func _NowCalc_v32()
    Local $tLocalTime = DllStructCreate("short Year;short Month;short Dow;short Day;short Hour;short Minute;short Second;short MSeconds")
    DllCall("Kernel32.dll", "none", "GetLocalTime", "ptr", DllStructGetPtr($tLocalTime))
    If @error Then Return SetError(@error, @extended, "oops1")
    Return DllStructGetData($tLocalTime, "Year") & "/" & StringRight('00' & DllStructGetData($tLocalTime, "Month"), 2) & "/" & StringRight('00' & DllStructGetData($tLocalTime, "Day"), 2) & " " & _
            StringRight('00' & DllStructGetData($tLocalTime, "Hour"), 2) & ":" & StringRight('00' & DllStructGetData($tLocalTime, "Minute"), 2) & ":" & StringRight('00' & DllStructGetData($tLocalTime, "Second"), 2)
EndFunc   ;==>_NowCalc_v32

but I know what am doing.
The "#SingleInstance Force" from the other day, does exist, in another language.

...these AI are amazing but, they chew the internet and vomit a mix of "good luck with that" based on the training but it lacks memory and understanding.
When you make a post we help you, train you. Not the AI.

Vibe-coding is done in an agentic way, were the AI sees the error ( or you do ) and, "brute force" a solution. That's the method today. It will likely change in the future.

Anyway, that's my 2 cents, ....but you seem to need more than cents :lol:

Follow the link to my code contribution ( and other things too ).
FAQ - Please Read Before Posting.
autoit_scripter_blue_userbar.png

Posted (edited)

Github's Co-Pilot will hallucinate includes if you forgot to write the UDF in your script (half the time). And it's my favorite.

Edited by BinaryBrother

SIGNATURE_0X800007D NOT FOUND

  • Developers
Posted
5 minutes ago, sl23 said:

Ok, sorry, I didn't mean to upset everyone. I will think before I speak next time. Sorry to everyone.

Also an IA formulated answer?

This thread is done.

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

  • Jos locked this topic
Guest
This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...