Jump to content

erase a data from a textbox


motormad
 Share

Recommended Posts

I would like to overreide data in a textbox

I i double klik in the textbox then ell of the data is highlited.

so i try

ControlClick("[title:bon; CLASS:ThunderRT5Form]", "", "[CLASS:ThunderRT5TextBox; INSTANCE:34]", 2)

then i hit the delete button with

ControlSend("[title:bon; CLASS:ThunderRT5Form]", "", "[CLASS:ThunderRT5TextBox; INSTANCE:34]", "{DEL}")

but it would not work.

i also try this ,

ControlClick("[title:bon; CLASS:ThunderRT5Form]", "", "[CLASS:ThunderRT5TextBox; INSTANCE:34]", 2)
ControlFocus("[title:bon; CLASS:ThunderRT5Form]", "", "[CLASS:ThunderRT5TextBox; INSTANCE:34]")
ControlSend("[title:bon; CLASS:ThunderRT5Form]", "", "[CLASS:ThunderRT5TextBox; INSTANCE:34]", "{DEL}")

but no succes :/

Edited by motormad
Link to comment
Share on other sites

ControlSetText("[title:bon; CLASS:ThunderRT5Form]", "", "[CLASS:ThunderRT5TextBox; INSTANCE:34]", "")

That should do it for you.

Edited by LurchMan

Dating a girl is just like writing software. Everything's going to work just fine in the testing lab (dating), but as soon as you have contract with a customer (marriage), then your program (life) is going to be facing new situations you never expected. You'll be forced to patch the code (admit you're wrong) and then the code (wife) will just end up all bloated and unmaintainable in the end.

Link to comment
Share on other sites

  • 9 years later...

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...