I noticed that the code wasn't slow... it's working good.. however... it captures the keys when they are RELEASED and not PRESSED which is what I want...

This is perfect for users who type with two fingers on their keyboard. However, more experienced keyboard-users use alot more fingers and they press the next key BEFORE releasing the first one and in some cases the third key also before even releasing the first one (the finger wasn't quick enough to lift before the other two pushed other keys) and release in NOT the same order.

So when I type 'hello'
it captures: ehlol (or sometimes 'helo')


Does anyone know how to improve this code or have any better suggestion? I've looked into C++ examples with keyboard hooking, althoug, I know zip about C so that didn't help me.. and vb could create a reference to it's dll either so I guess it's just doing something vb.

ANyone know?