"send mouseUp to…" vs "click at the loc of..".

J. Landman Gay jacque at hyperactivesw.com
Fri Jan 3 15:34:54 EST 2014


On 1/3/14 2:28 PM, J. Landman Gay wrote:
> On 1/3/14 12:36 PM, Richmond wrote:
>>
>> now btn "XYZ" contains a function:
>>
>> function BlastMySocks
>>     put "socks blasted"
>> end BlastMySocks
>>
>> and when I put this into the script of my other button:
>>
>> on mouseUp
>>    dispatch function "BlastMySocks"
>> end mouseUp
>>
>> the function is executed
>>
>> THAT is not possible with 'send'
>
> True, but this works:
>
> on mouseup
>    put value("blastMySocks()",btn "XYZ")
> end mouseup
>

Addendum: the function needs to use "return" rather than "put", 
otherwise you'll get an empty response.

-- 
Jacqueline Landman Gay         |     jacque at hyperactivesw.com
HyperActive Software           |     http://www.hyperactivesw.com




More information about the Use-livecode mailing list