title: vb6 suppress keyboard strokes with API? (making a hotkey)
body: <p>I've searched, and can't seem to find an answer, so any help would be appreciated.</p>
  
  <p>I want to make a hotkey, but when the hotkey is pressed, I don't want the actual "character" to be displayed, just the action to be performed.</p>
  
  <p>So for example, I have this:</p>
  
  <pre><code> Private Declare Function GetAsyncKeyState Lib "user32" _
   (ByVal vKey As KeyCodeConstants) As Long
  
   Private Const VK_A = &amp;H41
  
   Private Sub keyboardTimer001_Timer()
      If KeyDown(VK_A) Then
         ' do my stuff, but DONT DISPLAY the letter "A"
      End If
   end sub
  </code></pre>
  
  <p>So this basically just has a timer (interval 1) checking the async keyboard. If it detects that the letter "a" was pressed, I perform an action. But I want it to do this WITHOUT printing the letter "a".
  How would I remove the key from the keyboard buffer/prevent it from displaying? (Side note - not sure if something like 'PeekMessage' would work - if so - does anyone know where I can find a good vb6 code sample where I can peek for stuff like 'ctrl+a' or 'ctrl+alt+a', etc, etc and then just clear the buffer, and perform my action?)</p>
  
  <p>Thanks! </p>