The MASM Forum Archive 2004 to 2012

General Forums => The Campus => Topic started by: ragdog on November 06, 2006, 06:32:16 PM

Title: grab teh powerdvd time to my prog
Post by: ragdog on November 06, 2006, 06:32:16 PM
h @all

can theirs help me? i will grab the powerdvdtime to my prog
with findwindow function.


thanks in forward
ragdog

[attachment deleted by admin]
Title: Re: grab teh powerdvd time to my prog
Post by: Merrick on November 06, 2006, 11:25:40 PM
??

(We need a little icon of a dude scratching his head in confusion)
Title: Re: grab teh powerdvd time to my prog
Post by: Tedd on November 07, 2006, 11:30:50 AM
if it shows the time in the titlebar, then you can use findwindow using the classname of the window (which you'll need to find out.)
Then using GetWindowText will get you the titlebar string, and you can parse the time out of that.

If not... then you're in for some difficulty :lol
Title: Re: grab teh powerdvd time to my prog
Post by: donkey on November 07, 2006, 02:30:30 PM
I have looked at PowerDVD for other reasons but it is exceeding difficult to extract information from it, since the main window is simply a skin without any actual window controls I wasn't able to send messages directly to a particular control. I am still working on a solution and I will post it if I can find one.
Title: Re: grab teh powerdvd time to my prog
Post by: hutch-- on November 08, 2006, 02:11:48 AM
You can get the handles for PowerDVD by enumerating windows and this may give you an entry into other child windows by trying out enumerating the child windows.
Title: Re: grab teh powerdvd time to my prog
Post by: donkey on November 08, 2006, 02:57:29 AM
Quote from: hutch-- on November 08, 2006, 02:11:48 AM
You can get the handles for PowerDVD by enumerating windows and this may give you an entry into other child windows by trying out enumerating the child windows.

Hi Hutch,

The PowerDVD main window cannot be enumerated, it is simply a skin so there are no controls actually on the window, at least WinSpy can find no child windows and EnumChildWindows draws a similar blank. I am currently reading a technical paper that Cyberlink was kind enough to send me and hope to get to the root of my problem that way. For myself it is simply a question of managing the player with another program, something I have obtained permission to do. I want to be able to control the DVD player using an IR remote control from Hauppauge. But I believe that my research will overlap the problem in this thread.

(http://www.assembler.ca/images/WinSpy.jpg)
Title: Re: grab teh powerdvd time to my prog
Post by: Tedd on November 08, 2006, 02:39:40 PM
Check what the various dlls used are. I presume it's designed in such a way that one will take care of the skinning/interface, while another does the command/control, and others for decoding, etc.
So, all you need to do (as if it were that simple :lol) is use the appropriate dll(s) to gain the same control.