JSThePatriot Posted August 12, 2005 Share Posted August 12, 2005 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 . 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 More sharing options...
seandisanti Posted August 12, 2005 Share Posted August 12, 2005 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 .TIAJS<{POST_SNAPBACK}>check out resource hacker, you MAY be able to accomplish what you want that way Link to comment Share on other sites More sharing options...
therks Posted August 12, 2005 Share Posted August 12, 2005 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. My AutoIt Stuff | My Github Link to comment Share on other sites More sharing options...
JSThePatriot Posted August 12, 2005 Author Share Posted August 12, 2005 I do believe that is what I needed. I missed that one . 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 More sharing options...
therks Posted August 12, 2005 Share Posted August 12, 2005 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. My AutoIt Stuff | My Github Link to comment Share on other sites More sharing options...
JSThePatriot Posted August 13, 2005 Author Share Posted August 13, 2005 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 More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now