ControlClick with Java Access Bridge

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
boydeee
Posts: 33
Joined: 15 Jun 2016, 20:29

ControlClick with Java Access Bridge

24 Jun 2016, 10:45

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.
User avatar
Stevoisiak
Posts: 12
Joined: 24 Aug 2017, 14:19
Contact:

Re: ControlClick with Java Access Bridge

02 Oct 2017, 16:17

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)
Last edited by Stevoisiak on 04 Oct 2017, 12:39, edited 1 time in total.
Elgin
Posts: 124
Joined: 30 Sep 2013, 09:19

Re: ControlClick with Java Access Bridge

03 Oct 2017, 04:03

Hi!

See my post in the thread that Stevoisiak linked above. If something doesn't work, let me know.
User avatar
Stevoisiak
Posts: 12
Joined: 24 Aug 2017, 14:19
Contact:

Re: ControlClick with Java Access Bridge

03 Oct 2017, 08:44

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
Elgin
Posts: 124
Joined: 30 Sep 2013, 09:19

Re: ControlClick with Java Access Bridge

03 Oct 2017, 09:14

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".
User avatar
Stevoisiak
Posts: 12
Joined: 24 Aug 2017, 14:19
Contact:

Re: ControlClick with Java Access Bridge

03 Oct 2017, 15:46

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.
Elgin
Posts: 124
Joined: 30 Sep 2013, 09:19

Re: ControlClick with Java Access Bridge

03 Oct 2017, 21:02

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 ;-)
User avatar
Stevoisiak
Posts: 12
Joined: 24 Aug 2017, 14:19
Contact:

Re: ControlClick with Java Access Bridge

04 Oct 2017, 08:47

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.
User avatar
Stevoisiak
Posts: 12
Joined: 24 Aug 2017, 14:19
Contact:

Re: ControlClick with Java Access Bridge

04 Oct 2017, 14:06

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.

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: Google [Bot], Spawnova, Thorlian and 253 guests