close the answer dialog from script

paolo mazza paolo.mazza at neol.it
Fri Aug 24 06:30:07 EDT 2007


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


******************************************

Paolo Mazza
NEOL SRL
Società partecipata da Università di Padova
via N. Tommaseo 84
35131 - Padova (Italy)
Tel 049- 2050147 - Fax 049-7964386
www.neol.it




More information about the use-livecode mailing list