Preference Rank
Enabling different Target Window criteria for a certain rule, you are in the meantime changing its preference rank. This rank is used by the Control Center to automatically sort the list of rules by the exactness of their target window search condition: more exact become first, less exact become last. This order is essential for the process of selecting a proper rule for a certain window.
To define the exactness, each criterion has its own exactness weight, as specified in the following table.
Criterion | Weight |
---|---|
Window Caption (exact match) | 16 |
Window Caption (substring match) | 15 |
Window Caption (regexp match) | 14 |
Window Class | 8 |
Program | 4 |
Hence, the total preference rank of a certain rule is calculated as a simple sum of weights of criteria enabled for this rule. In the table below we provide all currently possible combinations of enabled/disabled criteria and the resulting preference rank (the "+"/"-" signs mean that the corresponding criterion is enabled/disabled accordingly):
Window Caption (exact match) |
Window Caption (substring match) |
Window Caption (regexp match) |
Window Class | Program | Total Rank |
---|---|---|---|---|---|
+ | - | - | + | + | 28 |
- | + | - | + | + | 27 |
- | - | + | + | + | 26 |
+ | - | - | + | - | 24 |
- | + | - | + | - | 23 |
- | - | + | + | - | 22 |
+ | - | - | - | + | 20 |
- | + | - | - | + | 19 |
- | - | + | - | + | 18 |
+ | - | - | - | - | 16 |
- | + | - | - | - | 15 |
- | - | + | - | - | 14 |
- | - | - | + | + | 12 |
- | - | - | + | - | 8 |
- | - | - | - | + | 4 |
If the Control Center, while arranging the list of rules, detects that two rules have equal ranks then it considers their natural order (i.e. in what order they appear in the Configuration window).