[Solved] OnMouseDown - How catch gamer mouse keys lazarus / 31-LCL ---------------------------------------------------------------------- marcio2003 · 2023-05-29 10:14 Hi, How can I change in runtime actions for the side keys (eg navigation keys) on the mouse? It's not usual to see these functions used other apps except in browsers and games. I'm some times making some apps for own use and i wanna add this functionality to my advantage. Always, congratulations "Lazarus Team" for helping us, Thank in advance for your attention. ---------------------------------------------------------------------- jamie · 2023-05-29 12:07 https://learn.microsoft.com/en-us/windows/win32/inputdev/virtual-key- codes Mouse likely one of these ? and look at something like this. https://learn.microsoft.com/en-us/windows/win32/api/winuser/nf- winuser-getasynckeystate ---------------------------------------------------------------------- marcio2003 · 2023-05-30 18:26 Hey, I remembered a simple solution: In the OnMouseDown event I put "DisplayMessage( ord( chr(button )));" then i found the values for all my mouse keys. I found Backward = 3 and Forward = 4. But I really appreciate the links posted by Jamie for further learning. ---------------------------------------------------------------------- marcio2003 · 2023-05-30 18:30 How can i change forum topic to solved? ---------------------------------------------------------------------- jamie · 2023-05-30 18:37 log in. edit/change your original post and edit the title. insert [Solved] etc. ---------------------------------------------------------------------- marcio2003 · 2023-05-30 18:46 Please change DisplayMessage( .. ) to ShowMessage( .. ). DisplayMessage is a personal procedure. ---------------------------------------------------------------------- marcio2003 · 2023-08-01 09:58 Hey guys, I'm going to share with everyone a shortcut discovery for the code editor, we always use Ctrl+H or Ctrl+Shift+H to jump in the editor, but we can also use the mouse navigation buttons for this. Now that I've discovered this, it's easier and faster to do the jumps. Greetings everyone