In my case the class is SunAwtFrame (I think Java related).
Here is the script that I made, to detect this window:
AutoItSetOption("MouseCoordMode", 0) ; relative coords to active window
While 1
$hWnd = WinGetHandle ( "My window" )
If WinExists ("My window") Then
WinActivate ("My window")
MouseClick ( $MOUSE_CLICK_PRIMARY, 205, 105, 1) ; click on the OK button relative coords
EndIf
Sleep(5000) ; sleep (pause script) 5 seconds
WEnd
It works, but only if the screen is on. I cannot access the button, because of this class, so I need to click the mouse like that.
If the station is locked, it does not work. I need to run a process unattended, so the script should work even if the screen is off. Any suggestions?