Project

General

Profile

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

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

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

    
5
on *:TEXT:*:#:{
6
  if (!$appactive) {
7
    if ($highlight($1-)) {
8
      .timerLED -m 0 500 flashled
9
    }
10
  }
11
}
12

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

    
16
;//.timerLED 0 1 flashled
17

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