close the answer dialog from script

Eric Chatonet eric.chatonet at sosmartsoftware.com
Fri Aug 24 07:01:07 EDT 2007


Hi Paolo,

You can use the usual answer dialog and have not to build your own:

on mouseUp
   send "CloseAnswerDialog" to me in 4 seconds
   answer "You are great"
end mouseUp
--------------------------
on CloseAnswerDialog
   close stack "Answer Dialog"
end CloseAnswerDialog



Le 24 août 07 à 12:34, Eric Chatonet a écrit :

> 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/
> ----------------------------------------------------------------
>
>
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your  
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution
>




More information about the use-livecode mailing list