Norryboy Posted December 7, 2009 Share Posted December 7, 2009 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. Link to comment Share on other sites More sharing options...
DoktorTTM Posted December 7, 2009 Share Posted December 7, 2009 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~ Link to comment Share on other sites More sharing options...
Norryboy Posted December 7, 2009 Author Share Posted December 7, 2009 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 More sharing options...
skyboy Posted December 7, 2009 Share Posted December 7, 2009 (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 0give me a few minutes and i'll edit this post to contain the proper codeeh, 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 December 7, 2009 by skyboy Link to comment Share on other sites More sharing options...
AdmiralAlkex Posted December 7, 2009 Share Posted December 7, 2009 Winamp Library? .Some of my scripts: ShiftER, Codec-Control, Resolution switcher for HTC ShiftSome of my UDFs: SDL UDF, SetDefaultDllDirectories, Converting GDI+ Bitmap/Image to SDL Surface Link to comment Share on other sites More sharing options...
Norryboy Posted December 8, 2009 Author Share Posted December 8, 2009 Nice, I think all this will help a lot. Thanks everyone!Winamp Library? Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now