ok, got it working, used parts of script inspired by @DanThomas so I can use dspWindowPosition
dspWindowPosition
For more information, see the wiki Searching the Forum for Answers section.