Moving and resizing window

You may find some help in this macro......

also for debugging, move each of the params(4) to a set of values (4) as result may not be what you were expecting.