problem

nnCron and nnCron LITE discussion

problem

Postby darkking » Fri, 23 Feb 2007, 12:10

Hi,
I tryed to make a script, that every 30 mins will stop winamp, play me a radio_spot, and after finish start winamp again with a default playlist.

Code: Select all
Time: 30 * * * * *
KILL: winamp.exe

Time: 0.30 * * * * *
Action:
StartIn: "C:\Program Files\Winamp"
ShowNormal   NormalPriority
START-APP: C:\Program Files\Winamp\winamp.exe radio_spot.mp3

Time: 0.30 * * * * *
KILL: winamp.exe

Time: 0.01 * * * * *
Action:
StartIn: "C:\Program Files\Winamp"
ShowNormal NormalPriority
START-APP: C:\Program Files\Winamp\Winap.exe list.m3u


Still, it doesn't work.

Please someone help me.

Regards,
DK
darkking
 
Posts: 2
Joined: Fri, 23 Feb 2007, 11:51

Postby Valery_Kondakoff » Fri, 23 Feb 2007, 14:24

You are using the 'Extended' nnCron syntax in a wrong maner. Please, read the syntax description here: http://www.nncron.ru/help/EN/working/extended.htm .
CU
VK
User avatar
Valery_Kondakoff
Site Admin
 
Posts: 769
Joined: Thu, 01 Jul 2004, 20:49
Location: Moscow, Russia

Postby darkking » Sat, 24 Feb 2007, 10:55

thanks, but did it this way:

Code: Select all
AsLoggedUser
Time: */30 * * * * *
Action:
StartIn: "C:\Program Files\Winamp"
ShowNormal   NormalPriority
START-APP: C:\Program Files\Winamp\winamp.exe spot Fidelio produse martie.mp3
PAUSE: 30000
START-APP: C:\Program Files\Winamp\winamp.exe lista.m3u


Edit: works fine
darkking
 
Posts: 2
Joined: Fri, 23 Feb 2007, 11:51


Return to nnCron forum (English)

Who is online

Users browsing this forum: No registered users and 1 guest