achica Posted July 19, 2008 Posted July 19, 2008 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.
ProgAndy Posted July 19, 2008 Posted July 19, 2008 (edited) 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 July 19, 2008 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
achica Posted July 19, 2008 Author Posted July 19, 2008 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....
Richard Robertson Posted July 20, 2008 Posted July 20, 2008 You aren't listening. UDFs are written in AutoIt. They are AutoIt script code. They aren't compiled in any way, shape, or form. Also, the COM dll (AutoItX) doesn't do anywhere near as much as the actual interpreter. It also is as far away from the UDFs as AutoIt gets.
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now