Page 1 of 1

ControlClick with Java Access Bridge

Posted: 24 Jun 2016, 10:45
by boydeee
Hi, I was wondering if someone could assist me in executing a controlclick through java access bridge? I'm really new here and all this stuff is confusing.

Re: ControlClick with Java Access Bridge

Posted: 02 Oct 2017, 16:17
by Stevoisiak
I have been researching the Java Access Bridge myself to limited success. Here are a few pieces of advice:

- The Java Access Bridge is installed by default as of Java 7 Update 6
- Make sure the Java Access Bridge has been enabled in the Ease of Access Center (instructions)
- Elgin created "JavaAccessBridge.ahk", which is a library for interacting with the JAB API. (See How to send to unseen controls in a Java app). The library didn't work for me personally, but others have reported success.

Possibly helpful links

- Stack Overflow: How to automate java application with autohotkey
- Oracle: Enabling and Testing Java Access Bridge
- AutoHotkey (Archived Forums): How to send to unseen controls in a Java app
- Google Access Bridge Explorer (Modern replacement for Java Ferret & Java Monkey)

Re: ControlClick with Java Access Bridge

Posted: 03 Oct 2017, 04:03
by Elgin
Hi!

See my post in the thread that Stevoisiak linked above. If something doesn't work, let me know.

Re: ControlClick with Java Access Bridge

Posted: 03 Oct 2017, 08:44
by Stevoisiak
Elgin wrote:Hi!

See my post in the thread that Stevoisiak linked above. If something doesn't work, let me know.
I've been having issues getting the script to work myself actually. (It's why I revived this year-old thread).

I am attempting to analyze a Java webapp known as Kronos Workforce Central 6.3. I have run JControlWriter.ahk, but pressing F11 while Kronos is open doesn't seem to have any effect.

- The Java window I am analyzing is named "Attach Jobs" (screenshot)
- Each provided file has been placed in a single folder. (JavaAccessBridge.ahk, JControlWriter.ahk, & JCWGUIStrings.ini)
- I have enabled the Java Access Bridge in the Access Center
- Kronos's clickable buttons are viewable when using Java Monkey (screenshot)

PC info:
- Windows 7 Professional - Service Pack 1 (32-bit)
- Java Standard Edition: Version 7 Update 76
- AutoHotkey 1.1.26.01
- Internet Explorer 10

Re: ControlClick with Java Access Bridge

Posted: 03 Oct 2017, 09:14
by Elgin
I was apparently too lazy to type unambiguously there...
Press Ctrl-Alt-F10 or F11
should have said "Press Ctrl-Alt-F10 or Ctrl-Alt-F11".

Re: ControlClick with Java Access Bridge

Posted: 03 Oct 2017, 15:46
by Stevoisiak
Elgin wrote:should have said "Press Ctrl-Alt-F10 or Ctrl-Alt-F11".
Oh wow. Spent nearly an hour trying to figure that one out.

Have you considered giving your library it's own forum post or GitHub repository? I'm sure many others like myself would find it very helpful.

Re: ControlClick with Java Access Bridge

Posted: 03 Oct 2017, 21:02
by Elgin
For several years now I want to make it a bit nicer and put it on GitHub, but that "real life"-thing keeps getting in the way ;-)

Re: ControlClick with Java Access Bridge

Posted: 04 Oct 2017, 08:47
by Stevoisiak
Elgin wrote:For several years now I want to make it a bit nicer and put it on GitHub, but that "real life"-thing keeps getting in the way ;-)
The library has been insanely helpful to myself as is. If it were hosted on GitHub I would love to contribute in its current form.

Re: ControlClick with Java Access Bridge

Posted: 04 Oct 2017, 14:06
by Stevoisiak
I recently discovered a very helpful tool for analyzing Java Applications called Access Bridge Explorer. It combines the functionality of Java Ferret and Java Monkey into a single application, and is compatible with Windows 7/8/10.

Image

It can't export command lists like JControlWriter.ahk, but it can be used to retrieve the same information. It may be helpful for debugging.