AutoHotkey Community

It is currently May 27th, 2012, 2:02 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 6 posts ] 
Author Message
 Post subject: Extensive remap
PostPosted: January 29th, 2010, 11:14 pm 
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 (:) 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.


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: January 29th, 2010, 11:26 pm 
Online
User avatar

Joined: August 30th, 2005, 8:43 pm
Posts: 8667
Location: Salem, MA
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 :o 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 ö

_________________
Image
(Common Answers) - New Tutorials Forum - Humongous FAQ


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: January 30th, 2010, 12:11 am 
Thank you so much! Fixed right away.


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: January 30th, 2010, 12:17 am 
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:

:*::o::ö

:*::O::Ö

:*::a::ä

:*::A::Ä

:*::e::ë

:*::E::Ë

:*::i::ï

:*::I::Ï

:*::u::ü

:*::U::Ü

:*::s::ß


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: January 30th, 2010, 12:26 am 
Ah; ok. It turns out I also had to add a '?', to look like:

:*?::o::ö

My bad.


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: January 30th, 2010, 9:03 pm 
Offline

Joined: March 19th, 2009, 5:08 pm
Posts: 548
Location: Texas, USA
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


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: Apollo, engunneer, Google Feedfetcher, JSLover, rbrtryn, sjc1000, Yahoo [Bot] and 18 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