Getting the classNN from Window Spy and passing it to ControlClick
Posted: 11 Sep 2019, 05:20
Hi, I was using WindowSpy to get the classNN of a button in an application to pass that classNN to ControlClick to click on a specific button. But it is not working.
classNN: Button2
Text: OK
But when I am trying
It's not working. What can be the reason?
classNN: Button2
Text: OK
But when I am trying
Code: Select all
WinGetActiveTitle, Title
ControlClick, Button2, %Title%