Stuck in "Background" window

J. Landman Gay jacque at
Tue Mar 18 11:25:01 EST 2003

On 3/17/03 11:28 PM, Ken Norris wrote:
> Well here I go again. This thing keeps ending up in the stack's background
> window instead of the card window.
> on mouseUp
>   set the defaultFolder to "Doggies"
>   answer file empty with filter "JPEGs,*.jpg"
>   lock screen
>   import paint from file it
>   set itemDel to "/"
>   cut image (last item of it)
>   start editing group "myImageGroup"
>   paste image (last item of it)
>   send "stop editing" to me in 20 milliseconds
>   open window "Practice1" -- **Even with this
>   unlock screen
>   send "choose browse tool" to me in 20 milliseconds
> end mouseUp
> ...any ideas?

The "stop editing" command needs a background reference. It should be 
"stop editing bg 'myImageGroup'", or "stop editing this bg". Also, I 
don't think you need to "send" the "stop editing" command, it should 
just work inline, but I haven't tested it.

Jacqueline Landman Gay         |     jacque at
HyperActive Software           |

More information about the use-livecode mailing list