title: AutoHotkey - How to click a control whose ClassNN changes?
body: <p>I am trying to automate a workflow in a program and have hit a roadblock. I typically click buttons using <code>ControlClick</code>,  but for this particular control the <code>ClassNN</code> changes every time the program reloads. I tried using the control text, but there are two controls in the window that have the same text and it seems to prevent the command from executing.</p>
  
  <p>Is there something else I can try to get <code>ControlClick</code> to work? Or is there another approach I can take? I don't want to click at (x,y) coordinates because the control may move depending on the user's resolution and task pane size.</p>
  
  <p>The command I am using is: </p>
  
  <p><code>ControlClick, checkButton3, Bystronic BySoft 7</code></p>
  
  <p>This works for other adjacent buttons because they have unique control text.</p>
  
  <p><a href="https://i.stack.imgur.com/8D8NA.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/8D8NA.png" alt="enter image description here"></a></p>