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 

Left Ctrl / Right Alt key "stuck" - SOLVED

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



Joined: 01 Oct 2005
Posts: 43
Location: Finland

PostPosted: Thu Dec 25, 2008 11:15 am    Post subject: Left Ctrl / Right Alt key "stuck" - SOLVED Reply with quote

Hello all,

So, I just spend about two hours struggling with a keyboard problem and I _finally_ solved it. Thought I might share my thoughts here.

Have a ThinkPad R61i here with WinXP SP2. Since last night my right-alt key suddenly stopped working properly. Rather annoying as I have a whole bunch of hotkeys strung through my RAlt key. When e.g. pressing RAlt + p it produced ö. This was actually not due to AutoHotkey. Even when I exited AutoHotkey completely the problem persisted. What the key history in AutoHotkey DID show however was that whenever I pressed the RAlt key it would automatically be accompanied by a Ctrl keystroke!

Using windows on-screen keyboard (most people will find this under Start > Programs > Accessories > Accessability > On-Screen keyboard) showed something similar. As soon as I pressed the RAlt key the layout changed showing all these symbols.

After spending about an hour searching in the wrong direction (does it have anything to do with Sticky Keys perhaps? This in-built function in windows for disabled people. You can find it in Control Panel > Accessability Options > the tab "Keyboard") I finally came across this post, which directed me to a Wikipedia page on the RAlt key, or actually the AltGr key. The first link I just mentioned has the following quote from a previous version of this Wikipedia page

"On those keyboard layouts having a defined AltGr key, it is equivalent to holding down the Ctrl and Alt keys together ..."

And that was exactly my problem! I had just been setting up this system anew after a virus infection caused me to restore the system to factory defaults, and I guess that while twiddling around with some settings I must have changed the keyboard layout to US-International.

The solution? There are only a few layouts where the RAlt key is not defined as a AltGr key, and the United States layout is one of them (see here) So, I went to Control Panel > Regional and Language Options > the second tab "Languages" and in the field "Text services and input languages" clicked on "Details". This opens another window "Text Services and Input Languages". In the second field "Installed Services" I had two keyboard layouts listed "US-International" and "US" with "US-International" being highlighted as it was currently in use. I selected that one, clicked on the "Remove" button and selected the "US" layout. One reboot later and, presto, the RAlt key is behaving like the RAlt key again, and not like an AltGr.
_________________
For the music lover who can sit and enjoy the sound of someone else's evolving nightmare.


Last edited by songsoverruins on Mon Dec 29, 2008 2:13 pm; edited 2 times in total
Back to top
View user's profile Send private message
Carlol



Joined: 14 Aug 2006
Posts: 163
Location: CPH

PostPosted: Thu Dec 25, 2008 3:36 pm    Post subject: Reply with quote

Thanks for the educating input Smile
Back to top
View user's profile Send private message
Tigs
Guest





PostPosted: Fri Mar 12, 2010 12:30 am    Post subject: AltGr Reply with quote

Thanks, this works perfectly! The Microsoft Keyboard Layout Creator (MKLC) helped me to switch AltGr to RAlt on my regional keyboard:

- Install MKLC
- File -> Load existing keyboard
- Project -> Properties: Uncheck "Right Alt treated as Ctrl+Alt". Note that if this option is disabled, you need to unmap all keys used with AltGr and AltGr+Shift in the MKLC. Anyway you can map these keys back in your autohotkey script.
- Project -> Build DLL and Setup Package
- Install
- Swith to your custom keyboard & Enjoy Smile
Back to top
galadar
Guest





PostPosted: Tue Sep 28, 2010 2:31 am    Post subject: stuck ctrl,alt Reply with quote

Spent hours trying to figure out why my keyboard wasnt working.

might just be my luck but i removed the mouse and the keyboard began to work.
Back to top
Guest






PostPosted: Wed May 25, 2011 6:22 pm    Post subject: Re: Left Ctrl / Right Alt key "stuck" - SOLVED Reply with quote

songsoverruins wrote:
Hello all,

So, I just spend about two hours struggling with a keyboard problem and I _finally_ solved it. Thought I might share my thoughts here.

Have a ThinkPad R61i here with WinXP SP2. Since last night my right-alt key suddenly stopped working properly. Rather annoying as I have a whole bunch of hotkeys strung through my RAlt key. When e.g. pressing RAlt + p it produced ö. This was actually not due to AutoHotkey. Even when I exited AutoHotkey completely the problem persisted. What the key history in AutoHotkey DID show however was that whenever I pressed the RAlt key it would automatically be accompanied by a Ctrl keystroke!

Using windows on-screen keyboard (most people will find this under Start > Programs > Accessories > Accessability > On-Screen keyboard) showed something similar. As soon as I pressed the RAlt key the layout changed showing all these symbols.

After spending about an hour searching in the wrong direction (does it have anything to do with Sticky Keys perhaps? This in-built function in windows for disabled people. You can find it in Control Panel > Accessability Options > the tab "Keyboard") I finally came across this post, which directed me to a Wikipedia page on the RAlt key, or actually the AltGr key. The first link I just mentioned has the following quote from a previous version of this Wikipedia page

"On those keyboard layouts having a defined AltGr key, it is equivalent to holding down the Ctrl and Alt keys together ..."

And that was exactly my problem! I had just been setting up this system anew after a virus infection caused me to restore the system to factory defaults, and I guess that while twiddling around with some settings I must have changed the keyboard layout to US-International.

The solution? There are only a few layouts where the RAlt key is not defined as a AltGr key, and the United States layout is one of them (see here) So, I went to Control Panel > Regional and Language Options > the second tab "Languages" and in the field "Text services and input languages" clicked on "Details". This opens another window "Text Services and Input Languages". In the second field "Installed Services" I had two keyboard layouts listed "US-International" and "US" with "US-International" being highlighted as it was currently in use. I selected that one, clicked on the "Remove" button and selected the "US" layout. One reboot later and, presto, the RAlt key is behaving like the RAlt key again, and not like an AltGr.




I just wanted to thank you for saving me 5 hours of my life!!!
Back to top
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