Winamp control and a challenge perhaps? Thread last updated on 2005-11-10 13:33:14

Posted by member 280609 on 2005-11-09 22:08:30

Alright, so I'm using a theme that doesn't have a Winamp Status bar. That's not a problem. Also, not a problem controlling Winamp, I've figured that out pretty quickly. Now, what I want to do next is this: When I change songs, I want a label to show what song I'm currently on and I need the box to stay up for... say 10 seconds (perhaps in the middle of the screen and slight transparency, both optional.) Sort of want it to be like the window that comes up when you use ALT+Tab. I would be grateful to anyone who could show me how to do this.

Thanks ahead of time.

Posted by member 1949 on 2005-11-09 22:16:02 link

xlabel 3.4.5 will do this
and use timer for the 10sec deal

Start reading...

Posted by member 280609 on 2005-11-09 22:20:25 link

yeah, i had already tried that and ran into some problems with hotkeys. any way to have them execute two bangs at the same time?

Posted by member 212670 on 2005-11-09 22:56:04 link

Actually, xlabel will also do the 10 second timer. See the "bang" secton of the help for how.

Multiple bangs are executed by doing
!execute [!bang1][!bang2]
and so on.

Posted by member 280609 on 2005-11-10 00:02:20 link

hmm. thanks xcal. could have sworn i tried that, but it can't hurt to try again. too late to do it tonight, but i'll update tomorrow evening.

Posted by member 37809 on 2005-11-10 09:52:22 link

One wonders if xLabel's showhide feature allows interruptions.. that is, if you switch amongst multiple songs within 10 seconds, will it reset the hiding timer per switch? That is the argument for using timer-0.5 and scripting to coordinate it.

Posted by member 12025 on 2005-11-10 12:47:25 link

Interestingly enough, you could still just use xLabel if you used the song's current time for it :). On song change, show label, when song time in seconds > 9, hide. However, a script from LSLua or MZScript would be a lot easier to edit, debug, and read in general than xLabel's conditionals.

Posted by member 212670 on 2005-11-10 13:33:14 link

tnl: Ya, xlabel will refresh. The theme I'm messing with right now actually has 8 buttons that all share the same hideshow label. Each button changes the label's text and hideshows it. I can click through them all one after another before the timer is up, and the label still fades out when it should. Would work the same for an ontextchange event, I would think.