Advertisement
Tiago_f

checkwinstate

Apr 5th, 2024 (edited)
811
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
mIRC 0.40 KB | None | 0 0
  1. alias checkwinstate {
  2.   var %sco = $scon(0)
  3.   while (%sco >= 1) {
  4.     .scid $scon(%sco)
  5.     var %x = 1, %y = $window( *, 0)
  6.     while ( %x <= %y ) {
  7.       if ($window( *, %x).sbcolor == message) || ($window( *, %x).sbcolor == event) { return 1 }
  8.       inc %x
  9.     }
  10.     dec %sco
  11.   }
  12.   .scid -r
  13. }
  14. menu menubar,status {
  15.   $iif($checkwinstate != 1,$style(2)) &Mark As Read :scon -a markasread
  16. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement