Hi,
I just wanted to test this example with "jAutoitX_example",
I registered autoitx.dll without a problem, but there is an error in the initialization of the Jautoitx bibioteka.
I used libraries for the test of both versions x86/.x64.
jacob-1.21.zip or jacob-1.18.zip (
github.com
)
- Copy to the external library:
AutoItX4Java.jar (with jAutoItX_Libraries.zip)
jAutoItX.jar (with jAutoItX_Libraries.zip)
jAutoItX.xml (with jAutoItX_Libraries.zip)
jacob.jar (with jacob-1.21.zip / jacob-1.18.zip)
- Copy to your project /objects /Lib:
jacob.dll (with jAutoItX_Libraries.zip) lub z jacob-1.21.zip / jacob-1.18.zip
AutoitX.dll (with AutoItX3_x64.zip)
Result during compilation:
I just wanted to test this example with "jAutoitX_example",
I registered autoitx.dll without a problem, but there is an error in the initialization of the Jautoitx bibioteka.
I used libraries for the test of both versions x86/.x64.
jacob-1.21.zip or jacob-1.18.zip (
Releases · freemansoft/jacob-project
JACOB is a JAVA-COM Bridge that allows you to call COM Automation components from Java. It uses JNI to make native calls to the COM libraries. JACOB runs on x86 and x64 environments supporting 32 b...
- Copy to the external library:
AutoItX4Java.jar (with jAutoItX_Libraries.zip)
jAutoItX.jar (with jAutoItX_Libraries.zip)
jAutoItX.xml (with jAutoItX_Libraries.zip)
jacob.jar (with jacob-1.21.zip / jacob-1.18.zip)
- Copy to your project /objects /Lib:
jacob.dll (with jAutoItX_Libraries.zip) lub z jacob-1.21.zip / jacob-1.18.zip
AutoitX.dll (with AutoItX3_x64.zip)
Result during compilation:
Thank you for all the answers.main._appstart (java line: 69)
com.jacob.com.ComFailException: Can't get object clsid from progid
at com.jacob.com.Dispatch.createInstanceNative(Native Method)
at com.jacob.com.Dispatch.<init>(Dispatch.java:99)
at com.jacob.activeX.ActiveXComponent.<init>(ActiveXComponent.java:58)
at anywheresoftware.jmon.jautoitx.jAutoItX.Initialize(jAutoItX.java:70)
at b4j.example.main._appstart(main.java:69)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at anywheresoftware.b4a.BA.raiseEvent2(BA.java:111)
at anywheresoftware.b4a.BA.raiseEvent(BA.java:98)
at b4j.example.main.start(main.java:37)
at com.sun.javafx.application.LauncherImpl.lambda$launchApplication1$8(LauncherImpl.java:863)
at com.sun.javafx.application.PlatformImpl.lambda$runAndWait$7(PlatformImpl.java:326)
at com.sun.javafx.application.PlatformImpl.lambda$null$5(PlatformImpl.java:295)
at java.security.AccessController.doPrivileged(Native Method)
at com.sun.javafx.application.PlatformImpl.lambda$runLater$6(PlatformImpl.java:294)
at com.sun.glass.ui.InvokeLaterDispatcher$Future.run(InvokeLaterDispatcher.java:95)
at com.sun.glass.ui.win.WinApplication._runLoop(Native Method)
at com.sun.glass.ui.win.WinApplication.lambda$null$4(WinApplication.java:185)
at java.lang.Thread.run(Thread.java:750)