|
crobb Newbie
Joined: 10 Mar 2002 Posts: 3 Location: Iraq
|
Posted: Mon Mar 18, 2002 3:39 pm
time interval |
how can i use zmud to perform some command at a time interval say every 5 minutes. and can i make it just hit enter instead of making an actual command, just so i can get my prompt up every 5 minutes without moving or casting something? im using version 5.55
|
|
|
|
crobb Newbie
Joined: 10 Mar 2002 Posts: 3 Location: Iraq
|
Posted: Mon Mar 18, 2002 4:39 pm |
could you please give me an example Jagang?
|
|
|
|
dracx Beginner
Joined: 14 Oct 2000 Posts: 26 Location: USA
|
Posted: Mon Mar 18, 2002 4:59 pm |
#ALARM *5 {#SEND %crlf}
Dracx |
|
|
|
crobb Newbie
Joined: 10 Mar 2002 Posts: 3 Location: Iraq
|
Posted: Mon Mar 18, 2002 5:20 pm |
could you tell me what the %crlf means in your alarm above.
Also how could i make the *5 a random number between say 1 and 200 ? |
|
|
|
LightBulb MASTER
Joined: 28 Nov 2000 Posts: 4817 Location: USA
|
Posted: Mon Mar 18, 2002 5:24 pm |
That would be every 5 seconds, which is a bit of overkill. For once every 5 minutes, try this. For a random time, use the %random function in the time field.
#ALA *5:00 {#CR}
LightBulb
All scripts untested unless otherwise noted |
|
|
|
crobb Newbie
Joined: 10 Mar 2002 Posts: 3 Location: Iraq
|
Posted: Mon Mar 18, 2002 5:46 pm |
quote:
That would be every 5 seconds, which is a bit of overkill. For once every 5 minutes, try this. For a random time, use the %random function in the time field.
#ALA *5:00 {#CR}
LightBulb
All scripts untested unless otherwise noted
thats cool, thank. Im just wondering whether ill still need the * in front of the random numbers or not? |
|
|
|
LightBulb MASTER
Joined: 28 Nov 2000 Posts: 4817 Location: USA
|
Posted: Tue Mar 19, 2002 12:55 am |
No, what you'll need is one-time alarms with the random numbers. But since you want something fancy instead of something basic I'm going to allow you to figure out the actual script you'll need.
LightBulb
All scripts untested unless otherwise noted |
|
|
|
crobb Newbie
Joined: 10 Mar 2002 Posts: 3 Location: Iraq
|
Posted: Tue Mar 19, 2002 3:49 pm |
Thanks LightBulb,
I am a bit stupid when it comes to progging so maybe someone else would like to help me make the time interval a random number?
PS. what does the CR and the CLRF mean in the above alarms |
|
|
|
itsmarty Novice
Joined: 29 Jan 2002 Posts: 37 Location: USA
|
Posted: Tue Mar 19, 2002 9:36 pm |
quote:
PS. what does the CR and the CLRF mean in the above alarms
Go to the support forum and bring up the online help files. From there choose 'search' and enter cr. Once you've figured that one out search for crlf.
Since the entries just tell you what they do instead of what they stand for, it's carriage return and carriage return line feed. Old typewriter terms.
Martin |
|
|
|
Vijilante SubAdmin
Joined: 18 Nov 2001 Posts: 5182
|
Posted: Wed Mar 20, 2002 2:18 am |
Random numbers in Alarms requires a complex code, towards this end I will direct you to read the forums, you might only have to go back a little, and there is a nifty search function.
|
|
|
|
|
|