 |
AutoHotkey Community Let's help each other out
|
| View previous topic :: View next topic |
| Author |
Message |
jeff.l Guest
|
Posted: Wed Nov 25, 2009 12:44 am Post subject: Java <-> AHK and the Java Access Bridge |
|
|
OK, so I have read a lot of threads where people are wondering how to get Java to talk to AHK. I followed the leads for using the Java Access Bridge, but theres not any actual discussion about it.
I have read some stuff on autoIT forums though. Enough to get myself started. My comprehension is still very basic though and I've yet to get anything functional out of it. I was hoping to maybe get some help or at least get some discussion going from other users that might be trying to accomplish the same tasks.
Resources/references I've been using:
http://java.sun.com/javase/technologies/accessibility/accessbridge/2.0.1/docs/api.html
http://www.autohotkey.com/forum/topic23500.html
http://www.autohotkey.com/forum/topic49222.html
http://www.autoitscript.com/forum/index.php?showtopic=52853
http://www.autoitscript.com/forum/index.php?showtopic=77884
So as of right now, I've got the JAB installed. I've been using AHK for a while and have a pretty good grasp of it, but dllcalls and whatnot are new to me.
Here I am just trying to get some sort of signs of life out of it by trying out the function "isJavaWindow"
| Code: |
WinGet, _hWnd, ID, Oracle Applications - PRODUCTION
_dll := DllCall("WindowsAccessBridge\initializeAccessBridge")
_result := DllCall("WindowsAccessBridge\isJavaWindow", "UInt", _hWnd, "cdecl Int")
MsgBox, %_result%
|
It took a while to get this far without getting an ErrorLevel "A4" from the isJavaWindow call. Finally, it seems to be successful but finally it seems to work, but I get a result of '0' rather than '1'. Fine, I'll try something else.
Perhaps I need this "vmID" and "Accessible Context" info to continue? So I try this:
| Code: |
WinGet, _hWnd, ID, Oracle Applications - PRODUCTION
_dll := DllCall("WindowsAccessBridge\initializeAccessBridge")
_result := DllCall("WindowsAccessBridge\getAccessibleContextFromHWND", "UInt", _hWnd, "UInt *", vmID, "UInt *", ac, "cdecl Int")
MsgBox, %_result%
|
All variables return '0' again.
Anyone with any experience or some time to mess around have any ideas on what I am doing wrong or not comprehending? I know there has been past interest on this forum from my research, perhas some healthy discussion on this topic is needed?
Thank you for your time,
Jeff |
|
| Back to top |
|
 |
jeff.l Guest
|
Posted: Wed Nov 25, 2009 8:21 pm Post subject: |
|
|
Nevermind, it appears this is not goign to be compatible with AHK at this time. This would explain why no one on this forum nor autoIT appear to have had any success with it.
| Quote: |
The Java Access Bridge API calls are contained in AccessBridgeCalls.h and to use them, you must also compile the file AccessBridgeCalls.c, which is the glue to the API, loads WindowsAccessBridge.dll, and otherwise makes everything work.
|
http://java.sun.com/javase/technologies/accessibility/accessbridge/2.0.1/docs/api.html#API_calls
 |
|
| Back to top |
|
 |
|
|
You can post new topics in this forum You can reply to topics in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|