Sign in to follow this  
Followers 0
DirtDBaK

How do i make script 1 compile script 2

18 posts in this topic

#1 ·  Posted (edited)

How do i make script 1 compile script 2...any ideas???

Edited by DBak

[center][/center]

Share this post


Link to post
Share on other sites



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.

Share this post


Link to post
Share on other sites

Fileinstall the compiler in script one.

Share this post


Link to post
Share on other sites

#4 ·  Posted (edited)

Fileinstall the compiler in script one.

Script 1 must write out script 2 then compile script 2

so no go on fileInstall

and Smoke N i dont understand what your example is....

Edited by DBak

[center][/center]

Share this post


Link to post
Share on other sites

Script 1 must write out script 2 then compile script 2

so no go on fileInstall

and 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.

Share this post


Link to post
Share on other sites

Get script one to write script 2(really easy) and fileinstall the compiler on script 1 to compile script 2 (really easy)

Share this post


Link to post
Share on other sites

#7 ·  Posted (edited)

i see the <infile> [outfile] but how would i write this out??? (inside a scirpt??)

Edited by DBak

[center][/center]

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

How come? He said he wants script 1 to write and compile script 2.

Share this post


Link to post
Share on other sites

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]

Share this post


Link to post
Share on other sites

Yes justinreno but i dont want script 2 inside script 1....


[center][/center]

Share this post


Link to post
Share on other sites

Ask Spyrorocks.

Share this post


Link to post
Share on other sites

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]

Share this post


Link to post
Share on other sites

#14 ·  Posted (edited)

still need to know how to use these parameters.......

here is an example of it in action

http://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 by DBak

[center][/center]

Share this post


Link to post
Share on other sites

#15 ·  Posted (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 by Uten

Share this post


Link to post
Share on other sites

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]

Share this post


Link to post
Share on other sites

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!"

Share this post


Link to post
Share on other sites

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=254496

I 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=254496

http://www.autoitscript.com/forum/index.ph...st&p=239960

Of 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.

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0