alanRichardson Posted September 5, 2007 Share Posted September 5, 2007 Hi, I am building a small wrapper around autoitx3.dll using jna in java. I have managed to get many of the AutoItX functions working and have retrieved window handles successfully from WinGetHandle. The AutoItX help file says that the handle is for use with the advance WinTitleMatchMode that allows you to use classnames and handles to specify windows rather than title and text. WinTitleMatchMode advanced mode doesn't seem to have a property for hwnd is there an undocumented "[HWND:0123456]" type access? Or is it not possible to feed a hwnd back into the win* functions when using the dll? Any help appreciated. Thanks, Alan Link to comment Share on other sites More sharing options...
Richard Robertson Posted September 5, 2007 Share Posted September 5, 2007 I don't believe the dll will support the handles, but I'm not sure. It might be java not interoping well. Link to comment Share on other sites More sharing options...
alanRichardson Posted September 6, 2007 Author Share Posted September 6, 2007 Thanks. I have worked out how to use handles in the dll. It seems that there is an Advanced Window Description property that is not mentioned in the help file. HANDLE so [HANDLE:0123456] where 0123456 is the hwnd will allow the functions which take an hwnd to accept one as a String through the dll interface - note that I only checked this with WinActivate and WinClose, but I assume these all use generic param checking code. The only reason I found this was that I looked in the old AutoIt c++ sourcecode on the site and saw that AutoIt used to support a calling mechanism of "handle=0123456" so I just tried HANDLE with the latest Advanced Window Description calling convention. Hope this helps someone else too. Link to comment Share on other sites More sharing options...
Administrators Jon Posted September 6, 2007 Administrators Share Posted September 6, 2007 AutoItX needs a little love soon, some of the docs and the calling conventions need some work Deployment Blog: https://www.autoitconsulting.com/site/blog/ SCCM SDK Programming: https://www.autoitconsulting.com/site/sccm-sdk/ Link to comment Share on other sites More sharing options...
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