Sign in to follow this  
Followers 0
big_daddy

Help troubleshooting syntax of ControlCommand()

4 posts in this topic

#1 ·  Posted (edited)

Okay, everytime I try to use ControlCommand it never works. This is what I'm trying to use:

ControlCommand("Configure PC5250", "", "ComboBox2", "SetCurrentSelection", "27x132")

and 

ControlCommand("Window Setup", "", "Button13", "UnCheck", "")

Neither one of them do what they should. I'm pretty sure I have the syntax right? If anyone could help me out here I'd really appreciate it.

Edited by big_daddy

Share this post


Link to post
Share on other sites



They look right to me... Are the windows your trying to use them on accepting any other control commands ie... ControlClick() / Focus() / etc... ?

Are those the 'Full' Titles of the windows your trying to act in?

Every time I play with ControlCommand(), I have to be totally specific, or it fails.


[center]Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.[/center]

Share this post


Link to post
Share on other sites

They look right to me... Are the windows your trying to use them on accepting any other control commands ie... ControlClick() / Focus() / etc... ?

Well this works:

ControlClick ("Configure PC5250", "", "Button17")

On the same window I'm trying to use this on:

ControlCommand("Configure PC5250", "", "ComboBox2", "SetCurrentSelection", "27x132")

Are those the 'Full' Titles of the windows your trying to act in?

Yes those are the full titles.

Share this post


Link to post
Share on other sites

I can use this to make it work, but thats not very fail safe:

ControlSend("Configure PC5250", "", "ComboBox2", "{Down}")

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