programatically click?

kee nethery kee at kagi.com
Tue Apr 22 19:00:57 EDT 2014


The way I deal with this is to have two commands for each interface element, one for humans, one that is programartic. For a table, I might have:

on mouseup
  put the clickline into theline
  doit theline
end mouseup

on doit theline
  if theline = empty then
     put the clickline into theline
  end if
  - - stuff here
end doit

The idea is that a human activates the control with mouseup (or whatever), and the actual work is performed by the doit command. I can drive the interface by sending doit commands to each of my interface elements. For me it keeps a nice separation between programatic control and human interaction.

Kee Nethery



More information about the use-livecode mailing list