Sign in to follow this  
Followers 0
JSThePatriot

GUI Icon Question...

6 posts in this topic

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)

Share this post


Link to post
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

1100111 00001011101111 00011101101111 00010111100100 00001111110100 00110111110010 00101101111001 0011100i didn't make up this form of encryption, but i like it.credit to the lvl 6 challenge on arcanum.co.nz

Share this post


Link to post
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.

Share this post


Link to post
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)

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
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)

Share this post


Link to post
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
Sign in to follow this  
Followers 0