Sign in to follow this  
Followers 0
sagirajuramaraju

Why ControlCommand function is not working for the combobox

8 posts in this topic

Hi,

I have a combobox with classname "TOraLookupCombobox1", function ControlCommand is not working if I mention the classname at the palce of ControlID. But the remaining functions "ControlClick, ControlSend, ControlGetText, ControlGetHandle" are working well with the same class name.

Why the controlCommand is not working can any one help me in this issue.

-Ramaraju

Share this post


Link to post
Share on other sites



Some controls will resist automation unless they are the active window. Use the WinActive() function to force the control's window to the top before using ControlCommand() on these controls.

Certain commands that work on normal Combo and ListBoxes do not work on "ComboLBox" controls.


UnderWorldVN- Just play the way you like it

Share this post


Link to post
Share on other sites

The classNN should be the first param not the third.

The first three params of ControlCommand should be the same as ControlGetHandle (if its the same control)


Post your code because code says more then your words can. SciTe Debug mode - it's magic: #AutoIt3Wrapper_run_debug_mode=Y. Use Opt("MustDeclareVars", 1)[topic="84960"]Brett F's Learning To Script with AutoIt V3[/topic][topic="21048"]Valuater's AutoIt 1-2-3, Class... is now in Session[/topic]Contribution: [topic="87994"]Get SVN Rev Number[/topic], [topic="93527"]Control Handle under mouse[/topic], [topic="91966"]A Presentation using AutoIt[/topic], [topic="112756"]Log ConsoleWrite output in Scite[/topic]

Share this post


Link to post
Share on other sites

I tried with WinActive(), after using also it is not working is there any other way thanks in advance.

Share this post


Link to post
Share on other sites

#6 ·  Posted (edited)

Please post your code.

For ControlClick = ControlGetText("Import Options","","TOraLookupCombobox1") - Working

For ControlCommand = ControlCommand("Import Options","","TOraLookupCombobox1","SelectString",'ICN_IPD_MAP') - not working

Edited by sagirajuramaraju

Share this post


Link to post
Share on other sites

For ControlClick = ControlGetText("Import Options","","TOraLookupCombobox1") - Working

For ControlCommand = ControlCommand("Import Options","","TOraLookupCombobox1","SelectString",'ICN_IPD_MAP') - not working

ICN_IPD_MAP - what this?

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