| View previous topic :: View next topic |
| Author |
Message |
n00ge
Joined: 28 Sep 2007 Posts: 37
|
Posted: Sun Mar 07, 2010 1:53 pm Post subject: Completely disable CapsLock |
|
|
| Is there a way to completely disable CapsLock mode? I've already remapped CapsLock to another key, but if I accidentally press shift+capslock or some other key combo it still turns on caps lock. Any ideas? |
|
| Back to top |
|
 |
emmanuel d
Joined: 29 Jan 2009 Posts: 436 Location: Belgium
|
Posted: Sun Mar 07, 2010 2:43 pm Post subject: Disable Capslock |
|
|
Use this:
| Code: | CapsLock:: ; CapsLock
+CapsLock:: ; Shift+CapsLock
!CapsLock:: ; Alt+CapsLock
^CapsLock:: ; Ctrl+CapsLock
#CapsLock:: ; Win+CapsLock
^!CapsLock:: ; Ctrl+Alt+CapsLock
^!#CapsLock:: ; Ctrl+Alt+Win+CapsLock
;............ ; You can add whatever you want to block
return ; Do nothing, return
|
_________________ Stopwatch
emdkplayer
http://www.autohotkey.com/forum/viewtopic.php?p=306819
the code i post falls under the:
WTFYW license
, wich meens its free to use |
|
| Back to top |
|
 |
n00ge
Joined: 28 Sep 2007 Posts: 37
|
Posted: Sun Mar 07, 2010 2:48 pm Post subject: |
|
|
| That works. Thanks. |
|
| Back to top |
|
 |
Guest
|
Posted: Sun Mar 07, 2010 4:19 pm Post subject: |
|
|
ehm...u can do:
| Code: | | SetCapsLockState, alwaysoff |
|
|
| Back to top |
|
 |
emmanuel d
Joined: 29 Jan 2009 Posts: 436 Location: Belgium
|
|
| Back to top |
|
 |
n00ge
Joined: 28 Sep 2007 Posts: 37
|
Posted: Sun Mar 07, 2010 4:27 pm Post subject: |
|
|
| @Guest: That looks much cleaner, but doesn't seem to work. I did a search and it seems to need #InstallKeybdHook in the script. I also added that but it still didn't work. |
|
| Back to top |
|
 |
Guest
|
Posted: Sun Mar 07, 2010 4:35 pm Post subject: |
|
|
it works for me
u might want to check admin rights if u are on vista+ |
|
| Back to top |
|
 |
tomoe_uehara
Joined: 05 Sep 2009 Posts: 1591 Location: Somewhere near you
|
|
| Back to top |
|
 |
None
Joined: 28 Nov 2009 Posts: 3086
|
Posted: Sun Mar 07, 2010 5:04 pm Post subject: |
|
|
| Quote: | | *: Wildcard: Fire the hotkey even if extra modifiers are being held down. |
Edit: He Beat me to it  |
|
| Back to top |
|
 |
tomoe_uehara
Joined: 05 Sep 2009 Posts: 1591 Location: Somewhere near you
|
Posted: Sun Mar 07, 2010 5:07 pm Post subject: |
|
|
I mean, it shortens emmanuel d's code
| Code: |
; emmanuel d's code
CapsLock:: ; CapsLock
+CapsLock:: ; Shift+CapsLock
!CapsLock:: ; Alt+CapsLock
^CapsLock:: ; Ctrl+CapsLock
#CapsLock:: ; Win+CapsLock
^!CapsLock:: ; Ctrl+Alt+CapsLock
^!#CapsLock:: ; Ctrl+Alt+Win+CapsLock
;............ ; You can add whatever you want to block
return ; Do nothing, return |
_________________
The quick onyx goblin jumps over the lazy dwarf |
|
| Back to top |
|
 |
tomoe_uehara
Joined: 05 Sep 2009 Posts: 1591 Location: Somewhere near you
|
|
| Back to top |
|
 |
emmanuel d
Joined: 29 Jan 2009 Posts: 436 Location: Belgium
|
|
| Back to top |
|
 |
None
Joined: 28 Nov 2009 Posts: 3086
|
Posted: Sun Mar 07, 2010 6:03 pm Post subject: |
|
|
Sorry I was using "he" Genericaly would you prefer s/he, han, he/she, or tomoe_uehara  |
|
| Back to top |
|
 |
tomoe_uehara
Joined: 05 Sep 2009 Posts: 1591 Location: Somewhere near you
|
|
| Back to top |
|
 |
fred
Joined: 01 Feb 2010 Posts: 230 Location: Netherlands
|
Posted: Sun Mar 07, 2010 7:08 pm Post subject: |
|
|
| Quote: | | He calls me a he.... |
In the heat of a programming battle
I help with horses and they are mostly called he even if most of them are female because people don't notice the difference in name (and no, i don't call you a horse ) |
|
| Back to top |
|
 |
|