simulating a mouseclick on a certain line in a list field

Ken Ray kray at sonsothunder.com
Sat Dec 20 15:11:21 EST 2003


On 12/15/03 2:27 PM, "    rand valentine" <randvalentine at mac.com> wrote:

> hello, dear revolution gurus. i have a list field that has a mouseUp script
> attached to it, which does something based on the value of the clicked-on
> line. But how do I simulate clicking on a particular line in a field, ie,
> how do I send the listfield, in essence, a virtual click on a particular
> line, so that the mouseUp script, which needs the clickLine to function,
> works properly? I hope this is clear. Thanks.

Example:

set the hilitedLines of fld "myListField" to 6
send mouseUp to fld "myListField"

-- Acts like a click on line 6 of the field

HTH,

Ken Ray
Sons of Thunder Software
Web site: http://www.sonsothunder.com/
Email: kray at sonsothunder.com



More information about the use-livecode mailing list