Page 1 of 1

Understanding COM better

Posted: 11 Aug 2017, 17:10
by julesverne
I have to begin the question by referencing three links.

#1: ... v11/page-8
#2: ... s.85).aspx
#3: ... s.85).aspx

Specifically this question is for COM Object: WMPlayer.OCX (which it's description and ahk useage is referenced in link #1) but I'm hoping it may enlighten me with COM in general. Referencing the MSDN page (link #2) is all about Windows Media Player SDK. Included in that reference on a different page (link #3) it shows the slider element, specifically background color. I'm not a trained developer so please don't judge me but is it possible to access these other elements of the player? If so, how would you do so?

Link #1 gives an example on the page for a GUI:

Code: Select all

Gui, Show, NA, % " - " Format(WMP.Controls.currentPosition) " / " Format(WMP.CurrentMedia.duration)
This will display The media file name - The media file's current position formatted to HH:MM:SS - and the media file's total duration. Using that as a reference I instinctively think will something like this work?

Code: Select all

WMPColorVar := WMP.elementID.backgroundColor
Obviously it didn't work so the question then is are all available options for WMPlayer.OCX listed on link #1 's page and there are no others or if I can access that backgroundColor element how would I do so?

Thank you in advance!!


Re: Understanding COM better  Topic is solved

Posted: 12 Aug 2017, 16:13
by TimeHorizon
I'm sorry, i misread. I thought you were looking for a property list. i didnt see background color.

Looks like at least in windows 7, it's not an option with out changing all of your computer colors. ... 860?auth=1

A quick search found this: