I have hit another bump and am curious if someone could tell me if my other idea is possible.
1) Is it possible to use JavaMonkey as the reference piece since it can read all the information within a Java control?
(This one is not AutoIT based)
2) Is there a way to export the tree listing from JavaMonkey? Or is there another app out there that does this same tree structure that CAN export its contents?
The Java.au3 functions seem to only pick up the parts that are visible within the apps windows. If the list is too long, it cuts off the remainder of that list when it returns the results. I am not sure if this is because it is using JavaFerret as the go-between, but somehow it is not quite doing what I had hoped.
I have not been able to find any freeware that does the same thing as JavaMonkey, but then again I don't consider myself to be anything close to a Java expert... so my know-how and app expereince is VERY limited.
I appreciate any help on this as this could be a ground-breaker as to if I can get AutoIT approved as a formal testing application in our company (very large insurance corp). I have been trying to get the IT powers-that-be to notice how helpful AutoIT has been to me, but if it's Java capabilities are limited, then it may not even have a chance... :-(
Here is my script where I am just trying to figure out which $instance_num the license list is (as there are some many lists in the app window):
; ======================================================================================================================= #include <Java.au3> Opt("WinTitleMatchMode", 2) Global $Admin, $Agent, $Proc Global $sLabel1 Global $i1 ; ======================================================================================================================= If WinExists("Admin") Then Sleep(25) Else MsgBox(262208, "Error", "You must be logged into ADMIN in order to proceed. Exiting Script...", 30) Exit EndIf $Admin = WinGetHandle("Admin") $Agent = WinGetHandle("AGENT") $Proc = WinGetHandle("Processing") ; ======================================================================================================================= _JavaAttachAndWait($Agent) WinActivate($Agent) For $i1 = 200 To 10000 $sLabel1 = _JavaObjPropertyGet("", "", "label", $i1, "Name") If StringLen($sLabel1) > 85 Then ExitLoop ToolTip($i1 & " - " & $sLabel1, 0, 0) Sleep(1) Next MsgBox(0, "Info", $i1 & " - " & $sLabel1) Exit
I have tested things out quite extensively and concluded that Java.au3 does indeed only read/report what is visible in the window.
Edited by dm83737, 31 July 2009 - 05:52 PM.