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 

RShifto::ø = invalid hotkey?

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



Joined: 15 May 2008
Posts: 3

PostPosted: Thu May 15, 2008 12:36 am    Post subject: RShifto::ø = invalid hotkey? Reply with quote

My brother recently bought a laptop from the UK and so it has a UK keyboard. Unfortunately he is norwegian (much like myself Smile), 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 Sad.
Back to top
View user's profile Send private message
sinkfaze



Joined: 19 Mar 2008
Posts: 138

PostPosted: Thu May 15, 2008 1:04 am    Post subject: Reply with quote

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
View user's profile Send private message
KoR_Wraith



Joined: 15 May 2008
Posts: 3

PostPosted: Thu May 15, 2008 1:29 am    Post subject: Reply with quote

Yep, thanks a lot Very Happy
Back to top
View user's profile Send private message
tonne



Joined: 06 Jun 2006
Posts: 1143
Location: Denmark

PostPosted: Thu May 15, 2008 8:45 am    Post subject: Reply with quote

This will limit the remapping to right shift:
Code:
>+o::ø

_________________
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
View user's profile Send private message
k3ph



Joined: 21 Jul 2006
Posts: 107

PostPosted: Thu May 22, 2008 1:04 am    Post subject: Reply with quote

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
View user's profile Send private message
KoR_Wraith



Joined: 15 May 2008
Posts: 3

PostPosted: Thu May 22, 2008 1:11 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic   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