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

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

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

    
11
;Adi get focus then lets disable the led blinking
12
on *:APPACTIVE:{
13
  if ($timer(LED)) {
14
    .timerLED off
15
    if ($keylocked(scrolllock)) {
16
      flashled
17
    }
18
  }
19
}
20

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