Quantcast
Channel: VBForums - Visual Basic 6 and Earlier
Viewing all articles
Browse latest Browse all 21107

VB6 - Is there a way to detect all keypress events regardless of which app has focus?

$
0
0
My mechanical keyboard died on me, and I can't stretch to a new one at the moment. I'm really missing the audible 'click' feedback that they provide, and was wondering if a few lines of vb6 could simulate this. All that's needed would be a way to detect any system-wide key press event, triggering the playing of a short .wav file. I've been looking at the GetAsyncKeyState API, but I'm out of my depth. Also, how would a .wav be played from within vb6? Could the volume be adjustable? (As you've probably gathered, I'm a noob at this but am eager to learn.)

Viewing all articles
Browse latest Browse all 21107

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>