Access to "high level" UDF autoit functions from java components

Recommended Posts

achica 0

achica 0

I want to do some automation in Windows from java components. JNA (https://jna.dev.java.net/), by the means of JautoIt, provides some relevant examples to achieve that purpose. The main issue with that approach is autoit wrapping based on AutoItX3.dll. This dll expose very low levels autoit/windows functionalities.

My purpose is to avoid to "rewrite" entirely in java (or other similar objects components like Ruby through SWIG wrapping) logic already implemented and tested in strong and valuable UDF or other legacy au3 scirpts.

Does AutoItX3.dll (by the means of Auto3lib, I suppose) already integrate those UDF Libraries (like "ExcelCOM_UDF" for instance)?

How can I extend Auto3lib with an UDF library of my choice?

How can I build a custom dll (similar to AutoItX3.dll) that involves specific AU3 or UDF scripts?

Thanks a lot for your collaboration. Other valuable idea to achieve the same purpose is welcome. muttley

Thanks for the address, but I'm looking for more broad solutions than those specific but relevant solutions focus on Excel (some of them are even commercial)...

My purpose is not to include AutoIt scripts directly in java component. But WRAP UDF AutoIt functions calls through JNA (more simple tan JNI). Of course, these autoit functions are previously compiled in a native custom dll (like AutoItX3.dll).

The main challenge I have is to be able to customize first, "autoitx.java" (provided with Jwinauto : http://sourceforge.net/projects/jwinauto/) , a java component that exposes AutoItX3.dll functions through JNA, then bind it to that custom "UDF" dll, i'm trying to design....