Jump to content

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


achica
 Share

Recommended Posts

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

Yves.

Link to comment
Share on other sites

This is not possible... The UDFs are written in Autoit as you know, and there is no interpreter to include in other languages.

There are wrappers for e.g. Excel Com in java, too like http://schmidt.devlib.org/java/libraries-excel.html , some aren't wrappers, but write "native" xls.

Edited by ProgAndy

*GERMAN* [note: you are not allowed to remove author / modified info from my UDFs]My UDFs:[_SetImageBinaryToCtrl] [_TaskDialog] [AutoItObject] [Animated GIF (GDI+)] [ClipPut for Image] [FreeImage] [GDI32 UDFs] [GDIPlus Progressbar] [Hotkey-Selector] [Multiline Inputbox] [MySQL without ODBC] [RichEdit UDFs] [SpeechAPI Example] [WinHTTP]UDFs included in AutoIt: FTP_Ex (as FTPEx), _WinAPI_SetLayeredWindowAttributes

Link to comment
Share on other sites

This is not possible... The UDFs are written in Autoit as you know, and there is no interpreter to include in other languages.

There are wrappers for e.g. Excel Com in java, too like http://schmidt.devlib.org/java/libraries-excel.html , some aren't wrappers, but write "native" xls.

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....

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...