Page 1 of 1
4 and 5 mouse buttons
Posted: Wed Feb 10, 2016 1:01 am
by makeshyft
hi everyone,
I have used another mouse to death, and I bought a new one today that has a forward and back navigation buttons....works in browser....
mouseUp messages do not register the extra buttons... neither does rawkeydown
is there anything i can do to get livecode to recognize these so that I can give them functionality?
Thanks as always
Re: 4 and 5 mouse buttons
Posted: Wed Feb 10, 2016 1:36 am
by FourthWorld
How do other apps handle it?
Re: 4 and 5 mouse buttons
Posted: Wed Feb 10, 2016 3:33 am
by makeshyft
My chrome based browser lets me go forward and back..... so the driver is registering the clicks..... I thought rawkey would do it...but no cigar.....

Re: 4 and 5 mouse buttons
Posted: Wed Feb 10, 2016 5:15 pm
by jacque
Do you get keycodes in a rawKeyUp handler?
Re: 4 and 5 mouse buttons
Posted: Wed Feb 10, 2016 5:21 pm
by LCNeil
Have a look at the message watcher as well to see if any messages fired when pressing these buttons.
From within the LiveCode IDE "Devlopment-->Message Watcher"
Kind Regards,
Neil Roger
--
LiveCode Support Team ~
http://www.livecode.com
--
Re: 4 and 5 mouse buttons
Posted: Wed Feb 10, 2016 5:46 pm
by makeshyft
that was a good idea.....there are no messages sent ....

maybe i will add a feature request to the quality control site.
Re: 4 and 5 mouse buttons
Posted: Wed Feb 10, 2016 6:21 pm
by Thierry
makeshyft wrote:that was a good idea.....there are no messages sent ....
Out of curiosity, are you on a Mac or a PC?
Regards,
Thierry
Re: 4 and 5 mouse buttons
Posted: Wed Feb 10, 2016 6:34 pm
by makeshyft
Windows 7 64
Re: 4 and 5 mouse buttons
Posted: Thu Feb 11, 2016 6:49 pm
by quailcreek
Does this give an answer?
Code: Select all
on mouseUp theButton
answer theButton
end mouseUp
Re: 4 and 5 mouse buttons
Posted: Thu Feb 11, 2016 7:18 pm
by FourthWorld
If the device doesn't require custom drivers I'd double-check rawKeyDown. What was the code you used to test that?
Re: 4 and 5 mouse buttons
Posted: Thu Feb 11, 2016 7:48 pm
by SparkOut
On Windows 10 here with LC 7.1.1 using a 5-button Microsoft USB IntelliMouse Explorer 3.0 mouse, I get no rawkeydown message from any of the buttons at all, except for the scroll wheel (counts as one of the buttons). I get code 65308 from the scroll down action and 65309 from the scroll up action (as described in the Dictionary). rawkeyup does not provide ANY value.
Depressing the scroll wheel generates the mouseDown/mouseUp/usual mouseMessages.
The two buttons on the left side of the mouse generate no messages at all in my view here.
Re: 4 and 5 mouse buttons
Posted: Thu Feb 11, 2016 8:14 pm
by FourthWorld
Ah, I missed that this was a Microsoft product. Probably relies on custom OS level support. Still, would be interesting to see what their developer docs suggest. Have you looked those up?
Re: 4 and 5 mouse buttons
Posted: Thu Feb 11, 2016 11:54 pm
by SparkOut
No because I was only wondering how it worked on my system to check against the OP's experience.
I have found that the Microsoft Mouse and Keyboard Centre allows you to assign app-specific actions to the different buttons. I haven't tried in a standalone but the IDE will respond to buttons to which I assign key combinations. (Works with keydown and rawkeydown that way)