AutoHotkey Community

It is currently May 27th, 2012, 5:30 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 7 posts ] 
Author Message
PostPosted: March 10th, 2010, 2:43 am 
Offline

Joined: February 27th, 2010, 9:04 pm
Posts: 10
I tryed to look on the forum but i have a script thats made out of 3 separate programs. I want them to load trough a dll.

I use this simple label to load and close the exe :
NumMenuStart:
run, data\Spam 1.exe
Return

NumMenuQuit:
Process, Close, Spam 1.exe
Reload

ive made up a resource dll, looked into the dllcall code but cant figure it out.
is it possible to do this ? and can anybody help me on that?

thanks


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: March 10th, 2010, 4:29 am 
Offline
User avatar

Joined: December 26th, 2005, 4:40 pm
Posts: 8776
Executing an Executable stored as RCDATA is not possible as of date.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: March 10th, 2010, 3:53 pm 
Offline

Joined: February 27th, 2010, 9:04 pm
Posts: 10
thanks for the reply
is there maybe any other way to do it ?


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: March 11th, 2010, 4:43 pm 
Offline
User avatar

Joined: December 26th, 2005, 4:40 pm
Posts: 8776
Please refer AHK Documentation for FileInstall command.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: March 11th, 2010, 11:08 pm 
thanks again for the reply ..
the FileInstall seems intresting, but there its not stated how to retrive the exe stored in a resource dll
somebody have an example for that ?


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: March 12th, 2010, 2:27 am 
Offline
User avatar

Joined: October 31st, 2008, 9:39 am
Posts: 641
Location: France
If you use FileInstall you don't need a dll, because your compiled version of script have your exe in your exe...

when you launch your exe, at line FileInstall the apps wright to your hard disk the embed exe...

Code:
FileInstall, C:\My Documents\My File.txt, %A_ProgramFiles%\My Application\Readme.txt, 1
Run, %A_ProgramFiles%\My Application\Readme.txt


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: March 12th, 2010, 6:53 am 
Offline

Joined: June 18th, 2008, 8:36 am
Posts: 4923
Location: AHK Forum
Have a look at AutoHotkey_H.exe, there is MemoryLoadLibrary and ResourceLoadLibrary (for compiled script).
See AhkDllThread() function for example how to use.

There is also FileExtractToMem()

_________________
AHK_H (2alpha) AHF TT _Struct WatchDir Yaml _Input ObjTree RapidHotkey DynaRun :wink:


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

All times are UTC [ DST ]


Who is online

Users browsing this forum: Bing [Bot], dra, HotkeyStick, rbrtryn, Yahoo [Bot] and 68 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