All pastes #766663 Raw Edit

Untitled

public text v1 · immutable
·published 2007-11-09 01:05 UTC
rendered paste body
alias flash {
  var %a = $ticks, %b = $$1, %c = $$2
  if (!$com(%a)) .comopen %a wscript.shell
  if (!$comerr && %b isnum 1-) { 
    while (0 <= %b) { 
      .timer 1 %c /noop $com(%a,sendkeys,3,bstr*,$+($chr(123), $&
        $gettok(CAPSLOCK NUMSLOCK SCROLLLOCK,$r(1,3),32), $& 
        $chr(125)))
      dec %b
    }
  }
}