Jump to content

CR831

Members
  • Posts

    3
  • Joined

  • Last visited

CR831's Achievements

Seeker

Seeker (1/7)

0

Reputation

  1. Sorry, i couldnt find de edit option of an post. Now with correct PATH: Heres the error again with some further logging Information (JavaHomePath an dll-Path) to be sure to use the correct dll: JAVAHOME C:\MyFolder\jre We are using X86 at cpu X64 Autoit 64 bit version 0 Windows accessbridge 32 opened C:\MyFolder\jre\bin\WindowsAccessBridge-32.dll 1 0 initializeAccessBridge is finishedWindows_run passed : 0helloC:\MyFolder\jre\bin\JavaSpy.au3 (145) : ==> Subscript used with non-Array variable.: $AccessibleContextInfo=$result[3] $AccessibleContextInfo=$result^ ERROR >Exit code: 1 Time: 6.985
  2. Thanks for updating your script and your quick reply junkew. I had no luck with the newer script Version. It throws the same error. Some more about my Environment: The Java tool i would like to spy only runs in an separate JRE which isnt installed and registered in windows. I cant use an newer Version of JavaAccessBridge. So i had to modify the JavaHomePath to use the correct dll: ;Local $sJavaHome =RegRead("HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Runtime Environment\" & $sJavaVersion , "JavaHome") $sJavaHome = "C:\MyFolder\jre" Heres the error again with some further logging Information (JavaHomePath an dll-Path) to be sure to use the correct dll: JAVAHOME C:\MyFolder\jre We are using X86 at cpu X64 Autoit 64 bit version 0 Windows accessbridge 32 opened C:\MyFolder\WindowsAccessBridge-32.dll 1 0 initializeAccessBridge is finishedWindows_run passed : 0helloC:\MyFolder\JavaSpy.au3 (145) : ==> Subscript used with non-Array variable.: $AccessibleContextInfo=$result[3] $AccessibleContextInfo=$result^ ERROR >Exit code: 1 Time: 6.985 I can trace the error down to the dllcall function throwing the error 1 unable to use the DLL file. Afterwards i tried to use the WindowsAccessBridge.dll instead of WindowsAccessbridge-32.dll. The same error. The accessibility.properties file looks like and jabswith is enabled: assistive_technologies=com.sun.java.accessibility.AccessBridge screen_magnifier_present=true
  3. 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?
×
×
  • Create New...