Re: Leslie Nielsen

2017-08-08 Thread Tore Nilsen via use-livecode
You are right! I have lived to long in the Mac world and did not think of a 
mouse with more than one button. This script will work though:

In the button sending the mouseUp:

on mouseUp
   dispatch mouseUp to button "BASH" with 1,true
end mouseUp

In the button receiving the mouseUp call:

on mouseUp pButton pAltKey
   if pAltKey then
  answer "Alt key was down"
   else
  answer "Alt key was up"
   end if
end mouseUp

Regards
Tore

> 8. aug. 2017 kl. 20:23 skrev J. Landman Gay via use-livecode 
> :
> 
> On 8/8/17 11:05 AM, Tore Nilsen via use-livecode wrote:
>> 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
> 
> This will error. The parameter is always an integer representing the mouse 
> button that was pressed.
> 
> -- 
> Jacqueline Landman Gay | jac...@hyperactivesw.com
> HyperActive Software   | http://www.hyperactivesw.com
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Leslie Nielsen

2017-08-08 Thread J. Landman Gay via use-livecode

On 8/8/17 11:05 AM, Tore Nilsen via use-livecode wrote:

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


This will error. The parameter is always an integer representing the 
mouse button that was pressed.


--
Jacqueline Landman Gay | jac...@hyperactivesw.com
HyperActive Software   | http://www.hyperactivesw.com

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Leslie Nielsen

2017-08-08 Thread hh via use-livecode
> Tore wrote:
> 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

Tore, we have to use a second param, e.g.

on mouseUp pButton, pAltkey

The first param is *always* the button number, so your script above
will not work if pAltkey is the first param.


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Leslie Nielsen

2017-08-08 Thread Tore Nilsen via use-livecode
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 
> :
> 
> 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
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Leslie Nielsen

2017-08-08 Thread Tore Nilsen via use-livecode
Try this:
dispatch mouseUp to button "BASH" with true

Regards Tore

> 8. aug. 2017 kl. 17:54 skrev Richmond Mathewson via use-livecode 
> :
> 
> 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
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Leslie Nielsen

2017-08-08 Thread Bob Sneidar via use-livecode
Are ye daft man?? ;-)

Put the code that would run if the alt key were down in another handler, and 
just call that handler!

Bob S


> On Aug 8, 2017, at 08:54 , Richmond Mathewson via use-livecode 
>  wrote:
> 
> 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.


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Leslie Nielsen

2017-08-08 Thread Richmond Mathewson via use-livecode

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
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Leslie Nielsen

2017-08-08 Thread Mark Waddingham via use-livecode

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.

--
Mark Waddingham ~ m...@livecode.com ~ http://www.livecode.com/
LiveCode: Everyone can create apps

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Leslie Nielsen

2017-08-08 Thread Richmond Mathewson via use-livecode

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?

and if so, how?

Richmond.
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode