Sign in to follow this  
Followers 0
CbIP

Cannot click on the button and show dropdown menu

7 posts in this topic

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

Share this post


Link to post
Share on other sites



Something..something.. go ahead:

$WINHANDLE = WinWaitActive("Systematica Radius Terminal")
ControlClick($WINHANDLE, '', '[CLASS:Button; INSTANCE:267]')

----------------------------------------

:bye: Hey there, was I helpful?

----------------------------------------

My Current OS: Win8 PRO (64-bit); Current AutoIt Version: v3.3.8.1

Share this post


Link to post
Share on other sites

#3 ·  Posted (edited)

Thank you for the advice!

But it doesn't seem to be working. The code is executed without any error, but the button is not clicked.

As far as I know, the program ("Systematica Radius Terminal") uses IE to build its GUI controls.

Here is the screenshot:

Posted Image

Edited by CbIP

Share this post


Link to post
Share on other sites

As far as I know, the program ("Systematica Radius Terminal") uses IE to build its GUI controls.

Strange, and even then it is detectable by AU3 Window Info tool....


----------------------------------------

:bye: Hey there, was I helpful?

----------------------------------------

My Current OS: Win8 PRO (64-bit); Current AutoIt Version: v3.3.8.1

Share this post


Link to post
Share on other sites

#5 ·  Posted (edited)

Strange, and even then it is detectable by AU3 Window Info tool....

Yep. Can see, can't touch. Just like striptease...

Is there any other way to interact with GUI controls (inc. created by IE)?

Edited by CbIP

Share this post


Link to post
Share on other sites

My last try:

$WINHANDLE = WinWaitActive("[TITLE:Systematica Radius Terminal]")
ControlClick($WINHANDLE, '', '[CLASS:Button; INSTANCE:267; TEXT:Reports]')

----------------------------------------

:bye: Hey there, was I helpful?

----------------------------------------

My Current OS: Win8 PRO (64-bit); Current AutoIt Version: v3.3.8.1

Share this post


Link to post
Share on other sites

#7 ·  Posted (edited)

No, this code doesn't work too :(

It is executed without any error, but nothing happens...

Edited by CbIP

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0