-1

I have a swing ui with text box and button. I want to enter values in text box and click button using Autoit. What I did was

Send("textvalue")
Send("{TAB}")//This will move to the button

I tried Controlclick method after it. But it not working. Is there any method in which get the current cursor position I mean tab position and fire click directly. please help me

Deepu Sasidharan
  • 5,193
  • 10
  • 40
  • 97
Santhucool
  • 105
  • 1
  • 1
  • 10

1 Answers1

0

To Press a Button you can do a "Click" on it. but you already focused it with TAB, so the easier way would be to Send a Enter. Try this:

Send("textvalue") Send("{TAB}") Send("{Enter}")

or (thanks to the comment)

Send("textvalue") Send("{TAB}") Send("{Space}")