Jump to content
Sign in to follow this  

ControlSetText - text disappears after edit

Recommended Posts


I have one strange problem when I sue ControlSetText function with some applications. I am trying to set the text in one memo-like control in Windows application, and command line is like this:

ControlSetText("AppName","","[CLASS:WindowsForms10.EDIT.app.0.141b42a_r16_ad1; INSTANCE:13]",$TextVariable)

Value from the variable really shows up in the field, but as soon as I click in the field in the application, field gets blank.

As a workaround, I instead activate the control and use the Send function, but I would still like to do it "the proper way".

This happened to me with several applications, so it appears that it should not be so uncommon. Did anyone encounter this before?

Thanks for any ideas.

Share this post

Link to post
Share on other sites

Welcolme to the Forums ! Posted Image

did you try the ControlSetText optional flag ?

what's the Return Value ?

did you try ControlSend or ControlCommand with his "EditPaste" command ?

AutoIt X86 - SciTE 3.6.0WIN 8.1 X64 - Other Example Scripts

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