A function to center a chart over an arrow incluse a Playsound function.
The print do show the result, but, strangely, MC 64 does not always activate the PlaySound function.. No .wav file is played. The file do exist at the location
Code: Select all
If arrownumber <>-2 then begin
count = count +1;
print (arrownumber:0:0, " ", count:0:0);
ArrowBarNumber = arw_getbarnumber(arrowNumber);
Print(ArrowbarNumber:0:0, " " , arrownumber);
scrolltobar(1,arrowbarnumber + MaxBarsBack);
playsound("G:\Users\Utilisateur\Documents\Bourse\Sound\Scroll to selected arrow.wav");
end
else begin
playsound("G:\Users\Utilisateur\Documents\Bourse\Sound\No Arrow on the chart.wav");
end;