Jump to content

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


AlexR
 Share

Recommended Posts

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

Link to comment
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
Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...