Skip to main content
K.Daube
Community Expert
Community Expert
September 25, 2018
Answered

How to refresh the document window?

  • September 25, 2018
  • 1 reply
  • 2248 views

At the end of my lenghthy script the display of the document does not reflect the work of the script.

I always must type CTRL+l to refresh the display.

Now I tried to use this function:

function ZRefresh() { // === Refresh screen =======================================================

  FcodeList = new Array(FCodes.KBD_REFRESHWIN);

  Fcodes(FcodeList);

}

But this does not the trick - I still need to use the keyboard myself...

Any suggestions?

Maybe a function to switch to master pages and back (igrnoring overwrites).

Better approches?

This topic has been closed for replies.
Correct answer frameexpert

Redisplay (); // Lowercase d

Reformat (); // Lowercase f

1 reply

Inspiring
September 25, 2018

Hi Klaus,

On document Level there are two functions

ReDisplay();

ReFormatting();

Does this help?

Markus

K.Daube
Community Expert
K.DaubeCommunity ExpertAuthor
Community Expert
September 25, 2018

Thank You, Markus,

app.ActiveDoc.ReFormatting(); did it!

Maybe CTL+l is the equivalent to ReFormatting() and not to ReDisplay(), which has no effect in my case.

But... also this works only randomly...

ExtendScript seems to be a simulation of a gambling hall (at least in my current perception).