snax68

How to read current combobox selection from a Java awt applet

1 post in this topic

#1 ·  Posted

 

Hello!

In the process of automate the reading of a Java applet form I found problems when reading the current selected value of a ComboBox.

java_app_combo.jpg

I then replicated the case creating a small java applet that does the same thing (see CreateChoiceExample.java).

 Using the AutoIt Windows Information tool I got the following:

>>>> Window <<<<
Title:    Applet Viewer: testComboBox.CreateChoiceExample.class
Class:    SunAwtFrame
Position:    730, 200
Size:    216, 282
Style:    0x16CF0000
ExStyle:    0x00000100
Handle:    0x00000000001212E6

>>>> Control <<<<
Class:    ComboBox
Instance:    1
ClassnameNN:    ComboBox1
Name:    
Advanced (Class):    [CLASS:ComboBox; INSTANCE:1]
ID:    1
Text:    
Position:    67, 6
Size:    66, 22
ControlClick Coords:    16, 8
Style:    0x54000013
ExStyle:    0x00000000
Handle:    0x0000000000321080

>>>> Mouse <<<<
Position:    821, 265
Cursor ID:    0
Color:    0xFFDB90

>>>> StatusBar <<<<

>>>> ToolsBar <<<<

>>>> Visible Text <<<<
ᦻ
Applet started.


>>>> Hidden Text <<<<

 

I tried different methods (GUICtrlRead, ControlGetText, ControlCommand\GetCurrentSelection, ...) but without any success.

Any idea on how to achieve this goal?

Many thanks for helping.

Kind regards,

  Gianluca

 

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