PDA

View Full Version : Premature AutoConfirm



bradl
10-05-2004, 01:53 PM
I need some help with Autoconfirm within several LScripts. I want turn it on, do some process, then turn it off when done. For example a simple RenderFrame command:

________________________

generic
{
Refresh();
AutoConfirm(1);
RenderFrame();

}
________________________


That works fine, except it leaves Autoconfirm on which is bad.

________________________

generic
{
Refresh();
AutoConfirm(1);
RenderFrame();
AutoConfirm(0);
}
________________________

This one does not Autoconfirm the dialog presumably because the AutoConfirm(0) happens instantaneously instead of waiting till after the process RenderFrame. Any way to make it wait for the process to end then turn off?

Thanks,

faulknermano
10-06-2004, 01:41 AM
i could have sworn somebody did this before, but i personally havent been able to stop lscript from executing continously in the generic class. sleep() will actually stop the script.... hmmm... wait


try putting sleep(1000) or somesuch value after RenderFrame(). if that doesnt work, then i advise you to use a master-class type lscript. there's a RENDER_DONE event signal that the process function of the architecture you can use to determine if rendering has finished. execute the AutoConfirm() then.