Sign in to follow this  
Followers 0
Champak

wmp volume help

11 posts in this topic

I am trying to put together a simple script that would raise or lower the wmp volume if wmp exists. My searching only turns up how to control wmp if I CREATE the object, which doesn't seem to affect a wmp that is already open. So how do I do what I want?

Thanks.

Share this post


Link to post
Share on other sites



This reached the 7th page so I am bumping.

Share this post


Link to post
Share on other sites

Want simple? ControlSend F9/F10


"be smart, drink your wine"

Share this post


Link to post
Share on other sites

there is a udf for wmp try searching example scripts


[center][/center]

Share this post


Link to post
Share on other sites

Siao

It's actually F8/F9, in case anyone else sees this. This was an idea, however it wont work if wmp is minimized to the toolbar. Unless you know how to fix that, thanks anyway.

Dbak

I saw all of those already, however as I said, they are all creating their own object or embedding wmp in a gui. I need it to work on a wmp that is already open and I don't know how. Unless there is something I'm not doing correctly.

Share this post


Link to post
Share on other sites

F8 is mute, at least in WMP9 which I have installed.

And for whatever reason sending to minimized WMP works fine if it's in Corporate skin mode.

Anyway, too bad it didn't work, I have no other ideas as I don't use this software, don't advise to use it, and generally don't think much of it.


"be smart, drink your wine"

Share this post


Link to post
Share on other sites

Well If you could just make a GUI, embed your own wmp obj and then you went about making your app have a little library and a way to load songs you'd be set. Besides I want to see more media player developers (like myself) around here


[center][/center]

Share this post


Link to post
Share on other sites

@Siao

They switched everything up on you in v11. It seems they moved everything down because F7 is mute now. And it does work when it's minimized in the "regular" way, but when it's minimized and set as a "toolbar" it does not work.

Can I send info (F8/F9) to the app without looking for the window title? I guess look for the app itself within all the apps running, and send to that?

Share this post


Link to post
Share on other sites

I dived a little deeper into the help file and found ObjGet. I believe this will help in what I want to accomplish, (let me know if I'm wrong). But I'm getting an error in getting the WMP object. The error is -2147221020, as hex it comes out as 800401E. Does anyone know what is causing this error and how to fix it? ObjCreate works fine with the WMP in case that is going to be a question.

$oMP = ObjGet("WMPlayer.OCX")

if @error then 
  Msgbox (0,"WMP Test","Error Getting Object. Error code: " & @error)
  exit
endif

$oMP.settings.volume = 1

Share this post


Link to post
Share on other sites

Not sure if this will help, but it allows you to adjust both the main volume and wave volume of your mixer. Not sure if wmp has it's own volume control, or wether it just modifies the system volume control through the mixer.

The thread is here:

Share this post


Link to post
Share on other sites

No, wmp has its own volume, and me adjusting the main volume or the wave volume will counter what I am trying to do. Thanks for the suggestion anyway.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0