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 

Extensive remap

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





PostPosted: Fri Jan 29, 2010 10:14 pm    Post subject: Extensive remap Reply with quote

Hi. Before I get into this, yes, I know it's probably a frequent problem but having spent hours I don't have trying to read the site and search for a relevent topic on the forum (three-key combinations, etc.) I find myself forced to ask your forgiveness for acting like an ill-mannered noob.

Basically, I want to keep my English keyboard layout, but also to have simple shortcuts for german characters (umlauts and eszet) and old english characters. I successfully and simply managed to remap my numpad (which I never used before) for the Old English characters, but the german is eluding me.

What I would like, is to remap either the unused ScrollLock or the Pause key into another function button, so that scrolllock & u creates U+00FC, scrollock & s creates U+00DF, etc., and scrolllock & shift & u creates the uppercase version. Etc.

I've nearly given up on achieving this, and have tried several varieties of code. I'd even settle for the string u then colon (Smile producing U+00FC, but I can't figure out what to write in the script to double as :, and it's less than ideal anyway.

Can somebody please just give me a model script for upper and lower case u, for instance, that I can copy and paste and apply to the other vowels and the S, for the three and two key combinations noted above? It must be very simple; unfortunately, so am I.

I'm sorry again for not following correct protocol.
Back to top
engunneer



Joined: 30 Aug 2005
Posts: 8255
Location: Maywood, IL

PostPosted: Fri Jan 29, 2010 10:26 pm    Post subject: Reply with quote

first of all, welcome to the forum.

second, please note that the standard release of AHK does not support unicode by default. There is an unicode version in the scripts section, but I have not used it, so can't tell you much about it.

third, you don't need unicode for chars like ö

you may use a hotstring (slightly different than a hotkey) to make a quick umlaut script. I in fact used this exact script for all the ös in this reply

Code:

:*::o::ö


the :*: means this is a hotkey with the * modifier, which allows it to by typed in the middle of a word
the next Surprised is the string to type
the :: indicates the end of the input string, and the start of the output string
ö is of course the output string.
That's all you need. type : followed by o to get ö
_________________

(Common Answers)
Back to top
View user's profile Send private message Visit poster's website
Maddened_citizen
Guest





PostPosted: Fri Jan 29, 2010 11:11 pm    Post subject: Reply with quote

Thank you so much! Fixed right away.
Back to top
Maddened_citizen
Guest





PostPosted: Fri Jan 29, 2010 11:17 pm    Post subject: Reply with quote

Ah. Spoke too soon. It does not, in fact, äll:ow me to use it ïn the m:iddle of words. Only at the beginnings. Except the ß. Any suggesti:onß as to why?

(characters added for dramatic and demonstrative effect)

Here's what I now have:

:*:Surprised::ö

:*::O::Ö

:*::a::ä

:*::A::Ä

:*::e::ë

:*::E::Ë

:*::i::ï

:*::I::Ï

:*::u::ü

:*::U::Ü

:*::s::ß
Back to top
Maddened_citizen
Guest





PostPosted: Fri Jan 29, 2010 11:26 pm    Post subject: Reply with quote

Ah; ok. It turns out I also had to add a '?', to look like:

:*?:Surprised::ö

My bad.
Back to top
camerb



Joined: 19 Mar 2009
Posts: 547
Location: Texas, USA

PostPosted: Sat Jan 30, 2010 8:03 pm    Post subject: Reply with quote

This is awesome... I don't have any use for it nowadays, but it reminds me of Accentuate by Bill Hibbert (an OpenOffice macro)... http://www.billhibbert.com/boringTechStuff.htm
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