AutoHotkey Community

It is currently May 27th, 2012, 6:01 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 6 posts ] 
Author Message
PostPosted: December 25th, 2008, 12:15 pm 
Offline

Joined: October 1st, 2005, 11:26 pm
Posts: 43
Location: Finland
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 December 29th, 2008, 3:13 pm, edited 2 times in total.

Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: December 25th, 2008, 4:36 pm 
Offline

Joined: August 14th, 2006, 11:54 am
Posts: 163
Location: CPH
Thanks for the educating input :)


Report this post
Top
 Profile  
Reply with quote  
 Post subject: AltGr
PostPosted: March 12th, 2010, 1:30 am 
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 :)


Report this post
Top
  
Reply with quote  
 Post subject: stuck ctrl,alt
PostPosted: September 28th, 2010, 3:31 am 
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.


Report this post
Top
  
Reply with quote  
PostPosted: May 25th, 2011, 7:22 pm 
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!!!


Report this post
Top
  
Reply with quote  
PostPosted: March 8th, 2012, 8:33 am 
Offline

Joined: March 8th, 2012, 8:20 am
Posts: 1
Location: Bombay, India
@songsoverruins - I don't use AHK I found your post while searching for the same problem on a Dell.

I registered just to let you know this post was a big help & it solved my problem.

Thanks a ton!

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.


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

All times are UTC [ DST ]


Who is online

Users browsing this forum: 0x150||ISO, batto, dra, HotkeyStick, migz99, mKnight, sjc1000, Wicked, XstatyK and 59 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