DonationCoder.com forum
 
Read-only archive. This is a static copy of the DonationCoder.com forum. Reading and searching work as before; logging in, posting and private messages do not.
Archive of 2026-10-21 · About this archive · Main site

Author Topic: IDEA: Fun with Scroll Lock LED  (Read 11,349 times)

Robo-Pope

  • Participant
  • Joined in 2009
  • *
  • Posts: 1
IDEA: Fun with Scroll Lock LED
« on: May 20, 2009, 03:46 AM »
If you're like me (or likely even if you're not), the Scroll Lock LED on your keyboard sits there unlit all the time. Doesn't it get lonely? Wouldn't it be cool if we could make it do something?

IDEA:
An application that causes the Scroll Lock light to turn on/off based on audio output (either simple yes/no or a threshold level) or simply in a random or interesting pattern.

wreckedcarzz

  • Still lurking. Still an anthro.
  • Charter Member
  • Joined in 2005
  • ***
  • Posts: 1,629
    • Participated in NANY Challenge Twice
    • Coding Snacks
    • Furry Fandom Badge - Furry Fandom
    • Linux User
Re: IDEA: Fun with Scroll Lock LED
« Reply #1 on: May 20, 2009, 04:19 AM »
There was something that did this to all 3 keyboard LEDs (customizable) over at the AutoHotkey forums... not sure what it was called, but it shouldn't be very hard to find (I no longer have it, but it was cool).

Target

  • Honorary Member
  • Joined in 2006
  • **
  • Posts: 1,840
    • Coding Snacks
Alcohol is photoshop, bottled
Askhole - someone who ask for advice, then ignores it
"Look wise, say nothing, and grunt. Speech was given to conceal thought" - Sir William Osler

JohnEightyOne

  • Participant
  • Joined in 2009
  • *
  • Posts: 1
Re: IDEA: Fun with Scroll Lock LED
« Reply #3 on: November 10, 2009, 07:47 PM »
i wrote a gmail notifier a while back that flashed the scroll lock key light when i had new messages

Innuendo

  • Charter Member
  • Joined in 2005
  • ***
  • Posts: 2,266
Re: IDEA: Fun with Scroll Lock LED
« Reply #4 on: November 11, 2009, 03:32 PM »
My favorite apps in this vein would use the Scroll Lock LED as a hard drive activity indicator.

MilesAhead

  • Supporting Member
  • Joined in 2009
  • **
  • Posts: 7,736
    • Coding Snacks
Re: IDEA: Fun with Scroll Lock LED
« Reply #5 on: November 12, 2009, 06:30 PM »
My favorite apps in this vein would use the Scroll Lock LED as a hard drive activity indicator.

Just found this on Softpedia.  Haven't tried it yet, but I'm going to. :)

http://www.softpedia.com/get/System/Hard-Disk-Utils/HddLed-Indicator.shtml

edit: bummer, just noticed it has a nag screen.  But I might as well try it to see how it looks.

MilesAhead

  • Supporting Member
  • Joined in 2009
  • **
  • Posts: 7,736
    • Coding Snacks
Re: IDEA: Fun with Scroll Lock LED
« Reply #6 on: November 12, 2009, 06:40 PM »
Guess this was a previous topic.  I'm going to try the ahk script mentioned.

http://www.donationcoder.com/forum/index.php?topic=10367.msg80721#msg80721

MilesAhead

  • Supporting Member
  • Joined in 2009
  • **
  • Posts: 7,736
    • Coding Snacks
Re: IDEA: Fun with Scroll Lock LED
« Reply #7 on: November 12, 2009, 06:52 PM »
Lights the LED on my Vista64 and W7 32 bit.  See how it goes:

http://www.autohotkey.com/forum/topic17954.html

MilesAhead

  • Supporting Member
  • Joined in 2009
  • **
  • Posts: 7,736
    • Coding Snacks
Re: IDEA: Fun with Scroll Lock LED
« Reply #8 on: November 12, 2009, 06:59 PM »
So far it seems ok.  I'm making a 3 GB zip out of my download folder.



edit:  hmmm, messes up Caps Lock.  At least on my PC the caps lock only lights when you first press.  As soon as scroll lock lights it kills the caps lock indicator. Does the same on both machines but I use a kvma switch.  HP keyboard.  Almost got a good one there.  :(

edit2: I made a simple modification and now it works great on my PCs.  Just substitute my modified StartLED section for the one in the original script.  The original only got the keyboard LED state on program start-up instead of checking it on every timer loop.


http://www.autohotkey.com/forum/viewtopic.php?p=310017#310017

edit3: I tried adding command line param for polls per second, range 2 to 10 or 2 to 5, but at least on my machines the CAPS lock seems to get confused if polling is greater than 2 times per second.  So looks like that good enough for my usage.
« Last Edit: November 13, 2009, 02:06 AM by MilesAhead »

MilesAhead

  • Supporting Member
  • Joined in 2009
  • **
  • Posts: 7,736
    • Coding Snacks
Re: IDEA: Fun with Scroll Lock LED
« Reply #9 on: November 14, 2009, 12:35 AM »
I added one more tweak by calling EmptyWorkingSet on program startup. I edited the post that's referenced by the link in my previous post.  Should be obvious where to edit the script. It's just a one line tweak.

edit: especially on this type of utility, where it doesn't allocate memory for arrays or displaying dialogs or windows, it's worthwhile.  On my Vista64 Task Manager shows it using 900 KB and less as opposed to 1.9 MB without the call.

« Last Edit: November 14, 2009, 05:33 AM by MilesAhead »

MilesAhead

  • Supporting Member
  • Joined in 2009
  • **
  • Posts: 7,736
    • Coding Snacks
Re: IDEA: Fun with Scroll Lock LED
« Reply #10 on: November 15, 2009, 07:51 PM »
I made another modification so that only the state of Scroll Lock is restored from how it was on program start.  Caps lock or Num Lock may be changed by the user while the program is running.  Plus the utility only changes Scroll Lock.  That's what it should restore.  I posted a modified script with all my changes.  Here's the link:

http://www.autohotkey.com/forum/viewtopic.php?p=310813#310813

A link right to the zip file so you won't have to fix the word wrap:

http://www.autohotkey.net/~MilesAhead/Scripts/HDDMonitorMAmod.zip

« Last Edit: November 15, 2009, 08:31 PM by MilesAhead »

Original address: https://www.donationcoder.com/forum/index.php?topic=18388.0