fly Posted November 8, 2005 Share Posted November 8, 2005 The program I'm writing calls another executable. I'd like to be able to hide this exe either inside my program or in a .dll or something. Is there any way to do this? Link to comment Share on other sites More sharing options...
SpookMeister Posted November 8, 2005 Share Posted November 8, 2005 sounds like your looking for FileInstall [u]Helpful tips:[/u]If you want better answers to your questions, take the time to reproduce your issue in a small "stand alone" example script whenever possible. Also, make sure you tell us 1) what you tried, 2) what you expected to happen, and 3) what happened instead.[u]Useful links:[/u]BrettF's update to LxP's "How to AutoIt" pdfValuater's Autoit 1-2-3 Download page for the latest versions of Autoit and SciTE[quote]<glyph> For example - if you came in here asking "how do I use a jackhammer" we might ask "why do you need to use a jackhammer"<glyph> If the answer to the latter question is "to knock my grandmother's head off to let out the evil spirits that gave her cancer", then maybe the problem is actually unrelated to jackhammers[/quote] Link to comment Share on other sites More sharing options...
B3TA_SCR1PT3R Posted November 8, 2005 Share Posted November 8, 2005 The program I'm writing calls another executable. I'd like to be able to hide this exe either inside my program or in a .dll or something. Is there any way to do this? just load the contents of exe[2] into the bottom of exe[1] and just switch gui's if your using em' , or make all of exe[2] a big function in exe[1] [right][font="Courier New"]...Run these streets all day, I can sleep when I die.[/font] [/right] Link to comment Share on other sites More sharing options...
Valuater Posted November 9, 2005 Share Posted November 9, 2005 here is a real good example using FileInstall() #include <GUIConstants.au3> ; install the exe $Program_1 = @TempDir & "\Temp.exe" FileInstall( @SystemDir & "\notepad.exe", $Program_1) ;Generated with Form Designer preview $Form1 = GUICreate("Form1", 414, 306, 189, 116, BitOR($WS_SYSMENU,$WS_CAPTION,$WS_CLIPCHILDREN,$WS_BORDER,$WS_CLIPSIBLINGS)) $run_exe = GUICtrlCreateButton("Run installed exe program", 100, 150, 200, 20) GUISetState(@SW_SHOW) While 1 $msg = GuiGetMsg() Select Case $msg = $GUI_EVENT_CLOSE ExitLoop Case $msg = $run_exe Run($Program_1) Case Else ;;;;;;; EndSelect WEnd Exit 8) Link to comment Share on other sites More sharing options...
MHz Posted November 9, 2005 Share Posted November 9, 2005 (edited) #include <GUIConstants.au3>; install the exe$Program_1 = @TempDir & "\Temp.exe"FileInstall( @SystemDir & "\notepad.exe", $Program_1);Generated with Form Designer preview$Form1 = GUICreate("Form1", 414, 306, 189, 116, BitOR($WS_SYSMENU,$WS_CAPTION,$WS_CLIPCHILDREN,$WS_BORDER,$WS_CLIPSIBLINGS))$run_exe = GUICtrlCreateButton("Run installed exe program", 100, 150, 200, 20)GUISetState(@SW_SHOW)While 1    $msg = GuiGetMsg()    Select    Case $msg = $GUI_EVENT_CLOSE        ExitLoop    Case $msg = $run_exe        Run($Program_1)    Case Else  ;;;;;;;    EndSelectWEndExit@Valuater, untested example?Only literals for the 1st parameter of FileInstall(). Edited November 9, 2005 by MHz Link to comment Share on other sites More sharing options...
Valuater Posted November 9, 2005 Share Posted November 9, 2005 @Valuater, untested example?Only literals for the 1st parameter of FileInstall().yes i tested itit worked fine8) Link to comment Share on other sites More sharing options...
markusss Posted November 9, 2005 Share Posted November 9, 2005 Yes indeed, fileinstall won't work like that^^: FileInstall( @SystemDir & "\notepad.exe", $Program_1) Here the text from the helpfile: Parameters source The source path of the file to compile. [b]This must be a literal string; it cannot be a variable.[/b] But besides that, the example shows everything i think Felix Link to comment Share on other sites More sharing options...
Valuater Posted November 9, 2005 Share Posted November 9, 2005 i know help says that... but did you test it? i went ahead and posted it because it worked 8) Link to comment Share on other sites More sharing options...
markusss Posted November 9, 2005 Share Posted November 9, 2005 Lol, you're right! It works.....sorry for that^^ That is strange, the other day i tried to use fileinstall with a file i had in my scriptdir but it didn't work... Felix Link to comment Share on other sites More sharing options...
Valik Posted November 9, 2005 Share Posted November 9, 2005 You can't compile a script using that syntax. Listen to the help file, it knows more than anybody else about AutoIt. Link to comment Share on other sites More sharing options...
Valuater Posted November 9, 2005 Share Posted November 9, 2005 You can't compile a script using that syntax. Listen to the help file, it knows more than anybody else about AutoIt.Your right Valik... now i remember why it says thati had that problem once when i tried to compilethanks8) Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now