|
BlackForce Nickli Üyeden Alıntı
Bu forumdaki linkleri ve resimleri görebilmek için en az 25 mesajınız olması gerekir. |
Merhabalar arkadaşlar, ben bir alias'ı bot düşse tekrar bağlansa bile otomatik 00.00.00'da çalıştırmak istiyorum..
Bunun için komut verebilir misiniz?
Mesela PHP Kod: Kodu kopyalamak için üzerine çift tıklayın!
/timer 14:30 1 1 /test
gibi birşey çalışır mı acaba? Yoksa bir timer'ı sonsuz döngü ile $time == 00:00:00 şeklinde mi kontrol ettirmeliyim sürekli?
|
/timer komutunda -o parametresini de kullanabilirsin.
Disconnect/Connect olunsa bile timer çalışacaktır.
Örnek:
Kod: Kodu kopyalamak için üzerine çift tıklayın!
//timer -o 00:00 1 10 /test
Faydalı bir kaç kaynak:
-
1-
[Üye Olmadan Linkleri Göremezsiniz. Üye Olmak için TIKLAYIN...]
2-
[Üye Olmadan Linkleri Göremezsiniz. Üye Olmak için TIKLAYIN...]
mirc.chm /timer komutu açıklaması
-
[BOX="Timer komutu"]/timer[N/name] [-cdeomhipr] [time] <repetitions> <interval> <command>
Activates the specified timer to perform the specified command at a specified interval, and optionally at a specified time.
If you are not connected to a server and you start a timer, it defaults to being an offline timer which means it will continue to run whether you are connected to a server or not.
If you are connected to a server and you start a timer, it defaults to being an online timer, which means that if you disconnect from the server, it will be turned off. You can specify the -o switch to force it to be an offline timer.
/timer1 0 20 /ame is AWAY!
Timer1 will repeat an all channel action every 20 seconds until you stop the timer.
If you specify a delay of 0 seconds, the timer will trigger immediately after the calling script ends.
/timer5 10 60 /msg #games For more info on the latest games do /msg GaMeBoT info
Timer5 will repeat this message to channel #games every sixty seconds and stop after 10 times.
/timer9 14:30 1 1 /say It's now 2:30pm
This will wait until 2:30pm and will then announce the time once and stop.
To see a list of active timers type /timers. To see the setting for timer1 type /timer1. To deactivate timer1 type /timer1 off. To deactivate all timers type /timers off. If you are activating a new timer you do not need to specify the timer number, just use:
/timer 10 20 /ame I'm not here!
And mIRC will allocate the first free timer it finds to this command.
If you specify the -c switch, this makes mIRC "catch up" a timer by executing it more than once during one interval if the real-time interval isn't matching your requested interval.
If you specify the -m or -h switch, this indicates that the interval delay is in milliseconds.
Note: The -h switch creates a high-resolution multimedia timer. This type of timer should only be used in critical timer situations since it uses system resources heavily.
The -d switch ensures that a timer and any subsequent timers using the -d switch are triggered in that order.
If you specify the -e switch, this executes the command associated with the specified timer name, also works if you specify a wildcard name.
The $ltimer identifier returns the number of the timer that was just started by the /timer command.
Instead of using a number you can also specify a name for a timer.
/timershow 0 10 echo -a $nick $server $time
You can force identifiers to be re-evaluated when used in a /timer command by using the format $!me or $!time.
If you wish to turn off a range of timers, you can use a wildcard for the number, for example:
/timer3? off
Will turn off all timers from 30 to 39.
The -
pr switches pause and resume a timer respectively.
The -i switch makes a timer dynamically associate with whatever happens to be the active connection. If a server window is closed, the timer is associated with the next available server window.
[/BOX]