Hotkey -> timer -> WinAmp Thread last updated on 2006-01-11 11:47:51

Posted by member 250843 on 2006-01-10 14:18:06

Ok, so I'm trying to create a hotkey that will start a timer to pause WinAmp after 30 minutes, so I can fall asleep to music but not miss too much of my playlist ;) Unfortunately, something's not working right. I have created this line in my hotkey.rc file:

*Hotkey CTRL t !TimerStart SleepTimer

And this one in my theme.rc:

*Timer SleepTimer [#l] [] timeout[5s] !Amp_Pause
(I set it at 5 seconds just for testing purposes)

Should the timer line go in step.rc? What else could I be doing wrong?

Thanks for your consideration.

Posted by member 1316 on 2006-01-10 15:10:07 link

try this:
*Timer SleepTimer #s timeout 2s !Amp_Pause

Posted by member 212670 on 2006-01-10 15:21:43 link

I don't think you want any flags.

Posted by member 250843 on 2006-01-10 16:12:13 link

Hmm. I tried your code, deuce, and it didn't pause. xcal, the readme for timer-0.5 didn't say the flag part of the syntax was optional.

Posted by member 1 on 2006-01-10 16:40:27 link

this is one that I have that I know works.

*Timer getweather #sl Weather 5m !GetWeather

Posted by member 250843 on 2006-01-10 16:43:11 link

How come you have "Weather" instead of "timeout"?

Posted by member 212670 on 2006-01-10 16:49:33 link

The flags are optional, and the mention of that is subtle, but it's there.

Just use:

*Timer Name 1000 !alert started

That would be called with "!timerstart Name"
In 1 second (1000ms - default, since no s/m/h is defined) !alert would popup with "started" as the text.

The "weather" in Dev's is a group option. The "timeout" in deuce's example is probably wrong syntax :) but would be translated in to a group.

edit -

Just so there's no mistake, what you would want is:

*Timer SleepTimer 2s !Amp_Pause

(Changing the 2s to whatever time you want, of course, like 30m.)

Posted by member 250843 on 2006-01-10 19:19:50 link

Hmmm, it's still not working. Am I correct in thinking that I put that line somewhere in the theme.rc file?

Posted by member 212670 on 2006-01-10 20:13:58 link

It could go there, ya. Not sure if it would matter, but make sure to have the *Timer line after the *netloadmodule line.

(btw, I know what I have above works, because I tested first, to be sure.)

Posted by member 250843 on 2006-01-10 21:20:58 link

Ok, so that line is correct. I've tested the hotkey by changing

*Hotkey CTRL t !TimerStart SleepTimer

to

*Hotkey CTRL t !Amp_Pause

and that worked. Is my code for the bang wrong? If so, how could I go about fixing it?

Posted by member 212670 on 2006-01-10 21:53:59 link

I just tested:

*Timer SleepTimer 2s !alert

And for the macro:

*Hotkey CTRL T !TimerStart SleepTimer

Worked perfectly for me.

You are loading a winamp module, of course?

Posted by member 250843 on 2006-01-10 21:54:56 link

Is geekamp a winamp module? Or should I be using dynamp's commands?

Posted by member 212670 on 2006-01-10 22:03:33 link

Both of those are winamp modules. Right click >> Litestep >> About >> Loaded Modules (pulldown). Make sure you see geekamp (or dynamp) loaded.

Posted by member 250843 on 2006-01-10 22:09:30 link

geekamp is loaded, and that's the one that uses the !Amp_Pause bang.

Posted by member 212670 on 2006-01-10 22:12:02 link

Hmm I'm out of ideas.

Posted by member 250843 on 2006-01-10 22:18:30 link

Drat. Well, there goes one useful idea, at least for the time being. Thanks for your time anyway!

Posted by member 1 on 2006-01-11 02:32:29 link

You did load timer.dll too right?

Posted by member 250843 on 2006-01-11 06:51:47 link

*Smacks self in forehead* Ok, chalk up another newbie moment for me. Sorry, guys; I figured if its documentation was in the "modules docs" menu, it'd be loaded.

It works fine now. Thanks again for the help!

Posted by member 212670 on 2006-01-11 07:52:30 link

o
m
f
g

Posted by member 1316 on 2006-01-11 09:34:54 link

ok, someone's not getting anymore help. (I knew mine worked at least, since I tried it on my PC, and it paused winamp after 2 seconds, just like it was supposed to)

Posted by member 248213 on 2006-01-11 11:47:51 link

lol.

cool idea about the loaded module docs though ;) (thinking about a seperate folder "Loaded Module Docs")