Keyboard hooks

Blitz3D Forums/Blitz3D Programming/Keyboard hooks

_33(Posted 2007) [#1]
Anyone has experience using this in Blitz3D?

REF: http://www.codeguru.com/vb/gen/vb_system/keyboard/article.php/c4829/

In a related topic, anyone has the reference to the blocking of CTRL-ALT-DEL key combo, windows key, ALT-TAB ...?

Cheers.


b32(Posted 2007) [#2]
I believe the 'sticky keys' dll uses keyboard hooks. And I thought WinBlitz3D, too. To use them, you need to create a callback, and I'm not sure if that's possible from within b3d. So it would require a dll.
http://www.blitzbasic.com/codearcs/codearcs.php?code=1334
http://www.blitzbasic.com/Community/posts.php?topic=54697


_33(Posted 2007) [#3]
True, I was worried about the callback, and that's a fact that Blitz3D won't allow callbacks from a DLL, unless we can supply the address of the function, I suppose.

Basically, you want to hook to "nothing" when you hit ALT-TAB. That's what I think. Unless you hook to a function that throws a stereo sample with "HAHAHA!" banging in the speakers.

Anyhow thanks for the find. I tought this was only for like "preventing the cat from destroying your windows session" kind of DLL. I'll see if I'll use this.

BTW, thanks b32 for the number of good valid and helpful answers you have given me so far. I'll pay you back, somehow ;)