4 and 5 mouse buttons
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
4 and 5 mouse buttons
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
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
Founder & Developer @ MakeShyft R.D.A - https://www.makeshyft.com
Build Software with AppStarterStack for Livecode - https://www.AppStarterStack.com
Save Time with The Time Saver's Toolbox - https://www.TimeSaversToolbox.com
Build Software with AppStarterStack for Livecode - https://www.AppStarterStack.com
Save Time with The Time Saver's Toolbox - https://www.TimeSaversToolbox.com
-
- VIP Livecode Opensource Backer
- Posts: 9833
- Joined: Sat Apr 08, 2006 7:05 am
- Location: Los Angeles
- Contact:
Re: 4 and 5 mouse buttons
How do other apps handle it?
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn
Re: 4 and 5 mouse buttons
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.....
Founder & Developer @ MakeShyft R.D.A - https://www.makeshyft.com
Build Software with AppStarterStack for Livecode - https://www.AppStarterStack.com
Save Time with The Time Saver's Toolbox - https://www.TimeSaversToolbox.com
Build Software with AppStarterStack for Livecode - https://www.AppStarterStack.com
Save Time with The Time Saver's Toolbox - https://www.TimeSaversToolbox.com
-
- VIP Livecode Opensource Backer
- Posts: 7230
- Joined: Sat Apr 08, 2006 8:31 pm
- Location: Minneapolis MN
- Contact:
Re: 4 and 5 mouse buttons
Do you get keycodes in a rawKeyUp handler?
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com
HyperActive Software | http://www.hyperactivesw.com
Re: 4 and 5 mouse buttons
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
--
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
that was a good idea.....there are no messages sent .... maybe i will add a feature request to the quality control site.
Founder & Developer @ MakeShyft R.D.A - https://www.makeshyft.com
Build Software with AppStarterStack for Livecode - https://www.AppStarterStack.com
Save Time with The Time Saver's Toolbox - https://www.TimeSaversToolbox.com
Build Software with AppStarterStack for Livecode - https://www.AppStarterStack.com
Save Time with The Time Saver's Toolbox - https://www.TimeSaversToolbox.com
Re: 4 and 5 mouse buttons
Out of curiosity, are you on a Mac or a PC?makeshyft wrote:that was a good idea.....there are no messages sent ....
Regards,
Thierry
!
SUNNY-TDZ.COM doesn't belong to me since 2021.
To contact me, use the Private messages. Merci.
!
SUNNY-TDZ.COM doesn't belong to me since 2021.
To contact me, use the Private messages. Merci.
!
Re: 4 and 5 mouse buttons
Windows 7 64
Founder & Developer @ MakeShyft R.D.A - https://www.makeshyft.com
Build Software with AppStarterStack for Livecode - https://www.AppStarterStack.com
Save Time with The Time Saver's Toolbox - https://www.TimeSaversToolbox.com
Build Software with AppStarterStack for Livecode - https://www.AppStarterStack.com
Save Time with The Time Saver's Toolbox - https://www.TimeSaversToolbox.com
-
- Posts: 746
- Joined: Sun Feb 04, 2007 11:01 pm
- Location: McKenna, WA
Re: 4 and 5 mouse buttons
Does this give an answer?
Code: Select all
on mouseUp theButton
answer theButton
end mouseUp
Tom
MacBook Pro OS Mojave 10.14
MacBook Pro OS Mojave 10.14
-
- VIP Livecode Opensource Backer
- Posts: 9833
- Joined: Sat Apr 08, 2006 7:05 am
- Location: Los Angeles
- Contact:
Re: 4 and 5 mouse buttons
If the device doesn't require custom drivers I'd double-check rawKeyDown. What was the code you used to test that?
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn
Re: 4 and 5 mouse buttons
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.
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.
-
- VIP Livecode Opensource Backer
- Posts: 9833
- Joined: Sat Apr 08, 2006 7:05 am
- Location: Los Angeles
- Contact:
Re: 4 and 5 mouse buttons
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?
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn
Re: 4 and 5 mouse buttons
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)
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)