topbanner_forum
  *

avatar image

Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
  • Saturday December 14, 2024, 4:34 pm
  • Proudly celebrating 15+ years online.
  • Donate now to become a lifetime supporting member of the site and get a non-expiring license key for all of our programs.
  • donate

Author Topic: DONE: ALT key down visual indicator (for when alt key is stuck)  (Read 18654 times)

nudone

  • Cody's Creator
  • Columnist
  • Joined in 2005
  • ***
  • Posts: 4,119
    • View Profile
    • Donate to Member
i'm fighting my logitech mouse which likes annoying me by locking the ALT key down (i have alt + tab assigned to a mouse button and i suspect it doesn't release the alt key sometimes).

it would be helpful if i had some kind of warning, probably a tray icon, that indicated that the ALT key was held down (i could provide the icon for this, i'm thinking that a flashing red dot would be easy to identify).

i'm sure this is an autohotkey type problem so i appreciate that i could spend a few hours/days trying to figure it out - but i'm hoping one of you autohotkey masters will help out.

thanks.

ewemoa

  • Honorary Member
  • Joined in 2008
  • **
  • Posts: 2,922
    • View Profile
    • Donate to Member
Re: ALT key down visual indicator (for when alt key is stuck)
« Reply #1 on: May 02, 2010, 08:12 AM »
I only have this working with my left alt key, but how about something like:

Code: AutoIt [Select]
  1. ; icons adapted from:
  2. ;   Mark James
  3. ;   http://www.famfamfam.com/lab/icons/silk/
  4. FileInstall, Up.ico, Up.ico
  5. FileInstall, Down.ico, Down.ico
  6. UpIconFileName = Up.ico
  7. DownIconFileName = Down.ico
  8. If GetKeyState("Alt")
  9. {
  10.   Menu, Tray, Icon, % DownIconFileName
  11. }
  12. {
  13.   Menu, Tray, Icon, % UpIconFileName
  14. }
  15. Loop
  16. {
  17.   KeyWait, Alt, D
  18.   Menu, Tray, Icon, % DownIconFileName
  19.   KeyWait, Alt, U
  20.   Menu, Tray, Icon, % UpIconFileName
  21. }

Edit: Here is a compiled version with icons.
« Last Edit: May 02, 2010, 08:32 AM by ewemoa »

nudone

  • Cody's Creator
  • Columnist
  • Joined in 2005
  • ***
  • Posts: 4,119
    • View Profile
    • Donate to Member
Re: ALT key down visual indicator (for when alt key is stuck)
« Reply #2 on: May 02, 2010, 08:43 AM »
perfect. i'd just finished adding some icons to the script when i saw the compiled version - so i've attached the icons i made to this post (maybe someone else will use them).

thanks, ewemoa. i'll send some DC credits later.

now i just need to see if i was right about my mouse messing with me.


ewemoa

  • Honorary Member
  • Joined in 2008
  • **
  • Posts: 2,922
    • View Profile
    • Donate to Member
Hope it's been working for you and you've made progress on your mouse issue :)

BTW, would you mind if I swapped in your icons and make those "official"?

nudone

  • Cody's Creator
  • Columnist
  • Joined in 2005
  • ***
  • Posts: 4,119
    • View Profile
    • Donate to Member
Hope it's been working for you and you've made progress on your mouse issue :)

BTW, would you mind if I swapped in your icons and make those "official"?
yeah no problem. mouse seems to be working fine at the moment so not needed the script so much - i'm glad it's there for when i need it though.

ewemoa

  • Honorary Member
  • Joined in 2008
  • **
  • Posts: 2,922
    • View Profile
    • Donate to Member
Thanks!  I uploaded an updated version.

delwoode

  • Supporting Member
  • Joined in 2008
  • **
  • Posts: 146
    • View Profile
    • Donate to Member
Re: DONE: ALT key down visual indicator (for when alt key is stuck)
« Reply #6 on: April 06, 2011, 05:11 AM »
could you make an adapted version for my problem  :-[
I have used a couple of programs (since deleted) one was a calculator and it left the numlock down. this messed up my keys!  As i am on a laptop there is no light indicator so I didnt realize what the problem was. When I did realize I couldnt turn it off!  then I found out you have to press the Fn key and the numlock key together on a laptop.
a altered script that would alert me the numlock was on and offer to turn it off by pressing fn and numlock for you would be great. But would that be too hard for a laptop as maybe the scan codes vary for numlock? maybe a ini file where you could put in the scan codes for your pc?

skwire

  • Global Moderator
  • Joined in 2005
  • *****
  • Posts: 5,287
    • View Profile
    • Donate to Member
Re: DONE: ALT key down visual indicator (for when alt key is stuck)
« Reply #7 on: April 06, 2011, 10:17 AM »
As i am on a laptop there is no light indicator so I didnt realize what the problem was

You may find an app I developed, called kLED, useful:

http://skwire.dcmembers.com/wb/pages/software/kled.php