Got it to work by first clicking in the extreme right of the window size box, click-dragging to select the non visible text (maybe too small a font size?) then hitting delete. Then entering the window size and clicking on the enter key, did that for both width and height and it entered the correct window size and coordinates in the code box. The copy to clipboard also worked. So to fix the problem you need to be sure the existing text for window width and height is visible in the box and maybe having another button to activate the script. If I do not adjust the window size the code does not use the relocated window coordinates. But if I also click on the show marker in the middle of the map box it does enter the correct coordinates into the code box.