Donnez vie à vos documents numériques !
 

Répondre à : Interrompre un script

abracadabraPDF Forums PDF – Général Interrompre un script Répondre à : Interrompre un script

#59762
Merlin
Maître des clés

OK, alors ça se joue avec le paramètre nButton:

1 — OK
2 — Cancel
3 — No
4 — Yes

Exemple extrait de la doc. :

Close the document with the user’s permission:
// A MouseUp action
var nButton = app.alert({
cMsg: « Do you want to close this document? »,
cTitle: « A message from A. C. Robat »,
nIcon: 2, nType: 2
});
if ( nButton == 4 )
{this.closeDoc();}