Author Topic: PSJR move ImageWindow  (Read 2866 times)

Offline dougggg

  • Newcomer
  • Posts: 18
PSJR move ImageWindow
« on: 2017 August 10 14:02:32 »
I've tried but no success. How can an ImageWindow object be moved at a specific location on the PixInsight desktop?

Doug

Offline mschuster

  • PTeam Member
  • PixInsight Jedi
  • *****
  • Posts: 1087
Re: PSJR move ImageWindow
« Reply #1 on: 2017 August 10 20:11:48 »
Doug,

As a test, try typing PSJR into the Process Console window, prefix with "js":

js ImageWindow.windowById("a").position

prints the position of ImageWindow named "a".

js ImageWindow.windowById("a").position = new Point(200, 200)

sets its position to (200, 200).

Regards,
Mike

Offline dougggg

  • Newcomer
  • Posts: 18
Re: PSJR move ImageWindow
« Reply #2 on: 2017 August 11 03:22:13 »
That worked!

Thank you

Offline oldwexi

  • PixInsight Guru
  • ****
  • Posts: 627
    • Astronomy Pages G.W.
Re: PSJR move ImageWindow
« Reply #3 on: 2017 August 11 06:10:46 »
Hi Mike!
Thanks for this nice "trick"... 8)
Gerald