Sign in to follow this  
Followers 0
autoit180

HELP! Sorry for this noob question

9 posts in this topic

#1 ·  Posted (edited)

hi , really new here , so sorry for noob question.

1)I need to make GUI that will pass user input values to already written script and then compile an executable from this script.

How do I exactly do that? (please show me an example script)

2)How can I make that when some checkbox is checked in the GUI - the GUI will pass command to include some additional piece of code , in particular location within the code

thanks

Edited by autoit180

Share this post


Link to post
Share on other sites



I would like to see that too!!!...??? :)

8)


NEWHeader1.png

Share this post


Link to post
Share on other sites

lookup filewrite fileread fileopen and stringreplace in the helpfile

and thats how to make a GUI compiler

... right!

8)


NEWHeader1.png

Share this post


Link to post
Share on other sites

Make a GUI, then use my function: _CompileAu3Script. It's in meh signature.

Share this post


Link to post
Share on other sites

If I understand right - I send stings to the ready variables in prewritten script.au3 using filewrite fileread fileopen and stringreplace through GUI and then call _CompileAu3Script from GUI script to compile an executable from the modified script?

Can you give me some simplest script just to get the idea how to do it?

Share this post


Link to post
Share on other sites

If I understand right - I send stings to the ready variables in prewritten script.au3 using filewrite fileread fileopen and stringreplace through GUI and then call _CompileAu3Script from GUI script to compile an executable from the modified script?

Can you give me some simplest script just to get the idea how to do it?

heres some psudo code

create gui here
input1 here
button compile here
Loop below
if button is pressed then
read template.au3 file
replace string in template.au3 file "<<replace1>>" with the stuff in input1
save new template.au3 as tobecompiled.au3
compile tobecompiled.au3

the stuff in template.au3 is

msgbox(0,"Title","<<replace1>>")

Hope this helps just post if you need any clarification


[size="10"]Pure Au3 crypt funcs(I'm currently also working on making a dll from this)[/size][Y] Be more active in the community[Y] Get 200 posts[N] Get 300 posts[N] Make a Topic in the example scripts forum with at least 50 replies.People who currently hate me:ValikSmOke_N

Share this post


Link to post
Share on other sites

#9 ·  Posted (edited)

Hi , tried to make a script that transfers variables from GUI to template au3 file called pc.au3 - no success

Here is the code of loop after GUI was created it seems file pc.au is not opened to write new variables in it , something is missing in the code.

I need actually to transfer new variables values from input in GUI to $input in prewritten pc.au with clicking button1

While 1
        $msg = GUIGetMsg()
        Select
            Case $msg = $GUI_EVENT_CLOSE
                ExitLoop
            Case $msg = $Button1
                $file = FileOpen( @ScriptDir & "\pc.au3", 1)
                StringReplace ( $Input1, "" , $Input1  )
                StringReplace ( $Input2, "" , $Input2  )
                StringReplace ( $Input3, "" , $Input3  )
                StringReplace ( $Input4, "" , $Input4  )
                StringReplace ( $Input5, "" , $Input5  )
                StringReplace ( $Input6, "" , $Input6  )


            Case $msg = $Button2
                MsgBox(0, 'Testing', 'Button 2 was pressed')  ; Will demonstrate Button 2 being pressed
        EndSelect
    WEnd
Edited by autoit180

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