Sign in to follow this  
Followers 0
Norryboy

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

6 posts in this topic

Hello

I am fairly new to AutoIt. I was wondering if anyone knew of a way to watch the timecode from an audio software like Winamp or Windows Media Player to set off events at a given time. Thanks for any help you can offer.

Share this post


Link to post
Share on other sites



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

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


Molenoid Fan Girl! And fully fledged nerd-bird! And soon to be Cosplayer~

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

#4 ·  Posted (edited)

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

Share this post


Link to post
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
Sign in to follow this  
Followers 0