How to click a button that has no ClassNN

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
autopuff
Posts: 16
Joined: 29 Jun 2017, 18:55

How to click a button that has no ClassNN

17 Nov 2017, 12:16

I'm pretty curious about this issue. I usually use the WinMove to locate the window to a specific place and then use MouseClick. However, the process is very redundant, especially when I need to click several buttons without ClassNN--cannot use ControlClick. So is there any more advanced way to solve this issue? Thank you very much.
Ps: I've seen some old posts, but they used some wizard specifically for some software to overpass the problem. If it helps, the software I'm having the problem on is ImageJ, but I still want to know if there is a general solution to it.
User avatar
jeeswg
Posts: 6902
Joined: 19 Dec 2016, 01:58
Location: UK

Re: How to click a button that has no ClassNN

17 Nov 2017, 14:43

- So usually a button control has its own ClassNN.
- Otherwise the button may be part of a control. If when you hover over the button with AutoHotkey's window spy, it is part of larger control that has a ClassNN, and if the button is always in the same place relative to the larger control that it's a part of, you could use ControlClick and specify coordinates.
- Otherwise one possibly is to use Acc:
Acc library (MSAA) and AccViewer download links - AutoHotkey Community
https://autohotkey.com/boards/viewtopic.php?f=6&t=26201
homepage | tutorials | wish list | fun threads | donate
WARNING: copy your posts/messages before hitting Submit as you may lose them due to CAPTCHA

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: No registered users and 250 guests