How can Start, Play,Stop and pause Windows Media Player from my VB program
Opening Windows Media Player from my program
Collapse
X
-
Tags: None
-
you should be able by using its ActiveX, the syntax depends on your VB versión, but using CreateObject would be of help:
[CODE=VB]
Dim Obj1 as Object
Set Obj1=CreateObje ct("WMPlayer.OC X")
Obj1.visible=tr ue[/CODE]
You should ask Google about other commands, to open a playlist or stuff like that. -
hmm, thats perhaps my mistake.
Once the object has been created as an instance of Windows Media Player. You could only use properties or methods its ActiveX supports.
If 'visible' is not one of them, the mistake will be shown. Sorry about that. You should ask google about the properties and methods of this application.Comment
-
-
[CODE=vb]dim obj1 as object
set obj1 = createobject("i nternetexplorer .application")
obj1.visible=tr ue
obj1.navigate "www.google.com "[/CODE]
HTHComment
Comment