Sign in to follow this  
Followers 0
mcbuddah

Basic ControlCommand problem

9 posts in this topic

I checked the help file and I believe I have the correct syntax of code and am not spelling anything incorrectly. I'm missing something basic but I need some more eyes to take a look at what I'm doing wrong.

I am attempting to simply uncheck these top three checkbox's in Microsoft Word under Tools -> Customize. I have attached a picture to help, as well as the code I have thus far.

ControlCommand("Customize", "", "Me&nus show recently used commands first", "Uncheck", "")
Sleep(500)

ControlCommand("Customize", "", "Standard and Formatting toolbars &share one row", "Uncheck", "")
Sleep(500)

ControlCommand("Customize", "", "Show s&hortcut keys in ScreenTips", "Check", "")

Share this post


Link to post
Share on other sites



You should us the AU3_Spy in the start menu do find the control id instead of worrying about the wrong spelling.


Who else would I be?

Share this post


Link to post
Share on other sites

You should us the AU3_Spy in the start menu do find the control id instead of worrying about the wrong spelling.

<{POST_SNAPBACK}>

I tried that and I don't get a control id or classname. :)

Share this post


Link to post
Share on other sites

AFAIK, If you don't get a name then you cannot use Control* commands to manipulate the controls.

*** Matt @ MPCS

Share this post


Link to post
Share on other sites

AFAIK, If you don't get a name then you cannot use Control* commands to manipulate the controls.

*** Matt @ MPCS

<{POST_SNAPBACK}>

Aha! I knew I was missing something very basic. Thanks :)

Share this post


Link to post
Share on other sites

#6 ·  Posted (edited)

Doesn't seem to have any "Standard" Controls to use .. one sec...

Only thing Class list shows is:

MsoCommandBar

ScrollBar

ScrollBar

ScrollBar

RichEdit20W

This is fairly typical of Microsoft products not following standard windows rules and forms. :)

Edited by scriptkitty

AutoIt3, the MACGYVER Pocket Knife for computers.

Share this post


Link to post
Share on other sites

Doesn't seem to have any "Standard" Controls to use .. one sec...

Only thing Class list shows is:

MsoCommandBar

ScrollBar

ScrollBar

ScrollBar

RichEdit20W

This is fairly typical of Microsoft products not following standard windows rules and forms. :)

<{POST_SNAPBACK}>

Yeah, I figured this would be the easy part of my script, guess not. :)

Share this post


Link to post
Share on other sites

You can analyse the Commandbars with Microsoft Active Accessibility. See this Topic.

Share this post


Link to post
Share on other sites

hay! i read all and now see it is 2004 stuff. you get me good. ~Jap

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