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 

How to embed a logo?

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



Joined: 06 Jul 2009
Posts: 678

PostPosted: Wed Sep 16, 2009 5:49 pm    Post subject: How to embed a logo? Reply with quote

Hello all,

I want to embed a small logo file into my compiled exe. As I don't want random BMP files hanging around (they may launch this from anywhere) I don't want it unpacking the logo file when the exe is run (fileinstall), I'd just like to embed the file into the executable itself.

Is there any way to do this? Thank you!
Back to top
View user's profile Send private message
Guest






PostPosted: Wed Sep 16, 2009 5:50 pm    Post subject: Reply with quote

you mean the icon???
Back to top
randallf



Joined: 06 Jul 2009
Posts: 678

PostPosted: Wed Sep 16, 2009 5:52 pm    Post subject: Reply with quote

Anonymous wrote:
you mean the icon???


I mean a BMP file, not an ICO file. I use icons already, but I want to add a logo.

I found this: http://www.autohotkey.com/forum/viewtopic.php?t=29770&highlight=embed+logo

However, that's way more than I'm probably willing to go for on this. Is there a simpler way?
Back to top
View user's profile Send private message
Guest






PostPosted: Wed Sep 16, 2009 5:53 pm    Post subject: Reply with quote

wow, i dodnt know that could be done..maybe ill use that ^^
Back to top
Leef_me



Joined: 08 Apr 2009
Posts: 5336
Location: San Diego, California

PostPosted: Wed Sep 16, 2009 7:50 pm    Post subject: Reply with quote

@randallf

Have you seen the command FileInstall ?
-- Includes the specified file inside the compiled version of the script.
Back to top
View user's profile Send private message
Guest






PostPosted: Wed Sep 16, 2009 7:51 pm    Post subject: Reply with quote

lol, he doesnt want that, nothing for creating a file, just using data to create a bitmap
Back to top
Leef_me



Joined: 08 Apr 2009
Posts: 5336
Location: San Diego, California

PostPosted: Wed Sep 16, 2009 8:50 pm    Post subject: Reply with quote

Embarassed Guess I need new glasses. Wink Thanks for the heads-up Guest.
Back to top
View user's profile Send private message
AnttiV



Joined: 14 Aug 2009
Posts: 237
Location: Finland

PostPosted: Sat Sep 19, 2009 8:31 am    Post subject: Reply with quote

I'd have offered the same advice as Leef_me. Correct me if I'm wrong but isn't FileInstall exactly what the OP asked?

OP wrote:
I want to embed a small logo file into my compiled exe...
Back to top
View user's profile Send private message Visit poster's website Yahoo Messenger MSN Messenger
SKAN



Joined: 26 Dec 2005
Posts: 8688

PostPosted: Sat Sep 19, 2009 3:17 pm    Post subject: Re: How to embed a logo? Reply with quote

randallf wrote:
I want to embed a small logo file into my compiled exe.


You can add the image as BITMAP resource into your EXE with ResHacker. The following post has examples to refer EXE resources.
http://www.autohotkey.com/forum/viewtopic.php?p=147202#147202
Back to top
View user's profile Send private message Send e-mail
ruespe



Joined: 17 Jun 2008
Posts: 243

PostPosted: Sun Sep 20, 2009 11:36 am    Post subject: Re: How to embed a logo? Reply with quote

SKAN wrote:
randallf wrote:
I want to embed a small logo file into my compiled exe.


You can add the image as BITMAP resource into your EXE with ResHacker. The following post has examples to refer EXE resources.
http://www.autohotkey.com/forum/viewtopic.php?p=147202#147202
Or you can use Compile_AHK II and insert your logo as icon or as resource into your compiled script.
_________________
Greetings
Rog
Back to top
View user's profile Send private message
Leef_me



Joined: 08 Apr 2009
Posts: 5336
Location: San Diego, California

PostPosted: Mon Sep 21, 2009 4:58 am    Post subject: Reply with quote

AnttiV wrote:
I'd have offered the same advice as Leef_me. Correct me if I'm wrong but isn't FileInstall exactly what the OP asked?

OP wrote:
I want to embed a small logo file into my compiled exe...


You & me, is wrong. Embarassed

Randallf wrote:
I don't want it unpacking the logo file when the exe is run (fileinstall),
Back to top
View user's profile Send private message
AnttiV



Joined: 14 Aug 2009
Posts: 237
Location: Finland

PostPosted: Mon Sep 21, 2009 11:04 am    Post subject: Reply with quote

Oh, then I was right, but wrong about FileInstall Embarassed
Anyways, the Compile_AHK advice is probably the best.
Back to top
View user's profile Send private message Visit poster's website Yahoo Messenger MSN Messenger
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