My following alert test must be some kind of brain teaser...
I would think it would just work, but it just doesn't (on my machine anyway).
// TEST ALERT
// Set to true via Edit Studies works,
// set BACK to false doesn't work...
// sound still plays.
var vPlaySound = "..\\sounds\\Drip.wav";
var x = 0;
function preMain() {
setStudyTitle("test");
setPriceStudy(true);
var fp1 = new FunctionParameter( "vSound", FunctionParameter.BOOLEAN);
fp1.setName("Play Sound");
fp1.setDefault(false);
}
function main(vSound) {
debugPrint("Sound = " + vSound + " ("+ x + ")\n");
x++;
if(vSound) {Alert.playSound(vPlaySound)};
return;
}
Tried reloading script, tried capturing into another variable... no go.
Thanks.
-function THEO( EatingSkittles );
I would think it would just work, but it just doesn't (on my machine anyway).
// TEST ALERT
// Set to true via Edit Studies works,
// set BACK to false doesn't work...
// sound still plays.
var vPlaySound = "..\\sounds\\Drip.wav";
var x = 0;
function preMain() {
setStudyTitle("test");
setPriceStudy(true);
var fp1 = new FunctionParameter( "vSound", FunctionParameter.BOOLEAN);
fp1.setName("Play Sound");
fp1.setDefault(false);
}
function main(vSound) {
debugPrint("Sound = " + vSound + " ("+ x + ")\n");
x++;
if(vSound) {Alert.playSound(vPlaySound)};
return;
}
Tried reloading script, tried capturing into another variable... no go.
Thanks.
-function THEO( EatingSkittles );
Comment