Re: 10 SDK - Mystery Syntax
From: Jim Travis [ms] (jtravis_at_online.microsoft.com)
Date: 01/08/05
- Next message: Christian Steck: "How to change Effects or Brightness of a Video"
- Previous message: Jim Travis [ms]: "Re: Retrieve currently playing songs' lyrics and other questions!"
- In reply to: Vinson: "10 SDK - Mystery Syntax"
- Next in thread: Vinson: "Re: 10 SDK - Mystery Syntax"
- Reply: Vinson: "Re: 10 SDK - Mystery Syntax"
- Messages sorted by: [ date ] [ thread ]
Date: Fri, 7 Jan 2005 22:05:13 -0800
Drop the parentheses:
.Settings.setMode "Shuffle", True
VB6 thing.
See the Additional Tips on this page:
http://msdn.microsoft.com/library/en-us/wmplay10/mmp_sdk/usingwindowsmediaplayerwithvisualbasic.asp
-- Jim Travis Microsoft Corp. Windows Media Player SDK Download: http://msdn.microsoft.com/library/default.asp?url=/downloads/list/winmedia.asp Latest online: http://msdn.microsoft.com/library/en-us/wmplay10/mmp_sdk/windowsmediaplayer10sdk.asp Please do not send email directly to this alias as this alias is for newsgroup purposes only. This posting is provided "AS IS" with no warranties, and confers no rights. You assume all risk for your use. © 2004 Microsoft Corporation. All rights reserved. "Vinson" <Vinson@discussions.microsoft.com> wrote in message news:63383FB2-36BE-4491-9FC4-7033BEB39BEA@microsoft.com... >I have been using the WMP 10 SDK with some success, but cannot get the > setMode method working within VB6. Has anyone had any experience using it's > mystery syntax? > > According to the SDK, the syntax is: > player.settings.setMode(modeName, state) > > The "modename" is a string which can read "autoRewind" "loop," > "ShowFrame," > or "Shuffle." > > The "state" is a Boolean which specifies whether the setting is active or > not. > > Using the code below, VB6 returns an error stating that "=" is expected > before you can even run the code. > > With WindowsMediaPlayer1 > .Settings.setMode("Shuffle", True) > .Settings.volume = 100 > .Settings.autoStart = False > .enableContextMenu = False > End With > > Giving it an alternative syntax which satisfies the equal sign and will > allow you to run the code, but will return an error "Expected Function or > Variable," such as: > > X = WindowsMediaPlayer1.Settings.setMode("shuffle", True) > > What syntax does this method need to work correctly? > > Thanks! > > Vinson >
- Next message: Christian Steck: "How to change Effects or Brightness of a Video"
- Previous message: Jim Travis [ms]: "Re: Retrieve currently playing songs' lyrics and other questions!"
- In reply to: Vinson: "10 SDK - Mystery Syntax"
- Next in thread: Vinson: "Re: 10 SDK - Mystery Syntax"
- Reply: Vinson: "Re: 10 SDK - Mystery Syntax"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|