Link to home
Start Free TrialLog in
Avatar of Mike Eghtebas
Mike EghtebasFlag for United States of America

asked on

How to use keystrok to Play/Pause video running on a ActiveX component on a VB 6 form...

When user makes a selection on the vb form, a lable becomes visible stating:

"Hit S to start video."    'that is if there is a video avaiable for the particular selection
-------
Via S keypress, video starts (the lable changes to "Hit Q to quit video.").

This works nicely.  "S" keystrok starts the video with "PlayPause" button in "Pause" mode.
-------------
On WindowsMediaPlayer1, we also have "Play/ Pause" and "Stop" Buttons

Q3.  Using keystrok "P" What is the code to "Pause" (code will go in to Keypress event of the form).  
Q4.  Using a second keystrok, what is the code to "Play" (after it has been paused).

Mike
Avatar of Bob Learned
Bob Learned
Flag of United States of America image

MediaPlayer1.Pause

Bob
Avatar of Mike Eghtebas

ASKER

MediaPlayer1.Pause doesn't work.

unlike .close, .pause is not avaialble (can I add it to intelesense?).
ASKER CERTIFIED SOLUTION
Avatar of Shauli
Shauli

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Man, you have got to let me know which version of Windows Media Player you are using:)  Lost out again:(

Bob