Ways to get the IDs of two already scripted buttons?

dunbarx at aol.com dunbarx at aol.com
Sun Jan 1 19:28:56 EST 2012


Since you need to start a process that sets up the selection process, why not set a custom property as well? You would modify the button scripts so that they only proceed if the correct value of that property is read.


In that way, the new button handlers would check the property at the outset, and exit if they found it was not allowed. You need to reset somehow, of course.


I think this is better than requiring odd click combinations.


Craig Newman



-----Original Message-----
From: Kresten Bjerg <Kresten.Bjerg at psy.ku.dk>
To: use-livecode <use-livecode at lists.runrev.com>
Sent: Sun, Jan 1, 2012 1:56 pm
Subject: Ways to get the IDs of two already scripted  buttons?


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