I wanted to do the same thing once upon a time, but found that PeekEvent tended to be unreliable at best. For this reason I wrote BLESS (the BLitz EventS System). It's a Blitz3D or BlitzPlus add-on that gives you access to any Windows notification or message (i.e. event) that you want.
I'm getting close to releasing version 1.0, but you can check out the BLESS beta at www.mintysoftware.com, and sign up for the newsletter so you'll be in the know when I do release 1.0.
I'm getting close to releasing version 1.0, but you can check out the BLESS beta at www.mintysoftware.com, and sign up for the newsletter so you'll be in the know when I do release 1.0.