This is a great script an is ecactly what i am looking for.
I am getting an Error at the dll Call
$result =dllcall($accessBridgeDll, "BOOL:cdecl", "getVersionInfo", "long", $vmId, "struct*", DllStructGetPtr($tAccessBridgeVersionInfo))
Mouse position is retrieved 1072-415
JAVA window found <> Java Window Title= Handle=0x00151304 res: 1
Result getAccessibleContextFromHWND is <> ubound: 4
We have a VMid 397076 ac 29949844
getVersionInfo error:1
*** getAccessibleContextAT result is <29949764>
Error 1 means "unable to use the DLL file"
My Environment Settings:
I have to Use Java Version 1.7.0_76-b13
jabswitch is enabled
javaferret.exe and JavaMonkey-32.exe are working properly with the same Java Window
For testing I modified $accessBridgeDLL to the path of WindowsAccessBridge-32.dll matching Java Version 1.7.0_76 . I got the same Error.
Why do I get an "unable to use DLL file" error when calling "getVersionInfo" and some code lines up the call "getAccessibleContextFromHWND" is working correct?
Thanks for any ideas?