I try to use isJavaWindow in dllCall but it doesn't work.
My code is:
$dll = DllOpen("windowsaccessbridge.dll") if $dll <> -1 Then $prev_titMatchMode=AutoItSetOption ( "WinTitleMatchMode", 2) WinWait("Software Download") $hwnd = WinGetHandle("Software Download") if NOT WinActive($hwnd) Then WinActivate($hwnd) EndIf msgbox(32, "Information Window [1]", "Pausa") $result=DllCall($dll, "int:cdecl", "isJavaWindow", "int", $hwnd) $error=@error if $error==0 Then if($result[0] == True) Then $message="Windows Selected ID: " & @TAB & $hwnd & @CRLF $result = DllCall($dll, "int:cdecl", "getAccessibleContextFromHWND", "int", $hwnd, "ptr", -1, "ptr", -1) $error=@error If Not $error Then $message = $message & "Esito Call Dll: " & @TAB & @TAB & $result[0] & @CRLF $message = $message & "HWND Target: " & @TAB & @TAB & $result[1] & @CRLF $message = $message & "Long *vmID: " & @TAB & @TAB & $result[2] & @CRLF $message = $message & "AccessibleContext *ac: " & @TAB & $result[3] msgbox(32, "Information Window [1]", $message) Else MsgBox(64, "Alert Windows", "Errore nell'accesso Dll: " & $error) EndIf Else MsgBox(64, "Alert Windows", "Non e` stata riconosciuta come finestra Java: " & $result[0] & ", " & $result[1]) EndIf Else MsgBox(64, "Alert Windows", "Problemi nella chiamata Dll: " & $error) EndIf
There is something wrong?

Sign In
Register
Help
MultiQuote