mIRC Home    About    Download    Register    News    Help

Print Thread
Running a Script on at a Specific Time each day #264279 15/11/18 07:29 PM
Joined: Nov 2018
Posts: 4
B
BlakeNote Offline OP
Self-satisified door
OP Offline
Self-satisified door
B
Joined: Nov 2018
Posts: 4
Hello! I am trying to write a script to write a message to a channel on a specific times for every day of the week. Currently the script that I am doing crashes mIRC client and was wondering if anyone knows a better way of doing this?

Current Script:

on me:*:join:#channel:{
while (($day == Thursday)) {
if (($time == 16:04:00)) {
msg $chan test $day and $time
}
if (($time == 15:50)) {
msg $chan test $day and $time
}
if (($time == 15:52)) {
msg $chan test $day and $time
}
if (($time == 15:53)) {
msg $chan test $day and $time
}
}
}

Last edited by BlakeNote; 15/11/18 09:06 PM.
Re: Running a Script on at a Specific Time each day [Re: BlakeNote] #264281 15/11/18 09:12 PM
Joined: Jan 2004
Posts: 1,407
maroon Offline
Hoopy frood
Offline
Hoopy frood
Joined: Jan 2004
Posts: 1,407
take a peek at this thread and see if it's what you need
https://forums.mirc.com/ubbthreads.php/topics/260747/Scheduled_Message_(to_run_a_co#Post260747

Re: Running a Script on at a Specific Time each day [Re: BlakeNote] #264410 27/11/18 11:40 AM
Joined: Apr 2015
Posts: 19
O
ovelayer Offline
Pikka bird
Offline
Pikka bird
O
Joined: Apr 2015
Posts: 19
if (*00:??:* iswm $fulldate) {
.msg BlakeNote works.
}


I'm sure you can see the pattern and take it from there