Yea, middle button does not work on some windows, for example like these frameless ones that this app is constructed of.
But strange then, no idea what could differ then. You can always paste a screenshot of your rules here so we can compare but really did not change any default so beats me.
What you can do to just make sure your naming is the same, enable window logging (from settings), restart VW, then tail the logfile and open mail app and see what VW writes. In my case it was the two strings I mentioned, but maybe you have another language so it is not "Mail"?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
My intent is to have Mail app only on Desktop 1. When context is in Desktop 2, and Mail app is started, it stays in Desktop 2. I would have thought that it would be moved to Desktop 2.
However, when I hit 'reapply rules', it is moved to Desktop 1.
This is very helpful. Here are the logs I am getting.
[2021-10-13 10:51:25:901] Got new unmanaged window 51362 Proc 11324 Flg 22 0 (8c000000) 0
[2021-10-13 10:51:25:901] Linking all window c1574 app windows
[2021-10-13 10:51:25:902] Got new window c1574 95cf0000 00200100 Flg 143eb Desk 2 Proc 11324 209d0 Link 80976 Pos -1928 -8
Class "ApplicationFrameWindow" Title "Mail"
[2021-10-13 10:51:25:902] Got NWin Activation: c1574 (2 2 143eb 1)
[2021-10-13 10:51:26:151] Set window desk: 412d8 1 1 (c1574)
[2021-10-13 10:51:26:222] Got new window 412d8 84000000 00200000 Flg 1406b Desk 1 Proc 21008 0 Link 0 Pos 0 8
Class "Windows.UI.Core.CoreWindow" Title "Mail"
[2021-10-13 10:51:26:415] vwWindowShowHide b0d6e 0 16b 200000 1 2 - HUNG
My current config
flags# 92160
0n# ApplicationFrameWindow
1n# Mail
desk# 1
flags# 92160
0n# Windows.UI.Core.CoreWindow
1n# Mail
desk# 1
flags# 92672
0n# ApplicationFrameWindow
1n# Inbox - Gmail ?- Mail
desk# 1
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
You mean you want it to auto move to desk 1 even if opened on desk 2?
Think that would be possible, cannot test right now however since on Linux work computer.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Window rules for mail app
- check automatically move to desk 1.
- check Move windows immediately.
- Then select on hidden window activation, chose ignore the event (or change globally for all according to your preference).
Don't forget to click modify to apply your rule.
Now mail app will always start on Desk 1 no matter what desktop you are on when starting it.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi folks, setting up virtuawin and trying to get the windows rules working.
Any guidance on how to setup a window rule (ie identifying) the windows 10 mail app?
https://www.microsoft.com/en-us/p/mail-and-calendar/9wzdncrfhvqm?activetab=pivot:overviewtab
Hi.
I set it up now successfully with
Class name: ApplicationFrameWindow
Window name: Mail
All other settings default.
Thanks Johan,
Unfortunately, that doesn't seem to work for me. Very odd.
The middle mouse button to get the window rule information doesn't work with the Mail app.
Any suggestions on how to proceed?
Yea, middle button does not work on some windows, for example like these frameless ones that this app is constructed of.
But strange then, no idea what could differ then. You can always paste a screenshot of your rules here so we can compare but really did not change any default so beats me.
What you can do to just make sure your naming is the same, enable window logging (from settings), restart VW, then tail the logfile and open mail app and see what VW writes. In my case it was the two strings I mentioned, but maybe you have another language so it is not "Mail"?
My intent is to have Mail app only on Desktop 1. When context is in Desktop 2, and Mail app is started, it stays in Desktop 2. I would have thought that it would be moved to Desktop 2.
However, when I hit 'reapply rules', it is moved to Desktop 1.
This is very helpful. Here are the logs I am getting.
My current config
You mean you want it to auto move to desk 1 even if opened on desk 2?
Think that would be possible, cannot test right now however since on Linux work computer.
Ok, back on Windows.
Window rules for mail app
- check automatically move to desk 1.
- check Move windows immediately.
- Then select on hidden window activation, chose ignore the event (or change globally for all according to your preference).
Don't forget to click modify to apply your rule.
Now mail app will always start on Desk 1 no matter what desktop you are on when starting it.
Thank-you Johan! This works!