Project

General

Profile

[Script] Blinking scroll lock led on highlight v0.5 » Blinking scroll lock led on highlight v0.5.ini

Mr. BS, 11/23/2014 11:29 AM

 
; http://dev.adiirc.com/boards/5/topics/217
; Blinking scroll lock led on highlight
; v0.5 by pereba

alias -l m return * $+ $iif($$highlight($1-) == $ $+ me, $me, $v1) $+ *

alias -l led if (!$appactive) .timerLED -m 0 500 flashled

on *:TEXT:$($m($1-)):*:led

on *:ACTION:$($m($1-)):*:led

;Adi get focus then lets disable the led blinking
on *:APPACTIVE:{
if ($timer(LED)) {
.timerLED off
if ($keylocked(scrolllock)) flashled
}
}

alias flashled {
var %name led $+ $ticks
.comopen %name WScript.Shell
.comclose %name $com(%name,SendKeys,3,bstr,{ScrollLock})
}
(5-5/5)