| View previous topic :: View next topic |
| Author |
Message |
KoR_Wraith
Joined: 15 May 2008 Posts: 3
|
Posted: Thu May 15, 2008 12:36 am Post subject: RShifto::ø = invalid hotkey? |
|
|
My brother recently bought a laptop from the UK and so it has a UK keyboard. Unfortunately he is norwegian (much like myself ), and so needs a quick/easy way of typing norwegian characters. I searched around on google and found AutoHotkey, which seems to solve this problem. All it requires is a very simple script, however I seem to have failed at even that.
If someone could tell me how to fix the following it would be greatly appreciated:
----------------
RShifto::ø
RShifta::å
RShifte::æ
return
---------------
When AutoHotkey tries to run the script it returns an invald hotkey error. As you can see I've tried to make it so that pressing Right Shift + o = ø, and so on. I've look around but can't find the correct syntax for the line . |
|
| Back to top |
|
 |
sinkfaze
Joined: 19 Mar 2008 Posts: 138
|
Posted: Thu May 15, 2008 1:04 am Post subject: |
|
|
This work?
| Code: | +o::
Send {ALTDOWN}{Numpad0}{Numpad2}{Numpad1}{Numpad6}{ALTUP}
return
+a::
Send {ALTDOWN}{Numpad0}{Numpad2}{Numpad2}{Numpad9}{ALTUP}
return
+e::
Send {ALTDOWN}{Numpad0}{Numpad2}{Numpad3}{Numpad0}{ALTUP}
return |
_________________ Have trouble searching the site for information? Try Quick Search for Autohotkey. |
|
| Back to top |
|
 |
KoR_Wraith
Joined: 15 May 2008 Posts: 3
|
Posted: Thu May 15, 2008 1:29 am Post subject: |
|
|
Yep, thanks a lot  |
|
| Back to top |
|
 |
tonne
Joined: 06 Jun 2006 Posts: 1143 Location: Denmark
|
Posted: Thu May 15, 2008 8:45 am Post subject: |
|
|
This will limit the remapping to right shift:
_________________ there's a dog barking close within the range of my ear
sounds like he wants to escape the chain
he would probably bite me to death if he could
but the chain lets me spit in his face
- Kashmir |
|
| Back to top |
|
 |
k3ph
Joined: 21 Jul 2006 Posts: 107
|
Posted: Thu May 22, 2008 1:04 am Post subject: |
|
|
as you asked in the IRC channel
| Code: | ;RShift + o = ø
;RShift + LShift + o = Ø
VKA1 & o::
GetKeyState, state, VKA0
if state = D
sendraw Ø
else
sendraw ø
return |
|
|
| Back to top |
|
 |
KoR_Wraith
Joined: 15 May 2008 Posts: 3
|
Posted: Thu May 22, 2008 1:11 am Post subject: |
|
|
As per IRC
| Code: | VKA1 & o::
GetKeyState, state, VKA0
if state = D
sendraw Ø
else
sendraw ø
return
VKA1 & e::
GetKeyState, state, VKA0
if state = D
sendraw Æ
else
sendraw æ
return
VKA1 & a::
GetKeyState, state, VKA0
if state = D
sendraw Å
else
sendraw å
return
|
|
|
| Back to top |
|
 |
|