How to Detect Forward and Back Mouse Button Events in Delphi?

Posted by EagleOfToledo on Stack Overflow See other posts from Stack Overflow or by EagleOfToledo
Published on 2010-03-16T22:52:58Z Indexed on 2010/03/16 23:11 UTC
Read the original article Hit count: 397

Filed under:
|
|

If a mouse has other buttons in addition to the standard left/right/middle (e.g. forward/back), how can we detect those button clicks in Delphi?

An example of how this is used is the Internet Explorer, where the forward/back button on the side of a Logitech or MS mouse cycles forward and back between any loaded web pages. This seems to replicate the Backspace/CTRL+Backspace on the keyboard but I tried to detect that using KeyPreview and the KeyPress event but it does not pick it up.

Any idea how to detect clicks on these extended mouse buttons?

© Stack Overflow or respective owner

Related posts about delphi

Related posts about mouse