Sign in to follow this  
Followers 0
AlexR

set text in text box, vb.net, AutoItX3Lib.AutoItX3

3 posts in this topic

Hello experts,

Ive got a little problem I hope someone could help me.

Today I tried to use AutoItX3Lib.AutoItX3 to write a code in vb .net so execute my windows application.

My windows application contains just one Button and one textbox.

To click my button going well. Ive got no problem to use and click the button, but I cant write a text in my text box.

Here is my code:

Dim objAutoIt As New AutoItX3Lib.AutoItX3

objAutoIt.Run("C:\myapplication.exe")
objAutoIt.WinWaitActive("Form1")
  
'Press Button
objAutoIt.ControlClick("Form1", "", "Button2")
 
objAutoIt.WinClose("Form1")

Have someone a tip for me?

Best regards,

(desperated) Alex

Share this post


Link to post
Share on other sites



It looks right to me, but I don't routinely use AutoItX. You might try posting this in the forum specifically for AutoItX: ActiveX/COM Help and Support (AutoItX)

:)


Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law

Share this post


Link to post
Share on other sites

okay, thaks a lot!

done :)

kind regards,

Alex

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