wonder Expert Licensed User Longtime User Oct 15, 2015 #1 I need to write a small program that will perform an action every time the user clicks the mouse middle button, no matter what window is in the foreground. Obviously, I can't use "Sub MainForm_MouseClicked". How to achieve this? Last edited: Oct 15, 2015
I need to write a small program that will perform an action every time the user clicks the mouse middle button, no matter what window is in the foreground. Obviously, I can't use "Sub MainForm_MouseClicked". How to achieve this?
madru Active Member Licensed User Longtime User Oct 15, 2015 #2 you will need a global mouse hook, look at this one: https://github.com/kwhat/jnativehook Upvote 0
Erel B4X founder Staff member Licensed User Longtime User Oct 15, 2015 #3 Check this library: https://www.b4x.com/android/forum/t...tercepting-system-input-events.55826/#content Upvote 0
Check this library: https://www.b4x.com/android/forum/t...tercepting-system-input-events.55826/#content
R Roycefer Well-Known Member Licensed User Longtime User Oct 15, 2015 #4 Someone was kind enough to do this, just for you: http://b4x.com/android/forum/threads/jnativehookb4j-for-intercepting-system-input-events.55826/ Upvote 0
Someone was kind enough to do this, just for you: http://b4x.com/android/forum/threads/jnativehookb4j-for-intercepting-system-input-events.55826/
wonder Expert Licensed User Longtime User Oct 15, 2015 #5 Thank you so much, madru and Erel for pointing me in the right direction! Thank you so much, Roycefer for wrapping and creating the library! You guys are awesome, I love this forum! Upvote 0
Thank you so much, madru and Erel for pointing me in the right direction! Thank you so much, Roycefer for wrapping and creating the library! You guys are awesome, I love this forum!