Project

General

Profile

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

Mr. BS, 11/20/2014 02:30 AM

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

on *:TEXT:*:#:{
if (!$appactive) { ;also help to avoid unnecessary readini call
var %i = 0
while (%i <= $ini($adiircini,HighlightItems,0)) {
if ($eval($gettok($readini($adiircini,n,HighlightItems,n $+ %i),1,166),2) isin $1-) {
.timerLED -m 0 500 flashled
halt
}
inc %i
}
}
}

;Adi get focus then lets disable the led blinking
on 1:ACTIVE:*: .timerLED off

;//.timerLED 0 1 flashled

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