Zoom to full window size


i use following script reset documents first page , zoom full window size (like ctrl+0):

 

with (app.activedocument.layoutwindows[0]) {

    activepage = app.activedocument.pages[0];

    screenmode = screenmodeoptions.previewtopage;

    zoom(zoomoptions.fitpage);

    }

 

i working on 15" laptop 24" screen connected it, , 24" screen set display (in windows 7).

 

when run script directly in indesign cs6 scripts panel, works fine. when run script using doscript in vb.net program, resulting document scaled though displayed on 15" screen of laptop. how can make indesign scale based on 24" screen , not 15" screen?

hi dan

 

try experimenting $.screens object

$.screens[0].right

result: 0

$.screens[0].right

result: 1366

$.screens[0].bottom

result: 728

$.screens[0]

result: 0:0-1366:728

$.screens.length

result: 1

do maths , bingo your'll zoom correct size.

 

trevor



More discussions in InDesign Scripting


adobe

Comments

Popular posts from this blog

Thread: Can not create raid array: mdadm: no raid-devices specified.

Thread: HOW TO: Package and theme GTK+ / Gtkmm apps in Linux for Windows

Thread: Twinview issues