Forums list
New topics
Topics list
Search
Help
Login
Register


Topic: «Application Default Window Specification Rule » on forum: Window Rules, or Tips and Tricks   Views: 3914
 
Greg Webb
Advanced user
 
Posts: 126
Joined: 05.06.2007
Posted: 30.04.2013 23:08:31
 
 
When writing more than one rule for an application, consider writing a 'default rule' to catch the windows that are not directly referenced in the specified rules. The default rule is one that specifies what happens when the other rules don't apply. I have found that it is easy to specify rules for the specific circumstances one wants to control but they can have undesirable affects on other windows in different circumstances, often not seen until much later.

The default rule is only meaningful when you have more than one rule for an application. The rule is placed after the last application window rule as illustrated below.

    Outlook Rule 1
    Outlook Rule 2
    Outlook Rule – Default

The default rule works by specifying in the Target Window with the minimal identification, that is, the program name. By omitting the window type and caption, the rule applies to all window types and captions.

See attached image.

The default rule can be used in one of two ways. First it can be used to specify how windows not caught be the specific rules should be handled. Normally this will mean 'do nothing'.

Second, the default rule can be used in debug mode to highlight windows that are not caught by the specific rules. The default rule can make the windows 'stand out' by changing window titles or positioning in unusual places.

b08e0456f307adba13f10495a0f671a8
 
Top


User(s) reading this topic
Number of guests: 1, registered members: 0, in total hidden: 0


Forums list
New topics
Topics list
Search
Help
Login
Register