I have a super simple login screen I'm trying to access that is written in java. My java testing tools can't access the login screen because it's a modal window. So I figured I'd see if AutoIt can manipulate 'something' on it. I can enter text within the text boxes for user name and password. But I can't see to click on the login button. I've tried just tabbing to it and hitting the enter key (as I really wouldn't have to be completely interacting with the frame). But that didn't work. I was hoping to throw it some coordinates and just double click in that relative area, but when I get the whole " ==> Subscript used on non-accessible variable.:" when I attempt to use ControlGetPos() I'm assuming because it can't truly interact with the Java frame. So I'm kind of stuck here...can't use AutoIt, can't use a Java automation testing tool to do this due to the modal issues. Does anyone have any ideas? My code is below though I think it's less to do with code and more what AutoIt can and can't do.
#include <EditConstants.au3>
#include <GUIConstantsEx.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>
Local $hWnd = WinActivate("[CLASS:sunawtframe]", "Login")
Local $aPos = ControlGetPos($hWnd, "[CLASS:SUNAWTFRAME]", "Login")
Local $myXPos = $aPos[0] + 420
Local $myYPos = $aPos[1] + 270
Send("guest")
Send("{TAB}")
Send("guest")
Send("{TAB}")
;Tried Control Click it failed
ControlClick($hWnd, "", "Login")
;Tried Mouse Click and that failed
MouseClick("Left", $myXPos, $myYPos, 2)
Thanks for any help!