Navigating via script

Ken Norris pixelbird at interisland.net
Thu Apr 15 02:27:47 EDT 2004


Hi David,

> Date: Wed, 14 Apr 2004 22:20:08 -0600
> From: David Squance <squance at elkvalley.net>
> Subject: Navigating via script
> 
> I have a simple question about "click at the loc of ...".  I have a
> navigation palette and I want a script from the main stack to 'call' one of
> the buttons to move to another location.  The docs say it is possible to
> simulate a mouseclick with click at the loc of btn "whatever", however they
> don't say it won't work with a floating palette from another stack.  Is
> this true, or have I just muffed it somewhere?
-----------
Well, you could send a mouseUp:

on openStack
  send "mouseUp" to button "Do It" of stack "My Palette"
end openStack

...of course, the button "Do It" will need to actually have a mouseDown
message handler to run:

on mouseUp ## this is button "Do It"
  set the loc of me to "100,100"
end mouseUp

HTH,
Ken N.



More information about the use-livecode mailing list