Note:

Little trick for better windows resizing using Keyboard Maestro: in SCREENVISIBLE function, use the Front index name instead of Main. Front select the screen which contain the front window. It means that the window you are going to resize will stay on the same monitor if you work multiple monitors.