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 

Loading RCDATA from Resource dll

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



Joined: 27 Feb 2010
Posts: 10

PostPosted: Wed Mar 10, 2010 1:43 am    Post subject: Loading RCDATA from Resource dll Reply with quote

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
Back to top
View user's profile Send private message
SKAN



Joined: 26 Dec 2005
Posts: 8688

PostPosted: Wed Mar 10, 2010 3:29 am    Post subject: Reply with quote

Executing an Executable stored as RCDATA is not possible as of date.
Back to top
View user's profile Send private message Send e-mail
DistortioN



Joined: 27 Feb 2010
Posts: 10

PostPosted: Wed Mar 10, 2010 2:53 pm    Post subject: Reply with quote

thanks for the reply
is there maybe any other way to do it ?
Back to top
View user's profile Send private message
SKAN



Joined: 26 Dec 2005
Posts: 8688

PostPosted: Thu Mar 11, 2010 3:43 pm    Post subject: Reply with quote

Please refer AHK Documentation for FileInstall command.
Back to top
View user's profile Send private message Send e-mail
Guest






PostPosted: Thu Mar 11, 2010 10:08 pm    Post subject: Reply with quote

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 ?
Back to top
Zaelia



Joined: 31 Oct 2008
Posts: 604
Location: France

PostPosted: Fri Mar 12, 2010 1:27 am    Post subject: Reply with quote

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
Back to top
View user's profile Send private message Send e-mail
HotKeyIt



Joined: 18 Jun 2008
Posts: 4652
Location: AHK Forum

PostPosted: Fri Mar 12, 2010 5:53 am    Post subject: Reply with quote

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
Back to top
View user's profile Send private message
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