Jump to content

Space in Control Name


Recommended Posts

I have an older application and there are padded spaces in the name of the control.

for example, one ok button would be ' &OK' and another would be ' &OK'

is there anyway to have autoIT ignore the spaces ?

more specifically I'm using the following command

ControlClick("Form Title", "" , "[TEXT: &OK]")

and unless I get the spaces exactly right, it fails to find the object.

for this application, from past experience with Winrunner, I would prefer to stay away from Control ID's. they are not always the same from machine to machine.

Thoughts ?

- Jason

Link to comment
Share on other sites

I have an older application and there are padded spaces in the name of the control.

for example, one ok button would be ' &OK' and another would be ' &OK'

is there anyway to have autoIT ignore the spaces ?

Can you use the "search and replace" option in the menu ?

I always use that for such jobs

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...