close the answer dialog from script

Eric Chatonet eric.chatonet at sosmartsoftware.com
Fri Aug 24 06:34:16 EDT 2007


Hi Paolo,

close stack "Answer Dialog" :-)

Le 24 août 07 à 12:30, paolo mazza a écrit :

> Dear Friends, how can I close the answer dialog from script?
>
> I wrote this script to force  the user to answer after X time. But  
> I can
> not close the andswe dialog.
>
> Thanks
>
> Paolo
>
>
> global TempoIniziale,gTEMPOCONTROL
> on mouseUp
>  put the seconds into TempoIniziale
>   ControlloTempo
>   answer "You are great" with "OK"
> end mouseUp
>
> on ControlloTempo
>   put the seconds into TEMPO2
>   -- put TEMPO2 && TempoIniziale  & return after  message
>   if (TEMPO2 - TempoIniziale) > 4 then
>
>   HOW CAN I CLOSE THE ANSWER DIALOG ??
>
>     exit to top
>   else
>     send "ControlloTempo" to me in 2 seconds
>     put the result into gTEMPOCONTROL
>   end if
> end ControlloTempo

Best regards from Paris,
Eric Chatonet.
----------------------------------------------------------------
Plugins and tutorials for Revolution: http://www.sosmartsoftware.com/
Email: eric.chatonet at sosmartsoftware.com/
----------------------------------------------------------------





More information about the use-livecode mailing list