; Switch to status window:
; /sendkeys % $+ 1
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
}
; Clear status window.
; /clear -s
; Copy all contents of the active window into the clipboard.
alias copyactive {
var %l = 1, %s = $line($active, 0)
clipboard
while (%l <= %s) {
clipboard -an $line($active, %l)
inc %l
}
}
; Paste contents of clipboard into a channel.
; /pasteclipboard #channel
alias pasteclipboard {
var %i = 1, %x = $cb(0)
while (%i <= %x) {
.msg $1 $cb(%i)
inc %i
}
}