1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
| //added by Damien
var checkEveryTime = { value: false };
//modified windows <=> first "null"
var rv = ps.confirmEx(windows, promptTitle, promptMessage,
(IPS.BUTTON_TITLE_YES * IPS.BUTTON_POS_0) +
(IPS.BUTTON_TITLE_NO * IPS.BUTTON_POS_1),
null, null, null, checkboxLabel, checkEveryTime);
//added by Damien
var checkEveryTime = { value: false };
var rv = 99;
if (rv == 0) {
shell.setDefaultBrowser(true, false);
shell.shouldCheckDefaultBrowser = checkEveryTime.value;
}
}
} |
Partager