AU3_Spy (Active Window Information) shows the correct VueScan window title and that the button has Text = Scan and ClassNN = Button2
My script activates the VueScan window but fails to click the Scan button:
Code: Select all
^!x:: ;hotkey to activate
WinActivate VueScan ;this works to activate the window
ControlClick Button2 ;this fails to click the Scan button
ControlClick "Button2" ;this fails to click the Scan button
ControlClick "", "Button2" ;this fails to click the Scan button
ControlClick "Scan" ;this fails to click the Scan button
return
For info: the app AutoIt is able to activate the window and press the Scan button with these commands:
Code: Select all
WinActivate("VueScan", "")
ControlClick("VueScan", "", "[CLASS:Button; INSTANCE:2]")
But I want to use AHK. What else to try?