tommeke228 Posted April 24, 2008 Share Posted April 24, 2008 now i have this prblm $textbox3 = GUICtrlCreateInput("", 224, 248, 121, 21) $textbox2 = GUICtrlCreateInput("", 64, 248, 121, 21) Func rename() WinSetTitle ($textbox2,"",$textbox3 ) EndFunc but its not working (its not renaming ) Link to comment Share on other sites More sharing options...
Developers Jos Posted April 24, 2008 Developers Share Posted April 24, 2008 Use GuiCtrlRead to retrieve the content of the control. 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...
Swift Posted April 24, 2008 Share Posted April 24, 2008 Use: GUICtrlSetData() To Set The Data Of The Inputs! Link to comment Share on other sites More sharing options...
tommeke228 Posted April 24, 2008 Author Share Posted April 24, 2008 (edited) Use GuiCtrlRead to retrieve the content of the control. is it like this$textbox3 = GUICtrlCreateInput("", 224, 248, 121, 21)$textbox2 = GUICtrlCreateInput("", 64, 248, 121, 21)$text2 = GuiCtrlRead ($textbox2)$text3 = GuiCtrlRead ($textbox3)this must work if user add something in textboxUse: GUICtrlSetData() To Set The Data Of The Inputs! smile.gif how Edited April 24, 2008 by tommeke228 Link to comment Share on other sites More sharing options...
Swift Posted April 24, 2008 Share Posted April 24, 2008 You want to mimic the text that's typing into one box, and put it into the other one too? I'm not sure the best way to go, but you will need this: $Text1=GUICtrlRead($Textbox3) GUICtrlSetDate($TextBox2, $Text1) Link to comment Share on other sites More sharing options...
Developers Jos Posted April 24, 2008 Developers Share Posted April 24, 2008 No idea what you are asking Tommeke. 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...
Swift Posted April 24, 2008 Share Posted April 24, 2008 Jos, he's asking: When the user types something, he wants the exact same thing to input into the other input Link to comment Share on other sites More sharing options...
tommeke228 Posted April 24, 2008 Author Share Posted April 24, 2008 thx xD Link to comment Share on other sites More sharing options...
GEOSoft Posted April 24, 2008 Share Posted April 24, 2008 (edited) I agree with Jos, we need a little more explanation her. That is unless Swift can come up with some scenario where a user would want to have two input controls, on the same GUI, containing the same information. I suspect that (a.) you are talking about input controls on two different windows OR (b.) you are talking about copying the text from an input to another control such as an edit control or a listview. Edited April 24, 2008 by GEOSoft George Question about decompiling code? Read the decompiling FAQ and don't bother posting the question in the forums.Be sure to read and follow the forum rules. -AKA the AutoIt Reading and Comprehension Skills test.*** The PCRE (Regular Expression) ToolKit for AutoIT - (Updated Oct 20, 2011 ver:3.0.1.13) - Please update your current version before filing any bug reports. The installer now includes both 32 and 64 bit versions. No change in version number. Visit my Blog .. currently not active but it will soon be resplendent with news and views. Also please remove any links you may have to my website. it is soon to be closed and replaced with something else. "Old age and treachery will always overcome youth and skill!" Link to comment Share on other sites More sharing options...
Swift Posted April 24, 2008 Share Posted April 24, 2008 Nope GEOSoft, He wants what I have stated above. Link to comment Share on other sites More sharing options...
tommeke228 Posted April 24, 2008 Author Share Posted April 24, 2008 bah it worked the thing but now i gona use this one xD and this one works $rename = GUICtrlCreateButton("Rename", 16, 248, 145, 25, 0) Func rename() $click11 = InputBox( "Message", "Type the name of youre Client","Sro_Client") $click22 = InputBox( "Message", "Type the name of renamed Client","") WinSetTitle ($click11,"",$click22) EndFunc Link to comment Share on other sites More sharing options...
GEOSoft Posted April 24, 2008 Share Posted April 24, 2008 Nope GEOSoft, He wants what I have stated above. In that case he has one very redundant input control. George Question about decompiling code? Read the decompiling FAQ and don't bother posting the question in the forums.Be sure to read and follow the forum rules. -AKA the AutoIt Reading and Comprehension Skills test.*** The PCRE (Regular Expression) ToolKit for AutoIT - (Updated Oct 20, 2011 ver:3.0.1.13) - Please update your current version before filing any bug reports. The installer now includes both 32 and 64 bit versions. No change in version number. Visit my Blog .. currently not active but it will soon be resplendent with news and views. Also please remove any links you may have to my website. it is soon to be closed and replaced with something else. "Old age and treachery will always overcome youth and skill!" 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