• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

[JS SUI] If using a double monitor, how to set window show location?

Contributor ,
Apr 25, 2016 Apr 25, 2016

Copy link to clipboard

Copied

If using a double monitor, window(SUI) is displayed on the main monitor.

I want to display the window(SUI) based on the InDesign location.

How to get InDesign location?

Thanks.

TOPICS
Scripting

Views

508

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Advisor , Apr 25, 2016 Apr 25, 2016

app.activeWindow.bounds will give you the coordinates of the front-most window in Indesign. $.screens will give you information about the displays. You can use these two properties to infer the position of indesign.

Votes

Translate

Translate
Advisor ,
Apr 25, 2016 Apr 25, 2016

Copy link to clipboard

Copied

app.activeWindow.bounds will give you the coordinates of the front-most window in Indesign. $.screens will give you information about the displays. You can use these two properties to infer the position of indesign.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Apr 25, 2016 Apr 25, 2016

Copy link to clipboard

Copied

Hi Vamitul,

on Mac OSX with the application frame set (in contrast to the free floating windows), app.activeWindow.bounds is not working as expected. It will return the same values for all windows. And that are the values for the application frame window.
( Just a note )

It's great, if on Windows app.activeWindow.bounds is working as expected.

Uwe

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Advisor ,
Apr 25, 2016 Apr 25, 2016

Copy link to clipboard

Copied

Uwe, it is working correctly on OSX, but unexpected: when you enable the application frame Indesign literally only has one window, the application frame.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Contributor ,
Apr 25, 2016 Apr 25, 2016

Copy link to clipboard

Copied

Thank you very mach.

However, I want to get coordinates of InDesign without document.   Is it impossible?

-> I was get using the FindWindow, GetWindowRect in the sdk.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Apr 26, 2016 Apr 26, 2016

Copy link to clipboard

Copied

LATEST

K159 wrote:

…

However, I want to get coordinates of InDesign without document. Is it impossible?

-> I was get using the FindWindow, GetWindowRect in the sdk.

Ah. I guess, that's a different game…

Vamitul wrote:

Uwe, it is working correctly on OSX, but unexpected: when you enable the application frame Indesign literally only has one window, the application frame.

Hm, I would not say, that InDesign has only one window, if Application Frame is enabled.

app.windows.length

would return values greater than 0, if several documents or several windows of one document are open.

Uwe

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines