MrCreatoR Posted May 20, 2008 Author Share Posted May 20, 2008 (edited) I think perhaps it should be up to the user to supply the proper window handle to the functions. What if I have two Winamp windows open? How would I specify which window I want the functions to act on? Otherwise looks really good, it will be nice to have something that doesn't rely on ActiveWinamp.Basically i can add an optional parameter to all functions ($hWnd), but in what cases that would be neccessary? i mean why user will run two windows of winamp? Edited May 20, 2008 by MrCreatoR Spoiler Using OS: Win 7 Professional, Using AutoIt Ver(s): 3.3.6.1 / 3.3.8.1 AutoIt Russian Community My Work... Spoiler Projects: ATT - Application Translate Tool {new}| BlockIt - Block files & folders {new}| SIP - Selected Image Preview {new}| SISCABMAN - SciTE Abbreviations Manager {new}| AutoIt Path Switcher | AutoIt Menu for Opera! | YouTube Download Center! | Desktop Icons Restorator | Math Tasks | KeyBoard & Mouse Cleaner | CaptureIt - Capture Images Utility | CheckFileSize ProgramUDFs: OnAutoItErrorRegister - Handle AutoIt critical errors {new}| AutoIt Syntax Highlight {new}| Opera Library! | Winamp Library | GetFolderToMenu | Custom_InputBox()! | _FileRun UDF | _CheckInput() UDF | _GUIInputSetOnlyNumbers() UDF | _FileGetValidName() UDF | _GUICtrlCreateRadioCBox UDF | _GuiCreateGrid() | _PathSplitByRegExp() | _GUICtrlListView_MoveItems - UDF | GUICtrlSetOnHover_UDF! | _ControlTab UDF! | _MouseSetOnEvent() UDF! | _ProcessListEx - UDF | GUICtrl_SetResizing - UDF! | Mod. for _IniString UDFs | _StringStripChars UDF | _ColorIsDarkShade UDF | _ColorConvertValue UDF | _GUICtrlTab_CoverBackground | CUI_App_UDF | _IncludeScripts UDF | _AutoIt3ExecuteCode | _DragList UDF | Mod. for _ListView_Progress | _ListView_SysLink | _GenerateRandomNumbers | _BlockInputEx | _IsPressedEx | OnAutoItExit Handler | _GUICtrlCreateTFLabel UDF | WinControlSetEvent UDF | Mod. for _DirGetSizeEx UDF Examples: ScreenSaver Demo - Matrix included | Gui Drag Without pause the script | _WinAttach()! | Turn Off/On Monitor | ComboBox Handler Example | Mod. for "Thinking Box" | Cool "About" Box | TasksBar Imitation Demo Like the Projects/UDFs/Examples? Please rate the topic (up-right corner of the post header: Rating ) * === My topics === * ================================================== ================================================== AutoIt is simple, subtle, elegant. © AutoIt Team Link to comment Share on other sites More sharing options...
ZoScr Posted June 30, 2008 Share Posted June 30, 2008 Basically i can add an optional parameter to all functions ($hWnd), but in what cases that would be neccessary? i mean why user will run two windows of winamp? I'm really interested in finding a way of scripting multiple copies of Winamp.In my situation, I might be running 5 copies of Winamp (think DJ'ing), and what I want is a script that logs to a file every time any instance of Winamp changes to a new track.I have a suspicion that ActiveWinamp doesn't allow this...so I'm hoping that maybe your stand-alone AutoIt script can!Thanks! Link to comment Share on other sites More sharing options...
Kreatorul Posted June 30, 2008 Share Posted June 30, 2008 Could you add something like GetTrackArtist. You only added title and I also need the artist Thanks Link to comment Share on other sites More sharing options...
ZoScr Posted July 1, 2008 Share Posted July 1, 2008 what I want is a script that logs to a file every time any instance of Winamp changes to a new track.I have a suspicion that ActiveWinamp doesn't allow this...Never mind! I just did more ActiveWinamp RTFM (actually, I Used The Source), and realized that if you name a script startup_*.vbs, it'll automatically run it when Winamp launches. So, I tweaked the included logsong.vbs to not hold the log file open between writes, and I've got exactly what I want now!Thanks everyone. Link to comment Share on other sites More sharing options...
WeMartiansAreFriendly Posted July 2, 2008 Share Posted July 2, 2008 Thanks for the awesome script MrCreator. Don't bother, It's inside your monitor!------GUISetOnEvent should behave more like HotKeySet() Link to comment Share on other sites More sharing options...
MasterX Posted July 2, 2008 Share Posted July 2, 2008 Amazing, very nice work 5*. Link to comment Share on other sites More sharing options...
LIMITER Posted November 29, 2008 Share Posted November 29, 2008 Dead download link :| Link to comment Share on other sites More sharing options...
weaponx Posted December 3, 2008 Share Posted December 3, 2008 Dead download link :|It's up for me.http://creator-lab.ucoz.ru/load/0-0-1-43-20 Link to comment Share on other sites More sharing options...
LIMITER Posted December 4, 2008 Share Posted December 4, 2008 Thx weaponx (maybe it was down only for one day) Cheers, L|M|TER Link to comment Share on other sites More sharing options...
pixartist Posted April 25, 2009 Share Posted April 25, 2009 :\Programme\AutoIt3\script\Winamp\Winamp_Library.au3(715,84) : ERROR: Opt() called with illegal argument 1: "RunErrorsFatal" If $iAutoItVersion_Compare <= 0 Then Local $iOld_Opt_REF = Opt("RunErrorsFatal", 0) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^F:\Programme\AutoIt3\script\Winamp\Winamp_Library.au3(727,74) : ERROR: Opt() called with illegal argument 1: "RunErrorsFatal" If $iAutoItVersion_Compare <= 0 Then Opt("RunErrorsFatal", $iOld_Opt_REF) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^F:\Programme\AutoIt3\script\Winamp\numpadcontrol.au3(6,25) : ERROR: syntax error _Winamp_PlayPauseToggle ~~~~~~~~~~~~~~~~~~~~~~~^F:\Programme\AutoIt3\script\Winamp\numpadcontrol.au3 - 3 error(s), 0 warning(s)!>13:39:52 AU3Check ended.rc:2 Link to comment Share on other sites More sharing options...
MrCreatoR Posted April 29, 2009 Author Share Posted April 29, 2009 pixartistThe library was written almost one year ago, lot of things was changed in autoit, so t's ok - will fix those errors soon. Spoiler Using OS: Win 7 Professional, Using AutoIt Ver(s): 3.3.6.1 / 3.3.8.1 AutoIt Russian Community My Work... Spoiler Projects: ATT - Application Translate Tool {new}| BlockIt - Block files & folders {new}| SIP - Selected Image Preview {new}| SISCABMAN - SciTE Abbreviations Manager {new}| AutoIt Path Switcher | AutoIt Menu for Opera! | YouTube Download Center! | Desktop Icons Restorator | Math Tasks | KeyBoard & Mouse Cleaner | CaptureIt - Capture Images Utility | CheckFileSize ProgramUDFs: OnAutoItErrorRegister - Handle AutoIt critical errors {new}| AutoIt Syntax Highlight {new}| Opera Library! | Winamp Library | GetFolderToMenu | Custom_InputBox()! | _FileRun UDF | _CheckInput() UDF | _GUIInputSetOnlyNumbers() UDF | _FileGetValidName() UDF | _GUICtrlCreateRadioCBox UDF | _GuiCreateGrid() | _PathSplitByRegExp() | _GUICtrlListView_MoveItems - UDF | GUICtrlSetOnHover_UDF! | _ControlTab UDF! | _MouseSetOnEvent() UDF! | _ProcessListEx - UDF | GUICtrl_SetResizing - UDF! | Mod. for _IniString UDFs | _StringStripChars UDF | _ColorIsDarkShade UDF | _ColorConvertValue UDF | _GUICtrlTab_CoverBackground | CUI_App_UDF | _IncludeScripts UDF | _AutoIt3ExecuteCode | _DragList UDF | Mod. for _ListView_Progress | _ListView_SysLink | _GenerateRandomNumbers | _BlockInputEx | _IsPressedEx | OnAutoItExit Handler | _GUICtrlCreateTFLabel UDF | WinControlSetEvent UDF | Mod. for _DirGetSizeEx UDF Examples: ScreenSaver Demo - Matrix included | Gui Drag Without pause the script | _WinAttach()! | Turn Off/On Monitor | ComboBox Handler Example | Mod. for "Thinking Box" | Cool "About" Box | TasksBar Imitation Demo Like the Projects/UDFs/Examples? Please rate the topic (up-right corner of the post header: Rating ) * === My topics === * ================================================== ================================================== AutoIt is simple, subtle, elegant. © AutoIt Team Link to comment Share on other sites More sharing options...
MrCreatoR Posted May 22, 2009 Author Share Posted May 22, 2009 Library updated! v1.4 [22.May.2009] * The library now compatible with AutoIt v3.3.0.0. * Added optional $h_Winamp_Wnd parameter to all functions that sends message to winamp's window - It should allow to manage multiple winamp instances. (by default the handle is taken from $sWINAMP_CLASS). Please see the first post. Spoiler Using OS: Win 7 Professional, Using AutoIt Ver(s): 3.3.6.1 / 3.3.8.1 AutoIt Russian Community My Work... Spoiler Projects: ATT - Application Translate Tool {new}| BlockIt - Block files & folders {new}| SIP - Selected Image Preview {new}| SISCABMAN - SciTE Abbreviations Manager {new}| AutoIt Path Switcher | AutoIt Menu for Opera! | YouTube Download Center! | Desktop Icons Restorator | Math Tasks | KeyBoard & Mouse Cleaner | CaptureIt - Capture Images Utility | CheckFileSize ProgramUDFs: OnAutoItErrorRegister - Handle AutoIt critical errors {new}| AutoIt Syntax Highlight {new}| Opera Library! | Winamp Library | GetFolderToMenu | Custom_InputBox()! | _FileRun UDF | _CheckInput() UDF | _GUIInputSetOnlyNumbers() UDF | _FileGetValidName() UDF | _GUICtrlCreateRadioCBox UDF | _GuiCreateGrid() | _PathSplitByRegExp() | _GUICtrlListView_MoveItems - UDF | GUICtrlSetOnHover_UDF! | _ControlTab UDF! | _MouseSetOnEvent() UDF! | _ProcessListEx - UDF | GUICtrl_SetResizing - UDF! | Mod. for _IniString UDFs | _StringStripChars UDF | _ColorIsDarkShade UDF | _ColorConvertValue UDF | _GUICtrlTab_CoverBackground | CUI_App_UDF | _IncludeScripts UDF | _AutoIt3ExecuteCode | _DragList UDF | Mod. for _ListView_Progress | _ListView_SysLink | _GenerateRandomNumbers | _BlockInputEx | _IsPressedEx | OnAutoItExit Handler | _GUICtrlCreateTFLabel UDF | WinControlSetEvent UDF | Mod. for _DirGetSizeEx UDF Examples: ScreenSaver Demo - Matrix included | Gui Drag Without pause the script | _WinAttach()! | Turn Off/On Monitor | ComboBox Handler Example | Mod. for "Thinking Box" | Cool "About" Box | TasksBar Imitation Demo Like the Projects/UDFs/Examples? Please rate the topic (up-right corner of the post header: Rating ) * === My topics === * ================================================== ================================================== AutoIt is simple, subtle, elegant. © AutoIt Team Link to comment Share on other sites More sharing options...
BlackPhoenix Posted November 4, 2009 Share Posted November 4, 2009 Actually I was looking for this. I'm always busy doing other things at my pc and don't watch winamp when im listening to internet radio, often i forget to write down nice songs when I hear them so I made a script that does that for me with the help of your UDF. #Region ;**** Directives created by AutoIt3Wrapper_GUI **** #AutoIt3Wrapper_outfile=..\Desktop\Winamp Tracklister.exe #EndRegion ;**** Directives created by AutoIt3Wrapper_GUI **** ;Winamp lister ;Lists songs that are played in winamp #include <Winamp_Library.au3> $hFile=@ScriptDir&'\Tracklist.txt' While 1 $Track=_Winamp_GetCurrentTrackTitle() If stringinstr(FileRead($hFile),$Track)=0 then;No dupes plox Filewriteline($hFile,@MDAY&'/'&@MON&'/'&@YEAR&' Time: ' &@HOUR & ':' & @MIN & ":" & @SEC&' - '&$Track&@CRLF) FileClose($hFile) Endif Sleep(1000);Update interval Wend Simple and Usefull (for me) Link to comment Share on other sites More sharing options...
FuryCell Posted November 7, 2009 Share Posted November 7, 2009 Is it possible to get the artist of the current track? I would really like this so I can add WinAmp Support to one of my apps (LyricToy). HKTunes:Softpedia | GoogleCodeLyricToy:Softpedia | GoogleCodeRCTunes:Softpedia | GoogleCodeMichtaToolsProgrammer n. - An ingenious device that turns caffeine into code. Link to comment Share on other sites More sharing options...
Kreatorul Posted December 6, 2009 Share Posted December 6, 2009 I did it using _Winamp_GetCurrentTrackFilePath() and then I used an id3 tag reader. Link to comment Share on other sites More sharing options...
Erion Posted October 12, 2010 Share Posted October 12, 2010 A new version of the Library is here! Changes: ; v1.5 [06.October.2010] ; _Winamp_GetCurrentTrackInfo now returns an array as it should have: ; 0: Sample Rate in khz ; 1: Bitrate ; 2: Number of Channels ; 3: Video LOWORD=w HIWORD=h ; 4: Video Description ; 5: Sample rate in hz ; Added 4 new UDFs: _WinampGetPan, _WinampSetPan, _WinampGetEq and _WinampSetEq. Enjoy, ErionWinamp_Library.au3 Link to comment Share on other sites More sharing options...
dragan Posted November 29, 2012 Share Posted November 29, 2012 Sorry to revive this old topic, but I really need one question answered. Why isn't there option for getting mute state? I searched other forums winamp-related, and I found nothing on the IPC_GET_MUTE state. Any ideas how to get mute state? Link to comment Share on other sites More sharing options...
somdcomputerguy Posted November 29, 2012 Share Posted November 29, 2012 (edited) Any ideas how to get mute state? I use _Winamp_GetVolume(), like this.. Func ToggleMute() If _Winamp_GetVolume() = 0 Then If $WinampTempVolume <> 0 Then _Winamp_SetVolume($WinampTempVolume) Else _Winamp_SetVolume(85) EndIf Else $WinampTempVolume = _Winamp_GetVolume() _Winamp_SetVolume(0) EndIf EndFunc Basically, it mutes if it's not already muted, or sets the volume back to whatever it was before a mute.. I don't think this is exactly what you're after, but maybe this'll help? Edited November 29, 2012 by somdcomputerguy - Bruce /*somdcomputerguy */ If you change the way you look at things, the things you look at change. Link to comment Share on other sites More sharing options...
dragan Posted November 29, 2012 Share Posted November 29, 2012 Tnx, but that's not good solution for me. I'm making remote control on my android device, remote control for winamp on PC, and server on PC (autoit-based) should control winamp and send all winamp data back to my android device. I would like to get REAL winamp mute state, that way I could use different icons on android device for mute and non mute state, also disable scrollbar for volume control on android if winamp is muted. Link to comment Share on other sites More sharing options...
TormentoRobots Posted January 29, 2013 Share Posted January 29, 2013 aww I thought this loaded up the database of winamp Library misleading name.Z other than that, Some fine coding I see here! #Include-once;TormentoRobots 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