DirtDBaK Posted October 22, 2007 Share Posted October 22, 2007 (edited) How do i make script 1 compile script 2...any ideas??? Edited November 6, 2007 by DBak [center][/center] Link to comment Share on other sites More sharing options...
Moderators SmOke_N Posted October 22, 2007 Moderators Share Posted October 22, 2007 Local $sAut2exeA = @ProgramFilesDir & "\AutoIt3\Aut2Exe\Aut2exeA.exe" Run('"' & $sAut2exeA & '" /?') Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer. Link to comment Share on other sites More sharing options...
JustinReno Posted October 22, 2007 Share Posted October 22, 2007 Fileinstall the compiler in script one. Link to comment Share on other sites More sharing options...
DirtDBaK Posted October 22, 2007 Author Share Posted October 22, 2007 (edited) Fileinstall the compiler in script one.Script 1 must write out script 2 then compile script 2so no go on fileInstalland Smoke N i dont understand what your example is.... Edited October 22, 2007 by DBak [center][/center] Link to comment Share on other sites More sharing options...
Moderators SmOke_N Posted October 22, 2007 Moderators Share Posted October 22, 2007 Script 1 must write out script 2 then compile script 2so no go on fileInstalland Smoke N i dont understand what your example is....Did you run it? It provides the command line parameters you need to do what you asked. Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer. Link to comment Share on other sites More sharing options...
JustinReno Posted October 22, 2007 Share Posted October 22, 2007 Get script one to write script 2(really easy) and fileinstall the compiler on script 1 to compile script 2 (really easy) Link to comment Share on other sites More sharing options...
DirtDBaK Posted October 22, 2007 Author Share Posted October 22, 2007 (edited) i see the <infile> [outfile] but how would i write this out??? (inside a scirpt??) Edited October 22, 2007 by DBak [center][/center] Link to comment Share on other sites More sharing options...
Moderators SmOke_N Posted October 22, 2007 Moderators Share Posted October 22, 2007 Get script one to write script 2(really easy) and fileinstall the compiler on script 1 to compile script 2 (really easy)Not the right solution. Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer. Link to comment Share on other sites More sharing options...
JustinReno Posted October 22, 2007 Share Posted October 22, 2007 How come? He said he wants script 1 to write and compile script 2. Link to comment Share on other sites More sharing options...
DirtDBaK Posted October 22, 2007 Author Share Posted October 22, 2007 Not the right solution. Well I just need to do it with parameters Using Web Based AutoIt through Abyss... #Include <Web.au3> $srcfile = @Scriptdir &"\script\tmpfile.au3" If Not FileExists($srcfile) Then FileWrite($srcfile, ";Beginning code"&@CRLF) EndIf _StartWebApp("Blah") If _Post("code") Then If FileExists($scrfile) Then FileDelete( $scrfile ) FileWrite($srcfile, _Post("code")) ;Compile the $srcfile <<<<<<<<<<<<<<<<<<<<<<<<< ;How do i go about this????? EndIf echo("<form action="&$_SCRIPT_NAME&" method=POST>") echo("<textarea name=code width=400 height=400></textarea><br>") echo("<input type=submit>") [center][/center] Link to comment Share on other sites More sharing options...
DirtDBaK Posted October 22, 2007 Author Share Posted October 22, 2007 Yes justinreno but i dont want script 2 inside script 1.... [center][/center] Link to comment Share on other sites More sharing options...
JustinReno Posted October 22, 2007 Share Posted October 22, 2007 Ask Spyrorocks. Link to comment Share on other sites More sharing options...
DirtDBaK Posted October 22, 2007 Author Share Posted October 22, 2007 Ask Spyrorocks.Maybe I should just drop the project apparently no one knows how to do wut im talking about,smoke n gave me the parameter format just not sure how to use it... [center][/center] Link to comment Share on other sites More sharing options...
DirtDBaK Posted October 23, 2007 Author Share Posted October 23, 2007 (edited) still need to know how to use these parameters.......here is an example of it in actionhttp://65.31.38.216/test.au3#Include <Web.au3> $srcfile = @Scriptdir &"\script\tmpfile.au3" If Not FileExists($srcfile) Then FileWrite($srcfile, ";Beginning code"&@CRLF) EndIf _StartWebApp("Blah") If _Post("code") Then ;ADD FILE OPEN HERE???? ;If FileExists($scrfile) Then FileDelete( $scrfile ) FileWrite($srcfile,@CRLF & _Post("code")) echo("<P>Your Message was sent:</p>" ) echo(_Post("code")) ;ADD FILE CLOSE HERE??? EndIf echo("<form action="&$_SCRIPT_NAME&" method=POST>") echo("<textarea name=code width=400 height=400></textarea><br>") echo("<input type=submit>") Edited October 23, 2007 by DBak [center][/center] Link to comment Share on other sites More sharing options...
Uten Posted October 23, 2007 Share Posted October 23, 2007 (edited) Local $sAut2exeA = @ProgramFilesDir & "\AutoIt3\Aut2Exe\Aut2exeA.exe" Run('"' & $sAut2exeA & '" /?')Somewhere in your code you will have to add the two lines and replace /? with something. Where would you do that? maybe make a list of the parameters you don't understand? EDIT: spelling. Edited October 23, 2007 by Uten Please keep your sig. small! Use the help file. Search the forum. Then ask unresolved questions :) Script plugin demo, Simple Trace udf, TrayMenuEx udf, IOChatter demo, freebasic multithreaded dll sample, PostMessage, Aspell, Code profiling Link to comment Share on other sites More sharing options...
DirtDBaK Posted October 23, 2007 Author Share Posted October 23, 2007 Somewhere in your code you will have to add the two lines and replace /? with something. Where would you do that? maybe make a list of the parameters you don't understand?EDIT: spelling.umm lets say i have script 2 which is $srcfile and the exe can be named whatever idc...just need to know how to setup parameters [center][/center] Link to comment Share on other sites More sharing options...
GEOSoft Posted October 23, 2007 Share Posted October 23, 2007 Have a look at Method 3 here.Compiling AutoIt George Question about decompiling code? Read the decompiling FAQ and don't bother posting the question in the forums.Be sure to read and follow the forum rules. -AKA the AutoIt Reading and Comprehension Skills test.*** The PCRE (Regular Expression) ToolKit for AutoIT - (Updated Oct 20, 2011 ver:3.0.1.13) - Please update your current version before filing any bug reports. The installer now includes both 32 and 64 bit versions. No change in version number. Visit my Blog .. currently not active but it will soon be resplendent with news and views. Also please remove any links you may have to my website. it is soon to be closed and replaced with something else. "Old age and treachery will always overcome youth and skill!" Link to comment Share on other sites More sharing options...
Moderators SmOke_N Posted October 23, 2007 Moderators Share Posted October 23, 2007 Just for giggles, I put this in Google:"AutoIt3\Aut2Exe\Aut2exe+smoke_n"And one of the topics:http://www.autoitscript.com/forum/index.ph...st&p=254496I even have an example.... and a more elaborate example in that post it links to in the edit there.http://www.autoitscript.com/forum/index.ph...st&p=254496http://www.autoitscript.com/forum/index.ph...st&p=239960Of course the decompile isn't going to work anymore... but that should be more than enough of a hand feed there . Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer. 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