Sign in to follow this  
Followers 0
tommeke228

textbox

12 posts in this topic

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 )

Share this post


Link to post
Share on other sites



Use: GUICtrlSetData() To Set The Data Of The Inputs! :D

Share this post


Link to post
Share on other sites

#4 ·  Posted (edited)

Use GuiCtrlRead to retrieve the content of the control. :D

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 textbox

Use: GUICtrlSetData() To Set The Data Of The Inputs! smile.gif

how :D

Edited by tommeke228

Share this post


Link to post
Share on other sites

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)

Share this post


Link to post
Share on other sites

Jos, he's asking: When the user types something, he wants the exact same thing to input into the other input :D

Share this post


Link to post
Share on other sites

thx xD

Share this post


Link to post
Share on other sites

#9 ·  Posted (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 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!"

Share this post


Link to post
Share on other sites

Nope GEOSoft, He wants what I have stated above. :D

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

Nope GEOSoft, He wants what I have stated above. :D

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!"

Share this post


Link to post
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
Sign in to follow this  
Followers 0