|
-
Catching mouse buttons (forward/back etc)
Does anyone know if there is a way to catch the other mouse buttons that some mice have?
Basically, I'm developing an application in Flash (which is going be to be EXE'd using mProjector) and the application needs to mimic a web browser's behaviour so I wan't the user to be able to browse forward and back with the methods they're used to using such as backspace on the keyboard and the navigation buttons on the mouse. The keyboard one is easy, cos I use a Key listener, but anyone know what to do for the mouse buttons???!
Thanks
-
Senior Member
The keyboard shortcut for "Back" is Alt+Left Arrow and "Forward" is Alt+Right Arrow (at least in Firefox it is). I "think" the back button on the mouse is a macro of Alt+Left Arrow on the keyboard. Maybe you can try making a Key listener for that key combo???
-
Cool. Thanks for that.
However, I did try to setup a simple script that would trace the code for a key whenever pressed and nothing was returned when I click those buttons on the mouse - worked fine for keys on the keyboard so I was able to catch backspace etc. So I assumed from that, that the mouse buttons don't cause a key press action. Unless I'm missing something?
-
Senior Member
You are right. I dont know the answer to your question but trying those quick keys would have been something that I would have tried. Sorry it didn't work out.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|