Forum Discussion
YMinaev
13 years agoStaff
Hi,
According to your screenshots, you should be able to use the second implementation of the SwingObject method. Instead of providing the native name of your button, use its class (JavaClassName) and caption (AWTComponentAccessibleName) property values.
Also, you can obtain the needed button by its AWTComponentAccessibleName property using the Find method:
According to your screenshots, you should be able to use the second implementation of the SwingObject method. Instead of providing the native name of your button, use its class (JavaClassName) and caption (AWTComponentAccessibleName) property values.
Also, you can obtain the needed button by its AWTComponentAccessibleName property using the Find method:
var yesBtn = Sys.Process("javaw", 2).SwingObject("JDialog", "Update BNMCUST table on Switch: CABLAB ?", -1, 1).SwingObject("JRootPane", "", 0).SwingObject("null.layeredPane").SwingObject("null.contentPane").SwingObject("JOptionPane", "", 0).SwingObject("OptionPane.buttonArea").Find("AWTComponentAccessibleName", "Yes", 1);
Related Content
- 6 years ago
- 5 years ago
Recent Discussions
- 4 days ago