AutoHotkey Community

It is currently May 26th, 2012, 9:41 pm

All times are UTC [ DST ]




Post new topic Reply to topic  [ 12 posts ] 
Author Message
 Post subject: How to embed a logo?
PostPosted: September 16th, 2009, 6:49 pm 
Offline

Joined: July 6th, 2009, 9:58 pm
Posts: 678
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!


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: September 16th, 2009, 6:50 pm 
you mean the icon???


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: September 16th, 2009, 6:52 pm 
Offline

Joined: July 6th, 2009, 9:58 pm
Posts: 678
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/viewtop ... embed+logo

However, that's way more than I'm probably willing to go for on this. Is there a simpler way?


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: September 16th, 2009, 6:53 pm 
wow, i dodnt know that could be done..maybe ill use that ^^


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: September 16th, 2009, 8:50 pm 
Offline

Joined: April 8th, 2009, 7:49 pm
Posts: 6065
Location: San Diego, California
@randallf

Have you seen the command FileInstall ?
-- Includes the specified file inside the compiled version of the script.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: September 16th, 2009, 8:51 pm 
lol, he doesnt want that, nothing for creating a file, just using data to create a bitmap


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: September 16th, 2009, 9:50 pm 
Offline

Joined: April 8th, 2009, 7:49 pm
Posts: 6065
Location: San Diego, California
:oops: Guess I need new glasses. :wink: Thanks for the heads-up Guest.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: September 19th, 2009, 9:31 am 
Offline

Joined: August 14th, 2009, 2:40 pm
Posts: 237
Location: Finland
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...


Report this post
Top
 Profile  
Reply with quote  
 Post subject: Re: How to embed a logo?
PostPosted: September 19th, 2009, 4:17 pm 
Online
User avatar

Joined: December 26th, 2005, 4:40 pm
Posts: 8776
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/viewtop ... 202#147202


Report this post
Top
 Profile  
Reply with quote  
 Post subject: Re: How to embed a logo?
PostPosted: September 20th, 2009, 12:36 pm 
Offline

Joined: June 17th, 2008, 7:51 am
Posts: 243
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/viewtop ... 202#147202
Or you can use Compile_AHK II and insert your logo as icon or as resource into your compiled script.

_________________
Greetings
Rog


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: September 21st, 2009, 5:58 am 
Offline

Joined: April 8th, 2009, 7:49 pm
Posts: 6065
Location: San Diego, California
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. :oops:

Randallf wrote:
I don't want it unpacking the logo file when the exe is run (fileinstall),


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: September 21st, 2009, 12:04 pm 
Offline

Joined: August 14th, 2009, 2:40 pm
Posts: 237
Location: Finland
Oh, then I was right, but wrong about FileInstall :oops:
Anyways, the Compile_AHK advice is probably the best.


Report this post
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 12 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: BrandonHotkey, JSLover, patgenn123, rbrtryn, virpara, Yahoo [Bot] and 59 guests


You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group