2 Replies - 5998 Views - Last Post: 30 May 2011 - 01:52 AM Rate Topic: -----

#1 AdzBuck  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 3
  • Joined: 09-May 11

Obtaining the value of "Seek"

Posted 27 May 2011 - 07:45 AM

Hey, I'm attempting to get the value of the "seek" tracker bar on windows media player..
I've had a quick look at memory reading but couldn't get a base address.

SO now I'm attempting to get the value from getting the control and send message it.

The path to the bar is(using renorex spy):
/form[@title='Windows Media Player']/element[@class='WMPAppHost']/container[@accessiblename='svEntireApp']/container[@accessiblename='svRewindSeekFFWD']/slider[@accessiblename='Seek']

Getting to WMPAppHost is easy enough, however I'm unsure how to follow it further as they don't have a class.. I also can't find it on spy++

Any help would be appreciated,
Thanks Adam

Is This A Good Question/Topic? 0
  • +

Replies To: Obtaining the value of "Seek"

#2 tlhIn`toq  Icon User is offline

  • Please show what you have already tried when asking a question.
  • member icon

Reputation: 5469
  • View blog
  • Posts: 11,749
  • Joined: 02-June 10

Re: Obtaining the value of "Seek"

Posted 28 May 2011 - 01:58 PM

YOu haven't shown us any code, but it sure seems like you aren't even trying to use the Windows Media Player API to talk to the application. That would seem to be the first method to attempt.


Ah, the value of Google.

http://social.msdn.m...06-df17e76b635d

http://www.codeproje...mp_pinvoke.aspx

http://stackoverflow...dia-player-in-c
Was This Post Helpful? 1
  • +
  • -

#3 AdzBuck  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 3
  • Joined: 09-May 11

Re: Obtaining the value of "Seek"

Posted 30 May 2011 - 01:52 AM

As much as I appreciate your reply I don't really appreciate the way you just assume I haven't used Google or imply that I haven't even attempted to fix it myself, and the reason I didn't show any code is because I'm not asking someone to fix my code or post any for that matter, I'm simply asking for a method to look into.

However maybe I didn't explain my problem clear enough.

I am not using WMP in my app, I need to gain the values from the WMP program it's self.

I've been using the send message(http://www.codeproje...mp_pinvoke.aspx) method to play, pause, vol up/down mute.. ect. ect..

I've also managed to obtain all the play list by "pressing" the library button and looping LVM_GETITEMTEXT on the livtview handle.

However when it comes to obtaining the value of the tracker bar "seek" the sendmessage command doesn't seem to work and I can't figure it out. I've managed to figure the seek bar value is a float that is the place in seconds to the current song. The max value is the number of seconds in the song.

As posted in my post above the "path" to the tracker bar i'm attempting to get the value of is
/form[@title='Windows Media Player']/element[@class='WMPAppHost']/container[@accessiblename='svEntireApp']/container[@accessiblename='svRewindSeekFFWD']/slider[@accessiblename='Seek']

I have no problem getting the handle of Windows Media Player & WMPAppHost that's just findwindow & ex
However I'm unsure how to get the handle of svEntireApp as it's an accessiblename and not a title or a class.

Hopefully that will make a little more sense.
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1