Alt + Tab / Windows Key

Blitz3D Forums/Blitz3D Programming/Alt + Tab / Windows Key

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

Version 2 of StickKeys_dll is available in the Code Arcs.
Check it out
I have added a Low Level Keyboardhook to trap the task switching keys.

The sample code has to be the most boring ever made... Someone please post an asteroids example that uses RightSHIFT for thrust, LeftSHIFT to fire, WIN key for shields and ALT+TAB to hyperspace. Please... ;-)

It was an 'interesting' project... I now know more about windows hooks than I ever wanted to. What I still don't really know is how to get Borland C++ Builder (V5) to share dll data segments properly... I eventually resorted to 'black magic' coding as their simply isn't any proper documentation out there. At one point I managed to inject the Key filter into all running apps then fail to unhook it... Try fixing your system when you can't actually type anything. :-(
This persisted after cold re-boot... very worrying (and a warning to make sure you close this down properly - details in the examples.) Finally had to use a Restore Point to get normal keyboard operation back.

Having said that... please test this and post any problems you have. I am especially interested to know if there are issues based on the User Level of the current user... do Restricted Users have problems with this ? {I'd love to answer for you, but I have spent two days on this and its now 6 a.m. - so I'm going to bed now.}