Understanding COM better

Get help with using AutoHotkey and its commands and hotkeys
Posts: 1
Joined: 18 Apr 2017, 14:39
GitHub: JulesverneOnGitHub

Understanding COM better

11 Aug 2017, 17:10

I have to begin the question by referencing three links.

#1: https://autohotkey.com/board/topic/56987-com-object-reference-autohotkey-v11/page-8
#2: https://msdn.microsoft.com/en-us/library/windows/desktop/dd564679(v=vs.85).aspx
#3: https://msdn.microsoft.com/en-us/library/windows/desktop/dd564361(v=vs.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] [Download] GeSHi © Codebox Plus

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] [Download] GeSHi © Codebox Plus

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!!

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

Re: Understanding COM better

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

A quick search found this:


Return to “Ask For Help”

Who is online

Users browsing this forum: Bing [Bot], HenriAug, Yahoo [Bot] and 40 guests