mIRC Home    About    Download    Register    News    Help

Print Thread
Page 2 of 2 1 2
Re: Making /list not change window focus when used #116627 22/04/05 03:52 PM
Joined: Dec 2002
Posts: 1,245
M
MikeChat Offline
Hoopy frood
Offline
Hoopy frood
M
Joined: Dec 2002
Posts: 1,245
ok, made some other changes:
Code:
;;;; chanlist
#chanlist on
raw 321:*:{
  window -hn "Channels list"
 [color:red] if ($appactive == $true) { 
    if ($window(%active).type == channel) { window -a %active }
  }[/color]
[color:blue] ;;; only sets focus if a channel window was $active[/color]

  window -hls @chanlist1 
  window @chanlist 10 100 788 200
}
raw 322:*:{
  aline @chanlist1 $right(... $+ $3,4) - $2 - $4-
  halt
}
raw 323:*:{
   [color:red]set %showtime $ctime[/color]
[color:blue];;; settup to show the delay, remove if you dont want this (as well as the line below that has $duration in it) [/color]


  write -c @chanlist.txt
  savebuf @chanlist1 @chanlist.txt
  clear @chanlist1
  reversesort
 [color:red] .timerrelist 1 $r(60,120) chanrelist [/color]
}

alias chanrelist {
  [color:red] echo -s $duration($calc($ctime - %showtime))[/color]
[color:blue];;;; this shows what the delay was in status, remove this with the settup above if you dont want to see the delay[/color]

  set %active $active
  clear @chanlist
  list
}

alias reversesort {
  var %clistlines = $lines(@chanlist.txt)
  while (%clistlines) {
    aline @chanlist $read -l $+ %clistlines @chanlist.txt
    dec %clistlines
  }
  sline @chanlist 10
}
;;;;;;
#chanlist end

Re: Making /list not change window focus when used #116628 22/04/05 04:50 PM
Joined: Feb 2005
Posts: 40
xolademoness Offline OP
Ameglian cow
OP Offline
Ameglian cow
Joined: Feb 2005
Posts: 40
Fantastic smile Seems to be working ok now!

One thing though, is there any way to remove the big
white space at the top of the window the script makes?
Each time it refreshes it moves the scroll bar of the
window so hides some text sometimes, meaning I have
to click on it and readjust it if I want to see the channel
with the most people in it confused

Re: Making /list not change window focus when used #116629 22/04/05 04:59 PM
Joined: Dec 2002
Posts: 1,245
M
MikeChat Offline
Hoopy frood
Offline
Hoopy frood
M
Joined: Dec 2002
Posts: 1,245
this line trys to do that
Code:
alias reversesort {
  var %clistlines = $lines(@chanlist.txt)
  while (%clistlines) {
    aline @chanlist $read -l $+ %clistlines @chanlist.txt
    dec %clistlines
  }
 [color:red] sline @chanlist 10[/color]
}


the font that you are using will change whether that works well or not.
change the 10 to 8 or whatever to get it to show the top line

Re: Making /list not change window focus when used #116630 22/04/05 05:11 PM
Joined: Feb 2005
Posts: 40
xolademoness Offline OP
Ameglian cow
OP Offline
Ameglian cow
Joined: Feb 2005
Posts: 40
Ok changing the 10 to 8 seems to have worked. smile
Still that mysterious white space there, what causes
that? Not important it's just odd

Also is there any way to stop the mirc window
flashing when the list is automatically updated?

I like mirc flashing when new text is in the channel
I am in etc, that is what I have it set to do and I like
that, but it's a bit confusing now it flashes too when
the list updates, giving me a "false alarm" thinking
people are talking when they're not smirk confused

Re: Making /list not change window focus when used #116631 22/04/05 05:19 PM
Joined: Dec 2002
Posts: 1,245
M
MikeChat Offline
Hoopy frood
Offline
Hoopy frood
M
Joined: Dec 2002
Posts: 1,245
Not that I could find.

Re: Making /list not change window focus when used #116632 22/04/05 05:32 PM
Joined: Feb 2005
Posts: 40
xolademoness Offline OP
Ameglian cow
OP Offline
Ameglian cow
Joined: Feb 2005
Posts: 40
Ok thanks for everything else though, was really nice of
you to help.. smile smile Other than that it works great! I still
haven't figured out what causes the big white space though
looking at it I thought it would be like "... - - " on every line
that is blank there instead.

If anyone else knows by any chance how to make it so it
doesn't flash the mIRC window on my taskbar when the
script updates the list please reply? confused

Page 2 of 2 1 2