Jump to content

HELP! Sorry for this noob question


autoit180
 Share

Recommended Posts

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
Link to comment
Share on other sites

lookup filewrite fileread fileopen and stringreplace in the helpfile

[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

Link to comment
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?

Link to comment
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

Link to comment
Share on other sites

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
Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...