From 497318e24ab1fe08a803bff7476cfc386a6e4cc1 Mon Sep 17 00:00:00 2001 From: joten Date: Sun, 1 Feb 2015 22:19:40 +0100 Subject: [PATCH] Added a default rule ... ... for a Windows Explorer dialog type --- doc/Configuring_rules.md | 2 +- doc/Default_configuration.md | 18 +++++++++++------- src/Config.ahk | 13 +++++++------ 3 files changed, 19 insertions(+), 14 deletions(-) diff --git a/doc/Configuring_rules.md b/doc/Configuring_rules.md index 2c1ee18..66efc8c 100644 --- a/doc/Configuring_rules.md +++ b/doc/Configuring_rules.md @@ -59,7 +59,7 @@ The following `Config.ini` line replaces rule number 11 in the default configuration, putting windows of 'Mozilla Firefox' on view 5, keeping the title bar visible and maximizing them. -`Config_rule_#13=MozillaWindowClass;.*Mozilla Firefox;;1;0;16;0;1;0;maximize` +`Config_rule_#14=MozillaWindowClass;.*Mozilla Firefox;;1;0;16;0;1;0;maximize` #### Mozilla Thunderbird diff --git a/doc/Default_configuration.md b/doc/Default_configuration.md index 64e92f9..7d0b09c 100644 --- a/doc/Default_configuration.md +++ b/doc/Default_configuration.md @@ -297,23 +297,27 @@ reason as above. `Config_rule_#9=CabinetWClass;.*;;1;0;0;0;1;0;` > Windows Explorer. If the window's title bar is hidden, it looks distorted. -Config_rule_#10=Chrome_WidgetWin_1;.*;;1;0;0;0;1;0; +`Config_rule_#10=OperationStatusWindow;.*;;0;0;0;1;1;0;` +> Windows Explorer dialog.These windows should also be treated as pop-up +windows. + +`Config_rule_#11=Chrome_WidgetWin_1;.*;;1;0;0;0;1;0;` > Chrome web browser. If the window's title bar is hidden, it looks distorted. -Config_rule_#11=Chrome_WidgetWin_1;.*;Window_isPopup;0;0;0;1;1;1; +`Config_rule_#12=Chrome_WidgetWin_1;.*;Window_isPopup;0;0;0;1;1;1;` > With the preceding rule overriding #2 Chrome pop-up windows would be treated as new main windows. -Config_rule_#12=IEFrame;.*Internet Explorer;;1;0;0;0;1;0; +`Config_rule_#13=IEFrame;.*Internet Explorer;;1;0;0;0;1;0;` > Internet Explorer. If the window's title bar is hidden, it looks distorted. -Config_rule_#13=MozillaWindowClass;.*Mozilla Firefox;;1;0;0;0;1;0; +`Config_rule_#14=MozillaWindowClass;.*Mozilla Firefox;;1;0;0;0;1;0;` > Firefox web browser. If the window's title bar is hidden, it looks distorted. -Config_rule_#14=MozillaDialogClass;.*;;1;0;0;1;1;0; -> These windows are also pop-up windows. +`Config_rule_#15=MozillaDialogClass;.*;;1;0;0;1;1;0;` +> These windows should also be treated as pop-up windows. -`Config_ruleCount=14` +`Config_ruleCount=15` > This variable will be automatically set to the total number of active rules above. diff --git a/src/Config.ahk b/src/Config.ahk index eb2cd29..480b787 100644 --- a/src/Config.ahk +++ b/src/Config.ahk @@ -88,12 +88,13 @@ Config_init() { Config_rule_#7 := "AdobeFlashPlayerInstaller;.*;;1;0;0;1;0;0;" Config_rule_#8 := "CalcFrame;.*;;1;0;0;1;1;0;" Config_rule_#9 := "CabinetWClass;.*;;1;0;0;0;1;0;" - Config_rule_#10 := "Chrome_WidgetWin_1;.*;;1;0;0;0;1;0;" - Config_rule_#11 := "Chrome_WidgetWin_1;.*;Window_isPopup;0;0;0;1;1;1;" - Config_rule_#12 := "IEFrame;.*Internet Explorer;;1;0;0;0;1;0;" - Config_rule_#13 := "MozillaWindowClass;.*Mozilla Firefox;;1;0;0;0;1;0;" - Config_rule_#14 := "MozillaDialogClass;.*;;1;0;0;1;1;0;" - Config_ruleCount := 14 ;; This variable has to be set to the total number of active rules above. + Config_rule_#10 := "OperationStatusWindow;.*;;0;0;0;1;1;0;" + Config_rule_#11 := "Chrome_WidgetWin_1;.*;;1;0;0;0;1;0;" + Config_rule_#12 := "Chrome_WidgetWin_1;.*;Window_isPopup;0;0;0;1;1;1;" + Config_rule_#13 := "IEFrame;.*Internet Explorer;;1;0;0;0;1;0;" + Config_rule_#14 := "MozillaWindowClass;.*Mozilla Firefox;;1;0;0;0;1;0;" + Config_rule_#15 := "MozillaDialogClass;.*;;1;0;0;1;1;0;" + Config_ruleCount := 15 ;; This variable has to be set to the total number of active rules above. ;; Configuration management Config_autoSaveSession := "auto" ;; "off" | "auto" | "ask"