Jump to content

textbox


Recommended Posts

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
Link to comment
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)
Link to comment
Share on other sites

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

Link to comment
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

Link to comment
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!"

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...