Jump to content

Recommended Posts

Posted

Can an AutoIt script, or any program for that matter contain more than one icon? I would like one to display beside the program in file explorers, and another one to be the icon of the main program.

Is this possible? I tried checking out GUICtrlCreateIcon, but that didnt work out :whistle:.

TIA

JS

AutoIt Links

File-String Hash Plugin Updated! 04-02-2008 Plugins have been discontinued. I just found out.

ComputerGetInfo UDF's Updated! 11-23-2006

External Links

Vortex Revolutions Engineer / Inventor (Web, Desktop, and Mobile Applications, Hardware Gizmos, Consulting, and more)

Posted

Can an AutoIt script, or any program for that matter contain more than one icon? I would like one to display beside the program in file explorers, and another one to be the icon of the main program.

Is this possible? I tried checking out GUICtrlCreateIcon, but that didnt work out :whistle:.

TIA

JS

<{POST_SNAPBACK}>

check out resource hacker, you MAY be able to accomplish what you want that way
Posted

By "icon of the main program" I assume you mean the icon in the titlebar? I believe that's what GUISetIcon is for. You will have to fileinstall that icon though.

Some pseudo code (assumes fileIcon.ico and mainIcon.ico exist):

FileInstall('mainIcon.ico', 'mainIcon.ico')
GuiCreate('Title')
GuiSetIcon('mainIcon.ico')
GuiSetState()
...etc...

Then when you compile, set Aut2Exe to use fileIcon.ico.

Posted

I should add one thing though, it appears that GuiSetIcon isn't perfect. For some reason it distorts the icon (looks like it was resized, even if the only format in your icon is 16x16 pixels), I haven't been able to find a way around this problem yet.

Posted

I appreciate the warning, but that was the trouble I was having in the first place. I had one icon that looked decent being there and one that looked decent in icon view.

JS

AutoIt Links

File-String Hash Plugin Updated! 04-02-2008 Plugins have been discontinued. I just found out.

ComputerGetInfo UDF's Updated! 11-23-2006

External Links

Vortex Revolutions Engineer / Inventor (Web, Desktop, and Mobile Applications, Hardware Gizmos, Consulting, and more)

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
  • Recently Browsing   0 members

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