Keyboard hooks
BlitzMax Forums/BlitzMax Beginners Area/Keyboard hooks
| ||
Is there any way for a blitzmax app that is not the active window to poll/detect keypresses pressed while another window is ative. For example, you can use the media keys on your keyboard to control a music player, Play,Stop etc even when the media player is not the active program. I have had a quick look and seems to be about keyboard hooks etc but I am still struggling. |
| ||
Maybe this is a start: http://www.blitzbasic.com/codearcs/codearcs.php?code=2248 There's a function listed there for global hotkeys which can be detected from outside the active program... Not sure if those special multimedia keys can be detected though... |
| ||
ah PERFECT! just what I was looking for. Thanks Xlsior for the link and Plash for the code. |