lifesux Posted December 22, 2011 Share Posted December 22, 2011 Hi guys.first i want to say sorry for my bad english please try to understand what i want to do...i want to do a script which i can set the other scripts(exe) settings.like that,first user will download my exe its a gui like that : #include <ButtonConstants.au3> #include <EditConstants.au3> #include <GUIConstantsEx.au3> #include <WindowsConstants.au3> #Region ### START Koda GUI section ### Form= $Form1 = GUICreate("Form1", 200, 118, 263, 231) $Input1 = GUICtrlCreateInput("Name", 16, 8, 161, 24) $Button1 = GUICtrlCreateButton("Save", 64, 72, 75, 25, $WS_GROUP) $Input2 = GUICtrlCreateInput("Age", 16, 40, 161, 24) GUISetState(@SW_SHOW) #EndRegion ### END Koda GUI section ###[/b] [b]While 1 $nMsg = GUIGetMsg() Switch $nMsg Case $GUI_EVENT_CLOSE Exit[/b] [b]EndSwitch WEnduser will write name and age then click save button. save button must create a new exe like that function : Send("usersname") Send("usersage")how can i do it ? Please help me.Thanks Link to comment Share on other sites More sharing options...
JohnOne Posted December 22, 2011 Share Posted December 22, 2011 I'm not 100% certain what you are asking, or if my answer is accurate. I think Autoit needs to be installed for a script to be compiled on a machine. And perhaps you are looking for $CmdLine[] array which any compiles autoit script can take arguments/parameters from. Search 'commandline' in help file for more details. AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans. Link to comment Share on other sites More sharing options...
lifesux Posted December 22, 2011 Author Share Posted December 22, 2011 (edited) I'm not 100% certain what you are asking, or if my answer is accurate. I think Autoit needs to be installed for a script to be compiled on a machine. And perhaps you are looking for $CmdLine[] array which any compiles autoit script can take arguments/parameters from. Search 'commandline' in help file for more details. I am noob at autoit. can you try then write to code here please ? or if we cant do what i want can we do that? : we have one exe and one .au3 file. can we change the .au3 code with exe ? like that we have a exe : #include <ButtonConstants.au3> #include <EditConstants.au3> #include <GUIConstantsEx.au3> #include <WindowsConstants.au3> #Region ### START Koda GUI section ### Form= $Form1 = GUICreate("Form1", 200, 118, 263, 231) $Input1 = GUICtrlCreateInput("Name", 16, 8, 161, 24) $Button1 = GUICtrlCreateButton("Save", 64, 72, 75, 25, $WS_GROUP) $Input2 = GUICtrlCreateInput("Age", 16, 40, 161, 24) GUISetState(@SW_SHOW) #EndRegion ### END Koda GUI section ###[/b] [b]While 1 $nMsg = GUIGetMsg() Switch $nMsg Case $GUI_EVENT_CLOSE Exit[/b] [b]EndSwitch WEnd user will write name age and then press save button. the second file .au3 file ( not exe ) must change like that : Send("usersname") Send("usersage") its .au3 not exe like first . Edited December 22, 2011 by lifesux Link to comment Share on other sites More sharing options...
Developers Jos Posted December 22, 2011 Developers Share Posted December 22, 2011 I am noob at autoit. can you try then write to code here please ?You're kidding...right? SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
JohnOne Posted December 22, 2011 Share Posted December 22, 2011 lol Sorry I don't have time to write code for you. You can change the contents of an .au3 file by using the FileWrite() function amongst others. AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans. Link to comment Share on other sites More sharing options...
lifesux Posted December 22, 2011 Author Share Posted December 22, 2011 You're kidding...right?Sorry . I dont know its a hard code. Link to comment Share on other sites More sharing options...
Developers Jos Posted December 22, 2011 Developers Share Posted December 22, 2011 Give it a try and come back when you have something to show for and have a issue with what you are working on. SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
lifesux Posted December 22, 2011 Author Share Posted December 22, 2011 (edited) I am trying FileWrite but filewrite command writes random. i want to write "here" ( example ) xxxxxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxxxxxxxxxxxxxx here xxxxxxxxxxxxxxxxxxxxxxxxxx how can i do that ? Edited December 22, 2011 by lifesux Link to comment Share on other sites More sharing options...
Developers Jos Posted December 22, 2011 Developers Share Posted December 22, 2011 what have you tried that isn't working? Show me some code SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. 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