Author Topic: PJSR - How to set the ImageWindow.activeWindow from a script  (Read 4444 times)

Offline bitli

  • PTeam Member
  • PixInsight Guru
  • ****
  • Posts: 513
Hello,
Is there a way to set the active window from a script. 
thanks -- bitli

Offline Juan Conejero

  • PTeam Member
  • PixInsight Jedi Grand Master
  • ********
  • Posts: 7111
    • http://pixinsight.com/
Re: PJSR - How to set the ImageWindow.activeWindow from a script
« Reply #1 on: 2012 April 06 12:39:12 »
Hi Bitli,

Quote
Is there a way to set the active window from a script.

Sure. Just call this method:

void ImageWindow.bringToFront()

If you want to select a specific view of the window, assign it to its currentView property:

View ImageWindow.currentView

Let me know if this helps.
Juan Conejero
PixInsight Development Team
http://pixinsight.com/

Offline bitli

  • PTeam Member
  • PixInsight Guru
  • ****
  • Posts: 513
Re: PJSR - How to set the ImageWindow.activeWindow from a script
« Reply #2 on: 2012 April 07 00:22:30 »
Works like a charm thanks.
The fulldId was also helpful.
-- bitli