Sign in to follow this  
Followers 0
Destabilizator

Getting text from Java Scrollable window

1 post in this topic

Hello,

I am trying to automate process which includes using StarClient java application and to get certain data from it. I was following topic more or less successfully. I can get the clicking done no problem, I had to use a little trick to select Activity tab, because I couldn't get it done other way :mellow:

Now I am where I want to be and need to get text from the window.

I was trying many variations of _ObjectValue(s)Get settings but without success.

I'd like to the msgbox in the end to contain the text from window. Any suggestions for syntax?

My code is as follows:

#include <Java.au3>

WinActivate("StarClient")
_JavaAttachAndWait("StarClient")
; _JavaObjValueGet($autoit_cntl_id, $javaferret_obj_name = "", $javaferret_obj_role = "", $instance_num = 1)
$java_obj1 = _JavaObjSelect("", "P & S", "menu")
$java_obj2 = _JavaObjSelect("", "Show Problem", "menu item")

_JavaAttachAndWait("View Product Problem Record")
$java_obj1 = _JavaObjValueSet("", "","text","ACF2MS",1)
$java_obj2 = _JavaObjValueSet("", "","text","9032",2)
$java_obj3 = _JavaObjSelect("", "...", "push button")
;Sleep(4000)
$java_obj4 = _JavaObjSelect("", "Main","page tab list")


Send("{RIGHT}")
Sleep(10)
Send("{RIGHT}")
Sleep(10)
Send("{RIGHT}")
Sleep(10)

;$java_obj5 = GRRRRHH!!!!
;Sleep(5000)
;MsgBox(0,"Report", $java_obj5)

Java Monkey info panel:

http://i52.tinypic.com/14to45d.jpg

Window I want to get text from:

http://i54.tinypic.com/4r4vtx.jpg

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
Sign in to follow this  
Followers 0