mIRC Home    About    Download    Register    News    Help

Print Thread
#109441 29/01/05 06:44 PM
U
uicnren
uicnren
U
Have been searching, but to no avail.

Is it possible to create an alias that would allow me to change the number of display lines on the switchbar ?

I would like to be able to switch the number of lines without having to open the options dialog.

I havent been able to locate any identifiers associated with the switchbar, so I dont know if it is even possible.

Thanks for any input.

Joined: Apr 2003
Posts: 413
A
Fjord artisan
Offline
Fjord artisan
A
Joined: Apr 2003
Posts: 413
mIRC don't have such alias to make it directly, but you can do it fast ussing send keys(you must say thanks to qwerty for his sendkeys alias)..

Example of ussing: /ChangeLines 3
Script will only work when mIRC will be the active application.

Code:
Alias ChangeLines {
  if ($appactive) sendkeys % $+ o {END}{UP}{UP}{UP} % $+ l {HOME} $str({DOWN},$calc($1 - 1)) {ENTER}
}

alias sendkeys {
  var %a = sendkeys $+ $ticks
  .comopen %a WScript.Shell
  if !$comerr {
    var %b = $com(%a,SendKeys,3,bstr,$1-)
    .comclose %a
    return %b
  }
  return 0
}

D
DaveC
DaveC
D
Might be better to use alt-v o , using alt-o END UP UP UP only works if "Display" and "Other" are opened. if there closed u end up in "Mouse"

Alias ChangeLines {
if ($appactive) sendkeys % $+ v o % $+ l {HOME} $str({DOWN},$calc($1 - 1)) {ENTER}
}

Excellent idea tho!

Joined: Apr 2003
Posts: 413
A
Fjord artisan
Offline
Fjord artisan
A
Joined: Apr 2003
Posts: 413
Oops.. Forget about tree

U
uicnren
uicnren
U
Sorry for the long delay, been busy wink

Anyhow thank you both for the input, combined both of your suggestions and it works like a charm smile


Link Copied to Clipboard