How do I turn off autostart?

Klaus Major klaus at major-k.de
Sun Mar 20 09:08:14 EST 2005


Hi Len,

> It seems that when ever I load a stack into the IDE to work on it, it 
> runs the preOpenStack handler but I would like to turn off that 
> feature while I'm developing (so I don't accidently code an infinite 
> loop in the handler).  It would be ok if going from edit to run had 
> this behavior.  Is there possibly something like MS Access has where 
> if you hold down the shift key while opening a database it won't run 
> the autoexec macro?

try this one:

on preopenstack
   if NOT the shiftkey is "down" then
     ## do your "normal" preopen stuff here...
   end if
end preopenstack

Hope this helps (and works ;-)

> Thanks!
>
> len morgan

Best

Klaus Major
klaus at major-k.de
http://www.major-k.de



More information about the use-livecode mailing list