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 mou

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 alwa

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 firs

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 . . .

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 scrip

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"

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: O

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?

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 mai