Quantcast
Channel: AutoIt v3 - General Help and Support
Viewing all articles
Browse latest Browse all 12506

Cannot click on the button and show dropdown menu

$
0
0
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):
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

Posted Image

Viewing all articles
Browse latest Browse all 12506

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>