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.
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.
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.
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
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.
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.
Copy link to clipboard
Copied
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