Sign in to follow this  
Followers 0
dmishoe

controlsettext help

2 posts in this topic

I have a c# program that invokes the autoit dll as shown below.

I the controlclick command works, but I can not seem to get the controlsettext to work. I know it must be something simple that I'm not doing. I figured since the controlclick worked, it would be a simple matter to get the controlsettext to work.

static AutoItX3Lib.AutoItX3Class au3;

......

au3 = new AutoItX3Lib.AutoItX3Class();

...

au3.ControlSetText("Inter Branch Transfer Entry - Infor ERP VE", "", "EDIT1", "MY NEW TEXT");

au3.ControlClick("Inter Branch Transfer Entry - Infor ERP VE", "", "Button7", "Left", 1, 0, 0);

any an all help would be greatly appreciated.

Thanks

David

Share this post


Link to post
Share on other sites



found it, by using

au3.ControlSend("handle=" + hWnd, "", "Edit1", "test1234", 0);

send the control the text

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