Delayed Mouse Clicks

Mark Schonewille m.schonewille at
Fri Sep 29 03:23:55 EDT 2006

Hi Trevor,

The easiest solution to take care of multiple clicks is to set the  
cursor to watch while the script is running. If you are running a  
handler with messages, you might need to set a property.

on mouseUp
   if the cRunning of me is false then
     set the cRunning of me to true
     repeat forever with messages
       -- do whatever you need in your repeat loop
       -- exit repeat when finished
     end repeat
     set the cRunning of to false
   end if
end mouseUp

You can change the icon in the dock using the icon property: set the  
icon of this stack to 1234 (1234 would be the number of an image).




Consultancy and Software Engineering

Get your store on-line within minutes with Salery Web Store software.  
Download at

Op 29-sep-2006, om 9:12 heeft Trevor Hopkins het volgende geschreven:

> I have a button that, when clicked, runs a process that takes a few  
> seconds. I'd like to do a little error prevention and prevent the  
> user from accidentally clicking on it multiple times while it is  
> already processing. Currently, if the button is clicked and then  
> clicked multiple times before the first process is done, the  
> mouseUp script will run over and over again after each script is  
> completed.
> Any ideas?
> Secondly, does anyone know of a way to change the dock's icon (OS  
> X) of your application while it is running?
> Cheers,
> Trevor Hopkins
> Exeter, UK

More information about the Use-livecode mailing list