How to resize window so it takes up 97% of the display width from the right hand side?

I would like to resize a window as follows:
• it takes up 97% of the display width from the right hand side
• it takes full height

The reason I am working in percentages is because I change displays, and so want the macro to work across all displays.

To make it clearer, I want the finished window to look like this (The yellow Chrome window):

If I use, move and resize front window, then I can get it so it takes up 97% of the display width from the left hand side, but I am not sure how to do it from the right hand side.

Thanks for any suggestions!

Use

SCREENVISIBLE(Main,Left,3%), SCREENVISIBLE(Main,Width)*97%.

or perhaps slightly better pixel-wise:

SCREENVISIBLE(Main,Right)-FLOOR(SCREENVISIBLE(Main,Width)*97%), FLOOR(SCREENVISIBLE(Main,Width)*97%)
1 Like

A post was split to a new topic: How Do I Align Right Side of Window to Center of Screen?