Home > Software engineering >  How to write a program using VB to press the keys on the keyboard, play the corresponding video
How to write a program using VB to press the keys on the keyboard, play the corresponding video

Time:09-21

Using VB to call WindowsMediaPlayer control, program, press on the keyboard A or B play to share video? A great god, please give advice or comments

CodePudding user response:



Your previous post, I gave you a sample code,

CodePudding user response:

Didn't quite understand, you is to simulate keystrokes program, or to capture button?
Simulate keystrokes can use SendKeys, capture button can be the main window KeyPreview is set to True, then check in the window Form_KeyPress events which according to the key
  • Related