Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ; Every time the focus of the mIRC window is changed
- on *:APPACTIVE:{
- ; If the time is between the hours of 22:00 (10PM) and 09:00 (9AM)
- if ($asctime(HH) >= 22 || $asctime(HH) <= 9) {
- ; If you don't have the mIRC window selected
- if ($appactive == false) {
- ; And if your current username is your default username
- if($mnick() == $me) {
- ; Start the countdown until you go afk (where the second number is the number of seconds till then)
- .timerAutoAfk 1 1800 /afk
- .timerAutoAFKMsg 1 1800 /msg #chan1,#chan2,#chan3 [Automated Message] I have probably fallen asleep, so I've been automatically set to away. etc etc
- }
- }
- ; If you DO have the mIRC window selected
- if($appactive == true) {
- ; Cancel the AutoAFK timer
- .timerAutoAfk off
- .timerAutoAFKMsg off
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment