Jump to content

How do I watch the timecode from Winamp or similar audio software


 Share

Recommended Posts

I didn't think of pixels, but that does sound wild. I read about a VB function(IPC_GETOUTPUTTIME) that would pull the timecode, so in my noob brain I was thinking maybe that could be reverse engineered somehow in AutoIt.

Im not sure you can do that with Autoit...

I think you could watch pixles, but thats a long shot.

Link to comment
Share on other sites

IPC_GETOUTPUTTIME isn't a function, but a constant with a value of 105

#Include <SendMessage.au3>
Global Const $IPC_GETOUTPUTTIME = 105, $WM_USER = 0x400
Global Const $WINAMP_CURRENT_SONG_POS = 0, $WINAMP_CURRENT_SONG_LEN = 1, $WINAMP_CURRENT_SONG_NOT_PLAYING = -1
$Winamp = WinGetHandle("Player Window") ; the winamp main window.... i dislike this as it will cause issues
$return = _SendMessage($Winamp, $WM_USER, $WINAMP_CURRENT_SONG_POS, $IPC_GETOUTPUTTIME, -1, "wparam", "lparam", "Double") ; -1 returns the raw array from the dllcall
Exit 0

give me a few minutes and i'll edit this post to contain the proper code

eh, i couldn't get any useful values from it (getting out what i put in, no errors), not sure why not though. but admiralalkex posted a library below

Edited by skyboy
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...