Jump to content

Help troubleshooting syntax of ControlCommand()


 Share

Recommended Posts

  • Moderators

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
Link to comment
Share on other sites

  • Moderators

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.

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.

Link to comment
Share on other sites

  • Moderators

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.

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...