And change the script in the BASH button to something like this:
on mouseUp pAltKey
if pAltKey then
answer "Alt key was down"
else
answer "Alt key was up"
end if
end mouseUp
> 8. aug. 2017 kl. 17:54 skrev Richmond Mathewson via use-livecode
> <[email protected]>:
>
> That's marvellous . . .
>
> as far as it goes:
>
> click at the loc of btn "BASH" with altKey
>
> The only "snag" is that that calls BOTH of the scripts in btn "BASH" (
> mouseDown & mouseUp )
>
> and I really only want to 'get' mouseUp
>
> Richmond.
>
> On 8/8/17 6:44 pm, Mark Waddingham via use-livecode wrote:
>> On 2017-08-08 17:41, Richmond Mathewson via use-livecode wrote:
>>> I can send a command to a button like this:
>>>
>>> send "mouseUp" to btn "BASH"
>>>
>>> BUT I want to fake having the altKey pressed as well:
>>>
>>> pseudocode
>>>
>>> send "mouseUp" with altkey(down) to btn "BASH"
>>>
>>> can it be done?
>>
>> Yes.
>>
>>> and if so, how?
>>
>> Look up the 'click' command in the dictionary :)
>>
>> Warmest Regards,
>>
>> Mark.
>>
>
> _______________________________________________
> use-livecode mailing list
> [email protected]
> Please visit this url to subscribe, unsubscribe and manage your subscription
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
_______________________________________________
use-livecode mailing list
[email protected]
Please visit this url to subscribe, unsubscribe and manage your subscription
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode