Hi all!
I am a newbie in AutoIt scripts and need an advice.
There is a button in an application (“Reports” - at least, AutoIt Windows Info says that it is a button). This button shows a dropdown menu.
I'd like my script to click on the button, choose an item from the dropdown menu and click on it.
But it seems that ControlClick and ControlCommand methods do not work for me. The only working method is MouseClick. And I’d also like to run the script using scheduled tasks – so I can’t use this method.
I have tried the following code:
First attempt (the Button267 = “Reports”; not clicked):
Second attempt (The dropdown menu is not shown):
Third attempt (This code works, but I can’t use it):
Please refer to the attached screenshots for more information:
![Posted Image]()
I am a newbie in AutoIt scripts and need an advice.
There is a button in an application (“Reports” - at least, AutoIt Windows Info says that it is a button). This button shows a dropdown menu.
I'd like my script to click on the button, choose an item from the dropdown menu and click on it.
But it seems that ControlClick and ControlCommand methods do not work for me. The only working method is MouseClick. And I’d also like to run the script using scheduled tasks – so I can’t use this method.
I have tried the following code:
First attempt (the Button267 = “Reports”; not clicked):
WinWaitActive("Systematica Radius Terminal") ControlClick("Systematica Radius Terminal", "", "Button267") ControlClick("Systematica Radius Terminal", "", "Kondor+ Open Reports") ControlClick("Systematica Radius Terminal", "", "XXX1") ControlClick("Systematica Radius Terminal", "", "XXX2")
Second attempt (The dropdown menu is not shown):
WinWaitActive("Systematica Radius Terminal") ControlCommand("Systematica Radius Terminal", "", "Button267", "ShowDropDown")
Third attempt (This code works, but I can’t use it):
WinWaitActive("Systematica Radius Terminal") MouseClick("", 295, 50)
Please refer to the attached screenshots for more information:
![Posted Image](http://rghost.ru/42906830/thumb.png)
![Posted Image](http://rghost.ru/42906836/thumb.png)