Sign in to follow this  
Followers 0
madmatrix

Issue with "Control" command in Window GUI

3 posts in this topic

#1 ·  Posted (edited)

Hi there,

I'm using control series command shown as below to send text and choose combox list in one windows program. The weird thing is I see the text input on the edit bar. But when I click in the edit bar, the text I send there just disappeared. I tried controlsettext, it's same result. Also, the combo box doesn't work. I can make it dropdown the list but can't make anything selected. Do I miss something? Thanks a lot.

CODE
ControlSend("Shipping Assistant 3.6", "", "[CLASS:WindowsForms10.EDIT.app.0.21af1a5; INSTANCE:3]", "Shipper")

ControlSend("Shipping Assistant 3.6", "", "[CLASS:WindowsForms10.EDIT.app.0.21af1a5; INSTANCE:2]", "Shipper")

ControlSend("Shipping Assistant 3.6", "", "[CLASS:WindowsForms10.EDIT.app.0.21af1a5; INSTANCE:11]", "1234 Xing Dr.")

ControlSend("Shipping Assistant 3.6", "", "[CLASS:WindowsForms10.EDIT.app.0.21af1a5; INSTANCE:10]", "")

ControlCommand ( "Shipping Assistant 3.6", "", "[CLASS:WindowsForms10.COMBOBOX.app.0.21af1a5; INSTANCE:2]", "SelectString", 'Missouri' )

Lou

Edited by madmatrix

Share this post


Link to post
Share on other sites



Not sure of what you are trying to do here. Can you post the info tool output?


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 found the problem. Before I send the text to the control edit bar, I need focus on that control and then set the text inside it. :D

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