Ways to get the IDs of two already scripted buttons?

Bob Sneidar bobs at twft.com
Tue Jan 3 12:15:38 EST 2012


on mouseup pButtonNum
  if pButtonNum is 3 then
    select me
    -- do some stuff
    select empty
  end if
end mouseUp

Is that what you meant?

Bob


On Jan 1, 2012, at 3:55 PM, Kresten Bjerg wrote:

> I am trying to script a handler guiding (through Answer dialogue) user of standalone to select first one arbitrary existing  button, to put its ID in a variable and (new answer-dialogue) then another existing button, to collect its Id into another variable,  - for(new answer-dialogue) connecting them with a line/ or erase line between them.
> As these buttons are already scripted, and mouseups to them must be avoided, I hope that Alt clicking them might be a way to have them selected enough to get their IDs. But I cannot find my way to make it work. I have thought that there might be a way perhaps  through a "Wait until condition", but don't know how to formulate such script. I am also uncertain: Is the use of the ALT-click a realistic strategy to get hold of the button-IDs?
> I cannot imagine that something like this should be impossible in livecode
> Happy New Year
> From
> Kresten Bjerg
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode





More information about the use-livecode mailing list