Kulgan_Starkk

mIRC Basic Auto-AFK Remote Script

Feb 13th, 2016
170
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.85 KB | None | 0 0
  1. ; Every time the focus of the mIRC window is changed
  2. on *:APPACTIVE:{
  3. ; If the time is between the hours of 22:00 (10PM) and 09:00 (9AM)
  4. if ($asctime(HH) >= 22 || $asctime(HH) <= 9) {
  5.  
  6. ; If you don't have the mIRC window selected
  7. if ($appactive == false) {
  8. ; And if your current username is your default username
  9. if($mnick() == $me) {
  10. ; Start the countdown until you go afk (where the second number is the number of seconds till then)
  11. .timerAutoAfk 1 1800 /afk
  12. .timerAutoAFKMsg 1 1800 /msg #chan1,#chan2,#chan3 [Automated Message] I have probably fallen asleep, so I've been automatically set to away. etc etc
  13. }
  14. }
  15.  
  16.  
  17. ; If you DO have the mIRC window selected
  18. if($appactive == true) {
  19. ; Cancel the AutoAFK timer
  20. .timerAutoAfk off
  21. .timerAutoAFKMsg off
  22. }
  23. }
  24.  
  25. }
Advertisement
Add Comment
Please, Sign In to add comment