AHK & Java Access Bridge

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
Elgin
Posts: 124
Joined: 30 Sep 2013, 09:19

Re: AHK & Java Access Bridge

27 Jan 2021, 05:47

The "left click" command puts an actual mouse click in the middle of the control, so if the control is not visible (off-screen or covered by something) this cannot work. There is the "click" command which activates the click action of the control through the access bridge api and could also work if the control is not visible but unfortunately IntelliJ completely ignores any commands send through the access bridge, making this impossible (you could ask the makers of IntelliJ to properly support accessibility and make this work...).

Regarding the green box, that is drawn once when you select the control in JControlWriter. It does not follow the control around if you move it afterwards. The green box will go to the new position when you select another control and then come back to the first one. JavaControlDoAction reads out the current position of the control at the time when the command is executed, so it will work independently of moving the window at some point before.
pythonker
Posts: 32
Joined: 11 May 2016, 07:28

Re: AHK & Java Access Bridge

27 Jan 2021, 21:38

Elgin wrote:
27 Jan 2021, 05:47
The "left click" command puts an actual mouse click in the middle of the control, so if the control is not visible (off-screen or covered by something) this cannot work. There is the "click" command which activates the click action of the control through the access bridge api and could also work if the control is not visible but unfortunately IntelliJ completely ignores any commands send through the access bridge, making this impossible (you could ask the makers of IntelliJ to properly support accessibility and make this work...).

Regarding the green box, that is drawn once when you select the control in JControlWriter. It does not follow the control around if you move it afterwards. The green box will go to the new position when you select another control and then come back to the first one. JavaControlDoAction reads out the current position of the control at the time when the command is executed, so it will work independently of moving the window at some point before.
Thanks again for your reply! I understand IDEA may not allow using JAB, and clicking works because it simulates mouse button clicking.
I want to make the green box size the same as IDEA, so clicking can work inside the real-sized box, because current box is smaller than the real window, causing the coordination of clicking is not the real position of tool button, but the same position in a smaller box.
Elgin
Posts: 124
Joined: 30 Sep 2013, 09:19

Re: AHK & Java Access Bridge

29 Jan 2021, 11:49

Sorry...missed your point when looking at your screenshot.

Do you have any form of screen scaling active? This can mess things up and might need workarounds (have a look around the forum as there are several different issues if I remember correctly).

Otherwise you should first test if MouseGetPos and WinMove also give you unexpected results.

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: balawi28, Bing [Bot], Chunjee, moltenchees and 265 guests