1

A certain program's control ClassnameNN was identified by AutoIt Window Information Tool as:

WindowsForms10.BUTTON.app.0.24f4a7c_r27_ad19 in a previous version. In the current version it changed to:

WindowsForms10.BUTTON.app.0.24f4a7c_r13_ad19 (notice the changes after r).

How to use a regular expression to solve this problem for future versions? Any workaround too is highly appreciable.

user4157124
  • 2,809
  • 13
  • 27
  • 42
Abhishek_Mishra
  • 4,551
  • 4
  • 25
  • 38

1 Answers1

3

How to use a regular expression to solve this problem for future versions?

Regular expression:

WindowsForms10\.BUTTON\.app\.0\.24f4a7c_r(13|27)_ad19

Visual explanation: Regular expression visualization

Translates to ClassNN definition as:

[TITLE:My Window; REGEXPCLASSNN:WindowsForms10\.BUTTON\.app\.0\.24f4a7c_r(13|27)_ad19]

Change (13|27) to (\d*) if any combination of digits should match (as per AutoIt regular expressions).

user4157124
  • 2,809
  • 13
  • 27
  • 42