The online KB 2176 for isPlayBackMode() has an example.
I copied it into a script, but the syntax checker fails it (on the isPlayBackMode() line).
Is this for Bar Replay? Neither this article, nor 2178 "isReplayMode() " say what "Replay" they mean.
Also, I've not got far testing a script in Bar Replay mode, but as far as I can tell:
1) BARSTATE_NEWBAR is not sent for Replay'ed Bars (any bar drawn when I click a "Right Arrow, single step or "Play"). I see state == 1 (CURRENTBAR I suppose)
2) Relative Annotation (drawTextRelative(0,AboveBar1....)" produces a letter that does not move with the bars as I advance the bars using the replay buttons.
Is there a problem testing scripts with Bar Replay, or am I missing something?
Thanks
I copied it into a script, but the syntax checker fails it (on the isPlayBackMode() line).
PHP Code:
if ( isPlayBackMode( $PLAYBACK getSymbol() ) == true ) {
debugPrint( "Sorry. This script does not run in playback mode.\n" );
bBail=true;
return;
}
Also, I've not got far testing a script in Bar Replay mode, but as far as I can tell:
1) BARSTATE_NEWBAR is not sent for Replay'ed Bars (any bar drawn when I click a "Right Arrow, single step or "Play"). I see state == 1 (CURRENTBAR I suppose)
2) Relative Annotation (drawTextRelative(0,AboveBar1....)" produces a letter that does not move with the bars as I advance the bars using the replay buttons.
Is there a problem testing scripts with Bar Replay, or am I missing something?
Thanks
Comment