I use a MacBook and have dual monitors, both at home and at work. The problem is that at home the icons are on the right screen and at work on the left screen.
Is there a way to determine which is the main and which is the second screen based on the position of icons? I would like to use it as a variable and based on that determine whether the left screen is main or vice versa as I would like to position (move and resize) windows based on right/left and not on main/second screen.
You can get the frame coordinates of any screen using the %Screen% token.
So for example, %ScreenVisible%Main% gives the visible frame of the main screen.
See Screen token.