Jump to content

GUI Icon Question...


Recommended Posts

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)

Link to comment
Share on other sites

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

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.

Link to comment
Share on other sites

I do believe that is what I needed. I missed that one :whistle:.

Thanks,

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)

Link to comment
Share on other sites

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)

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

  • Recently Browsing   0 members

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