Jump to content

Recommended Posts

Posted

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

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
×
×
  • Create New...