Understanding COM better Topic is solved

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
julesverne
Posts: 42
Joined: 18 Apr 2017, 14:39
Contact:

Understanding COM better

11 Aug 2017, 17:10

I have to begin the question by referencing three links.

#1: https://autohotkey.com/board/topic/5698 ... v11/page-8
#2: https://msdn.microsoft.com/en-us/librar ... s.85).aspx
#3: https://msdn.microsoft.com/en-us/librar ... 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, %  WMP.CurrentMedia.name " - " 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!!

Jules
TimeHorizon
Posts: 13
Joined: 02 Aug 2017, 17:59

Re: Understanding COM better  Topic is solved

12 Aug 2017, 16:13

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.

https://answers.microsoft.com/en-us/win ... 860?auth=1

edit:
A quick search found this:

https://autohotkey.com/boards/viewtopic.php?t=15965

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: Google [Bot] and 306 guests