AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Can the tray icon be compiled into the exe file...

 
Reply to topic    AutoHotkey Community Forum Index -> Ask for Help
View previous topic :: View next topic  
Author Message
szekelya



Joined: 15 Dec 2008
Posts: 13

PostPosted: Mon Dec 15, 2008 3:19 pm    Post subject: Can the tray icon be compiled into the exe file... Reply with quote

..so that I won't have to provide external icon files together with the compiled exe?

In some cases I need two tray icons, to show if the script is running or suspended, so linking to the exe's compiled icon alone would not be a solution.

many thx
Andras
Back to top
View user's profile Send private message
Dra_Gon



Joined: 25 May 2007
Posts: 373

PostPosted: Mon Dec 15, 2008 4:39 pm    Post subject: Reply with quote

Take a look at this in the Docs {section under "Menu"}:
"Change the Tray Icon or ToolTip".

I think this might be what you're looking for. Plus, when you compile a script, you can use "FileInstall" so your icons will always be with the EXE you've compiled. You can also use icons which are generally included with Windows OS's. These files have some good ones:
C:\WINNT\system32\SHELL32.dll
C:\WINNT\system32\compstui.dll
C:\WINNT\system32\comres.dll
C:\WINNT\system32\ddeshare.exe

Ciao,
Dra'Gon
_________________

For a good laugh {hopefully} >> megamatts.50megs.com

My WritersCafe profile>>
http://www.writerscafe.org/writers/BlueDragonFire/
Back to top
View user's profile Send private message Send e-mail
szekelya



Joined: 15 Dec 2008
Posts: 13

PostPosted: Mon Dec 15, 2008 7:33 pm    Post subject: Reply with quote

FileInstall is not really what I'm looking for, because it will recreate the external icons after the script is first run, and my aim is to have a single exe file, no icons.

Using the OS built in icon libraries might be a good idea, I thought about that, but I think it's OS specific. Or do we have the same or equivalent icons in shell32.dll in XP and Vista?
Back to top
View user's profile Send private message
Slanter



Joined: 28 May 2008
Posts: 739
Location: Minnesota, USA

PostPosted: Mon Dec 15, 2008 8:57 pm    Post subject: Reply with quote

Check out this:
_________________
Unless otherwise stated, all code is untested

(\__/) This is Bunny.
(='.'=) Cut, copy, and paste bunny onto your sig.
(")_(") Help Bunny gain World Domination.
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Reply to topic    AutoHotkey Community Forum Index -> Ask for Help All times are GMT
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group