sumit Posted July 29, 2007 Posted July 29, 2007 I have prepared a script . Example : expandcollapse popup#include <GUIConstants.au3> $Form1 = GUICreate("Current Paramenter Value", 414, 205, 347, 258) GUISetIcon("D:03.ico") $GroupBox1 = GUICtrlCreateGroup("", 21, 41, 361, 105) $Label1 = GUICtrlCreateLabel("HELLO", 149, 73, 109, 40) GUICtrlSetFont(-1, 24, 400, 0, "Arial") GUICtrlCreateGroup("", -99, -99, 1, 1) GUISetState(@SW_SHOW) While 1 $nMsg = GUIGetMsg() Switch $nMsg Case $GUI_EVENT_CLOSE Exit EndSwitch WEnd [\code] now I very often need to change a parameter in the script and recompile it . But I dont want to always open SCITE Editor everytime. can I make a exe that would show a gui with input box for the parameter to be modified , A Save button and a compile button. pressing save button would modify the parameter value in the script and pressing compile button would compile the script. The Gui would look something like this. #include <GUIConstants.au3> $Form1 = GUICreate("Modify Parameter", 318, 237, 347, 267) GUISetIcon("D:03.ico") $GroupBox1 = GUICtrlCreateGroup("", 8, 1, 297, 193) GUICtrlCreateInput("", 64, 88, 177, 21) GUICtrlCreateGroup("", -99, -99, 1, 1) $Button1 = GUICtrlCreateButton("&Save", 65, 203, 75, 25, 0) $Button2 = GUICtrlCreateButton("&Compile", 162, 203, 75, 25, 0) GUISetState(@SW_SHOW) While 1 $nMsg = GUIGetMsg() Switch $nMsg Case $GUI_EVENT_CLOSE Exit EndSwitch WEnd What I cant figure out is how to edit and compile the script invisibly. Would really appreciate if you could help with the code.
PsaltyDS Posted July 29, 2007 Posted July 29, 2007 I have prepared a script .Example :; ... now I very often need to change a parameter in the script and recompile it . But I dont want to always open SCITE Editor everytime. can I make a exe that would show a gui with input box for the parameter to be modified , A Save button and a compile button. pressing save button would modify the parameter value in the script and pressing compile button would compile the script.The Gui would look something like this.; ...What I cant figure out is how to edit and compile the script invisibly.Would really appreciate if you could help with the code.Egad! Why would you want such an awful kludge? Put a default value in the script, and have it check an .ini file, registry setting, or environment variable for alternative values. Edit/Compile seems absurd. Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law
Infinitex0 Posted July 29, 2007 Posted July 29, 2007 o.O what he said, I just compile once I'm completely COMPLETELY done (well with that version anyway). The below statement is False.The above statement is True.a lesson I learned from Greenmachine; give a man a code and he'll solve one problem. Teach a man to code and he'll solve all his problems.P.S please don't use autoIt as a virus creator/spyware maker(keyLogger especially)Cick this and help me[center]My Scripts:[/center][center]Port Scanner[/center]
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