Time out message box

The time-out message box provides the possibility to add a delay in executing a function.

In the example, the delay is 10 seconds. BrainVoyager QX will exit immediately when the user clicks "OK". In case the user does not click at all, BrainVoyager will exit after the delay of 10 seconds:

 

function Counting_message_box() {

 

var delay = 10; // in seconds

var response = BrainVoyagerQX.TimeOutMessageBox("Quit BrainVoyager QX...", delay);

if (response) {

BrainVoyagerQX.Exit();

}

}