Jump to content
Macro Express Forums

How to Get Control of a Feature Whose Name Changes?


Recommended Posts

Is there anything in common between the names of the controls? For example, do they always contain "ABC 123"?

 

If yes, I think it is possible to extract the text of the control into a text variable, and then test it to see whether that variable contains the string that is common to all of your target controls.

Link to comment
Share on other sites

Is there anything in common between the names of the controls? For example, do they always contain "ABC 123"?

 

If yes, I think it is possible to extract the text of the control into a text variable, and then test it to see whether that variable contains the string that is common to all of your target controls.

Now I do have a situation where a control has varying Window Text with a common term in all situations, but I'm not seeing how to extract the text. At first I thought Get Control might allow a partial-text target (the common text), but that's not the case.

 

Appreciate any suggestions.

Link to comment
Share on other sites

AutoIt allows you to identify controls by a number of different criteria, i.e. ID, Text, Class, position and size, instance. Having identified a control, you can then retrieve, and also set, its text. Since AutoIt interfaces directly with MEP, you might want to take a look.

AutoIt

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...