Added a default rule for child windows.
This commit is contained in:
parent
dfac9a19aa
commit
9f42612f84
5 changed files with 48 additions and 35 deletions
|
@ -78,6 +78,7 @@ called with the window ID as a paramater, when applying the rule.
|
|||
| | `+` `Config_rule_#14` | | |
|
||||
| | `+` `Config_rule_#15` | | |
|
||||
| | `+` `Config_rule_#16` | | |
|
||||
| | `+` `Config_rule_#17` | | |
|
||||
|
||||
### 8.4.0
|
||||
|
||||
|
|
|
@ -55,11 +55,11 @@ An example would be the value `17` for views 1 and 5.
|
|||
|
||||
#### Mozilla Firefox
|
||||
|
||||
The following `Config.ini` line replaces rule number 11 in the default
|
||||
The following `Config.ini` line replaces rule number 16 in the default
|
||||
configuration, putting windows of 'Mozilla Firefox' on view 5, keeping the
|
||||
title bar visible and maximizing them.
|
||||
|
||||
`Config_rule_#15=MozillaWindowClass;.*Mozilla Firefox;;1;0;16;0;1;0;maximize`
|
||||
`Config_rule_#16=MozillaWindowClass;.*Mozilla Firefox;;1;0;16;0;1;0;maximize`
|
||||
|
||||
#### Mozilla Thunderbird
|
||||
|
||||
|
|
|
@ -275,56 +275,60 @@ view, not floating (i. e. tiled), the window title bar is not visible, the
|
|||
title is not hidden on the bug.n status bar and no window action is taken, when
|
||||
the window first is created.
|
||||
|
||||
`Config_rule_#2=.*;.*;Window_isPopup;0;0;0;1;1;1;`
|
||||
`Config_rule_#2=.*;.*;Window_isChild;0;0;0;1;1;1;`
|
||||
> Child windows (style WS_CHILD) will not be managed, are floating and the
|
||||
titles are hidden.
|
||||
|
||||
`Config_rule_#3=.*;.*;Window_isPopup;0;0;0;1;1;1;`
|
||||
> Pop-up windows (style WS_POPUP) will not be managed, are floating and the
|
||||
titles are hidden.
|
||||
|
||||
`Config_rule_#3=QWidget;.*;;1;0;0;0;0;0;`
|
||||
`Config_rule_#4=QWidget;.*;;1;0;0;0;0;0;`
|
||||
> Windows created by QT (QWidget) have the style WS_POPUP, but should be
|
||||
excluded from the preceding rule.
|
||||
|
||||
`Config_rule_#4=SWT_Window0;.*;;1;0;0;0;0;0;`
|
||||
`Config_rule_#5=SWT_Window0;.*;;1;0;0;0;0;0;`
|
||||
> Also windows created by Java (SWT) e. g. Eclipse should be excluded from the
|
||||
second rule for the same reason as above.
|
||||
|
||||
`Config_rule_#5=Xming;.*;;1;0;0;0;0;0;`
|
||||
`Config_rule_#6=Xming;.*;;1;0;0;0;0;0;`
|
||||
> Also Xming windows should be excluded from the second rule for the same
|
||||
reason as above.
|
||||
|
||||
Config_rule_#6=MsiDialog(No)?CloseClass;.*;;1;0;0;1;1;0;
|
||||
Config_rule_#7=AdobeFlashPlayerInstaller;.*;;1;0;0;1;0;0;
|
||||
Config_rule_#7=MsiDialog(No)?CloseClass;.*;;1;0;0;1;1;0;
|
||||
Config_rule_#8=AdobeFlashPlayerInstaller;.*;;1;0;0;1;0;0;
|
||||
|
||||
`Config_rule_#8=CalcFrame;.*;;1;0;0;1;1;0;`
|
||||
`Config_rule_#9=CalcFrame;.*;;1;0;0;1;1;0;`
|
||||
> Windows calculator.
|
||||
|
||||
`Config_rule_#9=CabinetWClass;.*;;1;0;0;0;1;0;`
|
||||
`Config_rule_#10=CabinetWClass;.*;;1;0;0;0;1;0;`
|
||||
> Windows Explorer. If the window's title bar is hidden, it looks distorted.
|
||||
|
||||
`Config_rule_#10=OperationStatusWindow;.*;;0;0;0;1;1;0;`
|
||||
`Config_rule_#11=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;`
|
||||
`Config_rule_#12=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_#12=Chrome_WidgetWin_1;.*;Window_isPopup;0;0;0;1;1;0;`
|
||||
`Config_rule_#13=Chrome_WidgetWin_1;.*;Window_isPopup;0;0;0;1;1;0;`
|
||||
> With the preceding rule overriding #2 Chrome pop-up windows would be treated
|
||||
as new main windows.
|
||||
|
||||
`Config_rule_#13=Chrome_RenderWidgetHostHWND;.*;;0;0;0;1;1;0;`
|
||||
`Config_rule_#14=Chrome_RenderWidgetHostHWND;.*;;0;0;0;1;1;0;`
|
||||
> These windows may represent new tabs, which should not be treated as new
|
||||
windows.
|
||||
|
||||
`Config_rule_#14=IEFrame;.*Internet Explorer;;1;0;0;0;1;0;`
|
||||
`Config_rule_#15=IEFrame;.*Internet Explorer;;1;0;0;0;1;0;`
|
||||
> Internet Explorer. If the window's title bar is hidden, it looks distorted.
|
||||
|
||||
`Config_rule_#15=MozillaWindowClass;.*Mozilla Firefox;;1;0;0;0;1;0;`
|
||||
`Config_rule_#16=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_#16=MozillaDialogClass;.*;;1;0;0;1;1;0;`
|
||||
`Config_rule_#17=MozillaDialogClass;.*;;1;0;0;1;1;0;`
|
||||
> These windows should also be treated as pop-up windows.
|
||||
|
||||
`Config_ruleCount=16`
|
||||
`Config_ruleCount=17`
|
||||
> This variable will be automatically set to the total number of active rules
|
||||
above.
|
||||
|
||||
|
|
|
@ -78,24 +78,25 @@ Config_init() {
|
|||
Config_viewFollowsTagged := False
|
||||
Config_viewMargins := "0;0;0;0"
|
||||
|
||||
;; Config_rule_#<i> := '<class>;<title>;<function name>;<is managed>;<m>;<tags>;<is floating>;<is decorated>;<hide title>;<action>'
|
||||
;; Config_rule_#<i> := "<class>;<title>;<function name>;<is managed>;<m>;<tags>;<is floating>;<is decorated>;<hide title>;<action>"
|
||||
Config_rule_#1 := ".*;.*;;1;0;0;0;0;0;"
|
||||
Config_rule_#2 := ".*;.*;Window_isPopup;0;0;0;1;1;1;"
|
||||
Config_rule_#3 := "QWidget;.*;;1;0;0;0;0;0;"
|
||||
Config_rule_#4 := "SWT_Window0;.*;;1;0;0;0;0;0;"
|
||||
Config_rule_#5 := "Xming;.*;;1;0;0;0;0;0;"
|
||||
Config_rule_#6 := "MsiDialog(No)?CloseClass;.*;;1;0;0;1;1;0;"
|
||||
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 := "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;0;"
|
||||
Config_rule_#13 := "Chrome_RenderWidgetHostHWND;.*;;0;0;0;1;1;0;"
|
||||
Config_rule_#14 := "IEFrame;.*Internet Explorer;;1;0;0;0;1;0;"
|
||||
Config_rule_#15 := "MozillaWindowClass;.*Mozilla Firefox;;1;0;0;0;1;0;"
|
||||
Config_rule_#16 := "MozillaDialogClass;.*;;1;0;0;1;1;0;"
|
||||
Config_ruleCount := 16 ;; This variable has to be set to the total number of active rules above.
|
||||
Config_rule_#2 := ".*;.*;Window_isChild;0;0;0;1;1;1;"
|
||||
Config_rule_#3 := ".*;.*;Window_isPopup;0;0;0;1;1;1;"
|
||||
Config_rule_#4 := "QWidget;.*;;1;0;0;0;0;0;"
|
||||
Config_rule_#5 := "SWT_Window0;.*;;1;0;0;0;0;0;"
|
||||
Config_rule_#6 := "Xming;.*;;1;0;0;0;0;0;"
|
||||
Config_rule_#7 := "MsiDialog(No)?CloseClass;.*;;1;0;0;1;1;0;"
|
||||
Config_rule_#8 := "AdobeFlashPlayerInstaller;.*;;1;0;0;1;0;0;"
|
||||
Config_rule_#9 := "CalcFrame;.*;;1;0;0;1;1;0;"
|
||||
Config_rule_#10 := "CabinetWClass;.*;;1;0;0;0;1;0;"
|
||||
Config_rule_#11 := "OperationStatusWindow;.*;;0;0;0;1;1;0;"
|
||||
Config_rule_#12 := "Chrome_WidgetWin_1;.*;;1;0;0;0;1;0;"
|
||||
Config_rule_#13 := "Chrome_WidgetWin_1;.*;Window_isPopup;0;0;0;1;1;0;"
|
||||
Config_rule_#14 := "Chrome_RenderWidgetHostHWND;.*;;0;0;0;1;1;0;"
|
||||
Config_rule_#15 := "IEFrame;.*Internet Explorer;;1;0;0;0;1;0;"
|
||||
Config_rule_#16 := "MozillaWindowClass;.*Mozilla Firefox;;1;0;0;0;1;0;"
|
||||
Config_rule_#17 := "MozillaDialogClass;.*;;1;0;0;1;1;0;"
|
||||
Config_ruleCount := 17 ;; This variable has to be set to the total number of active rules above.
|
||||
|
||||
;; Configuration management
|
||||
Config_autoSaveSession := "auto" ;; "off" | "auto" | "ask"
|
||||
|
|
|
@ -67,6 +67,13 @@ Window_hide(wndId) {
|
|||
}
|
||||
}
|
||||
|
||||
Window_isChild(wndId) {
|
||||
WS_POPUP = 0x40000000
|
||||
WinGet, wndStyle, Style, ahk_id %wndId%
|
||||
|
||||
Return, wndStyle & WS_POPUP
|
||||
}
|
||||
|
||||
Window_isElevated(wndId) {
|
||||
WinGetTitle, wndTitle, ahk_id %wndId%
|
||||
WinSetTitle, ahk_id %wndId%, , % wndTitle " "
|
||||
|
|
Loading…
Reference in a new issue