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.
try this:
*Timer SleepTimer #s timeout 2s !Amp_Pause
I don't think you want any flags.
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.
this is one that I have that I know works.
*Timer getweather #sl Weather 5m !GetWeather
How come you have "Weather" instead of "timeout"?
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.)
Hmmm, it's still not working. Am I correct in thinking that I put that line somewhere in the theme.rc file?
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.)
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?
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?
Is geekamp a winamp module? Or should I be using dynamp's commands?
Both of those are winamp modules. Right click >> Litestep >> About >> Loaded Modules (pulldown). Make sure you see geekamp (or dynamp) loaded.
geekamp is loaded, and that's the one that uses the !Amp_Pause bang.
Drat. Well, there goes one useful idea, at least for the time being. Thanks for your time anyway!
You did load timer.dll too right?
*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!
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)
lol.
cool idea about the loaded module docs though ;) (thinking about a seperate folder "Loaded Module Docs")