AutoHotkey Community

It is currently May 27th, 2012, 4:40 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 15 posts ] 
Author Message
PostPosted: March 7th, 2010, 2:53 pm 
Offline

Joined: September 28th, 2007, 7:23 pm
Posts: 37
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?


Report this post
Top
 Profile  
Reply with quote  
 Post subject: Disable Capslock
PostPosted: March 7th, 2010, 3:43 pm 
Offline

Joined: January 29th, 2009, 9:50 pm
Posts: 483
Location: Belgium
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
the code i post falls under the: WTFYW-WTFPL license


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: March 7th, 2010, 3:48 pm 
Offline

Joined: September 28th, 2007, 7:23 pm
Posts: 37
That works. Thanks.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: March 7th, 2010, 5:19 pm 
ehm...u can do:
Code:
SetCapsLockState, alwaysoff


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: March 7th, 2010, 5:26 pm 
Offline

Joined: January 29th, 2009, 9:50 pm
Posts: 483
Location: Belgium
Nice, how could i miss that :oops: :lol: :lol:
Especialy when i only want to use onliners. :wink:

_________________
Stopwatch emdkplayer
the code i post falls under the: WTFYW-WTFPL license


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: March 7th, 2010, 5:27 pm 
Offline

Joined: September 28th, 2007, 7:23 pm
Posts: 37
@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.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: March 7th, 2010, 5:35 pm 
it works for me
u might want to check admin rights if u are on vista+


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: March 7th, 2010, 6:02 pm 
Offline
User avatar

Joined: September 5th, 2009, 2:06 pm
Posts: 1713
Location: Somewhere near you
Does this works?
Code:
*CapsLock::Return

_________________
Image
The quick onyx goblin jumps over the lazy dwarf


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: March 7th, 2010, 6:04 pm 
Offline

Joined: November 28th, 2009, 4:45 am
Posts: 3089
Quote:
*: Wildcard: Fire the hotkey even if extra modifiers are being held down.
Code:
*CapsLock::Return

Edit: He Beat me to it :(


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: March 7th, 2010, 6:07 pm 
Offline
User avatar

Joined: September 5th, 2009, 2:06 pm
Posts: 1713
Location: Somewhere near you
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

_________________
Image
The quick onyx goblin jumps over the lazy dwarf


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: March 7th, 2010, 6:51 pm 
Offline
User avatar

Joined: September 5th, 2009, 2:06 pm
Posts: 1713
Location: Somewhere near you
None wrote:
Edit: He Beat me to it

He calls me a he....
Image

_________________
Image
The quick onyx goblin jumps over the lazy dwarf


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: March 7th, 2010, 6:57 pm 
Offline

Joined: January 29th, 2009, 9:50 pm
Posts: 483
Location: Belgium
I am such a nOOb :lol: 8)
Nice to have all these posebilety's
Forgot all about *

_________________
Stopwatch emdkplayer
the code i post falls under the: WTFYW-WTFPL license


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: March 7th, 2010, 7:03 pm 
Offline

Joined: November 28th, 2009, 4:45 am
Posts: 3089
Sorry I was using "he" Genericaly would you prefer s/he, han, he/she, or tomoe_uehara :D


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: March 7th, 2010, 7:06 pm 
Offline
User avatar

Joined: September 5th, 2009, 2:06 pm
Posts: 1713
Location: Somewhere near you
emmanuel d wrote:
I am such a nOOb

A newbie can't make emdkplayer =D

Don't worry None ^^

_________________
Image
The quick onyx goblin jumps over the lazy dwarf


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: March 7th, 2010, 8:08 pm 
Offline

Joined: February 1st, 2010, 2:50 pm
Posts: 237
Location: Netherlands
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 :))


Report this post
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 15 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: 0x150||ISO, Bing [Bot], rbrtryn, Yahoo [Bot] and 63 guests


You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group