Project

General

Profile

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

Mr. BS, 11/20/2014 08:45 PM

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

on *:TEXT:$(* $+ $iif($$highlight($1-) == $ $+ me, $me, $v1) $+ *):#:{
if (!$appactive) {
.timerLED -m 0 500 flashled
}
}

;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})
}
(4-4/5)