Jump to content

Compiled script Icon doesn't display in Explorer window


Go to solution Solved by Jos,

Recommended Posts

Hi everyone,

So i have this weird, utterly inconsequential problem but I was wondering if anyone knew how to fix it.

I'm using #pragma compile(Icon, C:\Users\eagosta\Documents\Max_GUI\watchdog.ico) so that my compile script has a nice little icon.

Problem is, while it does work no problem and the icon shows up in the task bar when running the script as well as the top-left corner of the GUI window, it simply just does not want to display in the Windows Explorer window.

I don't really need to fix that problem but figured I'd ask if anyone has seen that before and how to fix it as it is kinda bugging me.

Thanks!

 

In the Explorer:

image.png.c317e25d79876bb37fc3f062208029bb.png

Yet when I run the script:

image.png.d406882db7c6192d529b96df6ee27655.png

image.png.c04fb2b8cfda1817c4a1c4b55b4e21d2.png

Link to comment
Share on other sites

  • Developers
  • Solution

This is likely your cache playing up here and should be fixed after reboot or Explorer restart, assuming the file really contains the ico.
This can easily be checked with ResHacker.

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.
  :)

Link to comment
Share on other sites

Hi @spacebanana,

in case @Jos answer would not lead to the expected behavior, you also could try:

#AutoIt3Wrapper_Icon=C:\Users\eagosta\Documents\Max_GUI\watchdog.ico

as an alternative to the "pragma" 😀 . Maybe this helps too.

Best regards
Sven

Stay innovative!

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)

Link to comment
Share on other sites

  • Developers
4 minutes ago, SOLVE-SMART said:

as an alternative to the "pragma" 😀 . Maybe this helps too.

Only works when the Full SciTE4AutoIt3 version is installed! :) 

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.
  :)

Link to comment
Share on other sites

1 minute ago, Jos said:

Only works when the Full SciTE4AutoIt3 version is installed! :) 

Oh really? That's new for me. Thanks for mention this! I always had installed the full version. Interesting, thanks.

Best regards
Sven

Stay innovative!

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)

Link to comment
Share on other sites

  • Developers

Well... the directive's name is a sort of give-away: #AutoIt3Wrapper_  Which mean AutoIt3Wrapper.au3 is required to be used as the shell around Run/Compile!
... and Autoit3Wrapper come with the Full SciTE4AutoIt3 installer. That is why this isn;t mentioned in the AutoIt3 helpfile where #Pragma is. ;) 

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.
  :)

Link to comment
Share on other sites

3 minutes ago, Jos said:

Well... the directive's name is a sort of give-away: #AutoIt3Wrapper_  Which mean AutoIt3Wrapper.au3 is required to be used as the shell around Run/Compile!
... and Autoit3Wrapper come with the Full SciTE4AutoIt3 installer. That is why this isn;t mentioned in the AutoIt3 helpfile where #Pragma is. ;) 

Makes totally sense!

Best regards
Sven

Stay innovative!

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)

Link to comment
Share on other sites

  • 2 weeks later...

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

  • Recently Browsing   0 members

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