AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Completely disable CapsLock

 
Reply to topic    AutoHotkey Community Forum Index -> Ask for Help
View previous topic :: View next topic  
Author Message
n00ge



Joined: 28 Sep 2007
Posts: 37

PostPosted: Sun Mar 07, 2010 1:53 pm    Post subject: Completely disable CapsLock Reply with quote

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
View user's profile Send private message
emmanuel d



Joined: 29 Jan 2009
Posts: 436
Location: Belgium

PostPosted: Sun Mar 07, 2010 2:43 pm    Post subject: Disable Capslock Reply with quote

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
View user's profile Send private message
n00ge



Joined: 28 Sep 2007
Posts: 37

PostPosted: Sun Mar 07, 2010 2:48 pm    Post subject: Reply with quote

That works. Thanks.
Back to top
View user's profile Send private message
Guest






PostPosted: Sun Mar 07, 2010 4:19 pm    Post subject: Reply with quote

ehm...u can do:
Code:
SetCapsLockState, alwaysoff
Back to top
emmanuel d



Joined: 29 Jan 2009
Posts: 436
Location: Belgium

PostPosted: Sun Mar 07, 2010 4:26 pm    Post subject: Reply with quote

Nice, how could i miss that Embarassed Laughing Laughing
Especialy when i only want to use onliners. Wink
_________________
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
View user's profile Send private message
n00ge



Joined: 28 Sep 2007
Posts: 37

PostPosted: Sun Mar 07, 2010 4:27 pm    Post subject: Reply with quote

@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
View user's profile Send private message
Guest






PostPosted: Sun Mar 07, 2010 4:35 pm    Post subject: Reply with quote

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

PostPosted: Sun Mar 07, 2010 5:02 pm    Post subject: Reply with quote

Does this works?
Code:
*CapsLock::Return

_________________

The quick onyx goblin jumps over the lazy dwarf
Back to top
View user's profile Send private message
None



Joined: 28 Nov 2009
Posts: 3086

PostPosted: Sun Mar 07, 2010 5:04 pm    Post subject: Reply with quote

Quote:
*: Wildcard: Fire the hotkey even if extra modifiers are being held down.
Code:
*CapsLock::Return

Edit: He Beat me to it Sad
Back to top
View user's profile Send private message
tomoe_uehara



Joined: 05 Sep 2009
Posts: 1591
Location: Somewhere near you

PostPosted: Sun Mar 07, 2010 5:07 pm    Post subject: Reply with quote

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
View user's profile Send private message
tomoe_uehara



Joined: 05 Sep 2009
Posts: 1591
Location: Somewhere near you

PostPosted: Sun Mar 07, 2010 5:51 pm    Post subject: Reply with quote

None wrote:
Edit: He Beat me to it

He calls me a he....

_________________

The quick onyx goblin jumps over the lazy dwarf
Back to top
View user's profile Send private message
emmanuel d



Joined: 29 Jan 2009
Posts: 436
Location: Belgium

PostPosted: Sun Mar 07, 2010 5:57 pm    Post subject: Reply with quote

I am such a nOOb Laughing Cool
Nice to have all these posebilety's
Forgot all about *
_________________
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
View user's profile Send private message
None



Joined: 28 Nov 2009
Posts: 3086

PostPosted: Sun Mar 07, 2010 6:03 pm    Post subject: Reply with quote

Sorry I was using "he" Genericaly would you prefer s/he, han, he/she, or tomoe_uehara Very Happy
Back to top
View user's profile Send private message
tomoe_uehara



Joined: 05 Sep 2009
Posts: 1591
Location: Somewhere near you

PostPosted: Sun Mar 07, 2010 6:06 pm    Post subject: Reply with quote

emmanuel d wrote:
I am such a nOOb

A newbie can't make emdkplayer =D

Don't worry None ^^

_________________

The quick onyx goblin jumps over the lazy dwarf
Back to top
View user's profile Send private message
fred



Joined: 01 Feb 2010
Posts: 230
Location: Netherlands

PostPosted: Sun Mar 07, 2010 7:08 pm    Post subject: Reply with quote

Quote:
He calls me a he....

In the heat of a programming battle Smile

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 Smile (and no, i don't call you a horse Smile)
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    AutoHotkey Community Forum Index -> Ask for Help All times are GMT
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group