autoit180 Posted November 23, 2008 Share Posted November 23, 2008 (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 November 23, 2008 by autoit180 Link to comment Share on other sites More sharing options...
Valuater Posted November 23, 2008 Share Posted November 23, 2008 I would like to see that too!!!...??? 8) Link to comment Share on other sites More sharing options...
mmavipc Posted November 23, 2008 Share Posted November 23, 2008 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 More sharing options...
Valuater Posted November 23, 2008 Share Posted November 23, 2008 lookup filewrite fileread fileopen and stringreplace in the helpfileand thats how to make a GUI compiler... right!8) Link to comment Share on other sites More sharing options...
TehWhale Posted November 23, 2008 Share Posted November 23, 2008 Make a GUI, then use my function: _CompileAu3Script. It's in meh signature. Link to comment Share on other sites More sharing options...
autoit180 Posted November 23, 2008 Author Share Posted November 23, 2008 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 More sharing options...
BrettF Posted November 23, 2008 Share Posted November 23, 2008 So what have you tried... Vist my blog!UDFs: Opens The Default Mail Client | _LoginBox | Convert Reg to AU3 | BASS.au3 (BASS.dll) (Includes various BASS Libraries) | MultiLang.au3 (Multi-Language GUIs!)Example Scripts: Computer Info Telnet Server | "Secure" HTTP Server (Based on Manadar's Server)Software: AAMP- Advanced AutoIt Media Player | WorldCam | AYTU - Youtube Uploader Tutorials: Learning to Script with AutoIt V3Projects (Hardware + AutoIt): ArduinoUseful Links: AutoIt 1-2-3 | The AutoIt Downloads Section: | SciTE4AutoIt3 Full Version! Link to comment Share on other sites More sharing options...
mmavipc Posted November 23, 2008 Share Posted November 23, 2008 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 More sharing options...
autoit180 Posted November 24, 2008 Author Share Posted November 24, 2008 (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 November 24, 2008 by autoit180 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