mouseButtonNumber
David Bovill
david at vaudevillecourt.tv
Wed Dec 22 14:16:09 EST 2010
Hi Mark, not quite. I have a handler - something like:
command mimickMouseUp
> put getMouseButtonNumber() into pMenuButtonNum
> if pMenuButtonNum = 3 then
> doSomething
> end if
> end mimickMouseUp
>
> function getMouseButtonNumber
> -- ?
> end getMouseButtonNumber
>
Assuming there is no built in handler I want a function that returns the
same value (ie number), that you get with:
on mouseUp pMenuButtonNum
> if pMenuButtonNum = 3 then
> doSomething
> end if
> end mouseUp
>
On 22 December 2010 18:07, Mark Schonewille <
m.schonewille at economy-x-talk.com> wrote:
> Hi David,
>
> Do you mean this?
>
> dispatch "mouseUp" to btn x with 3
>
> --
> Best regards,
>
> Mark Schonewille
>
> Economy-x-Talk Consulting and Software Engineering
> Homepage: http://economy-x-talk.com
> Twitter: http://twitter.com/xtalkprogrammer
> KvK: 50277553
>
> New: Download the Installer Maker Plugin 1.5 for LiveCode here
> http://qurl.tk/ce
>
> On 22 dec 2010, at 18:42, David Bovill wrote:
>
> > This is the param that mouseUp and mouseDown pass. From the docs:
> >
> > The mouseButtonNumber specifies which mouse button was pressed:
> > * 1 is the mouse button on Mac OS systems and the left button on
> Windows
> > and Unix systems.
> > * 2 is the middle button on Unix systems.
> > * 3 is the right button on Windows and Unix systems and Control-click
> on
> > Mac OS systems.
> >
> > I want to emulate this in a script - is there a built in function, or
> does
> > someone have a utility function for this that has been tested
> > cross-platform?
>
>
>
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
>
More information about the use-livecode
mailing list