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 

Remapping modifiers to Qwerty on a Dvorak keyboard

 
Reply to topic    AutoHotkey Community Forum Index -> Scripts & Functions
View previous topic :: View next topic  
Author Message
Crispy
Guest





PostPosted: Fri Jul 15, 2005 7:49 am    Post subject: Remapping modifiers to Qwerty on a Dvorak keyboard Reply with quote

Hi! In case you hadn't noticed, I'm new around here. Smile I probably won't stay, but I thought I'd post this script, which is the only reason I found this (very cool) program.

I'm learning to type with the Dvorak keyboard on a Windows machine (verrrrrryyyyy slllooooooowwwwwllllyyyy), and I read somewhere that Macs have a nice quasi-Dvorak setting where normal typing is in Dvorak but any modifiers (except shift) temporarily use Qwerty. This is useful because many common shortcuts are easier to type on a Qwerty keyboard. (Especially ctrl-c, ctrl-v, etc.)

This is dirt simple compared to most of the scripts in this forum, but hopefully somebody else will find it useful (and be thankful that they didn't have to type it all out themselves Razz). There may be a better way of doing this, but this way seems to work.

For use with Windows' US-Dvorak setting; tested on Windows XP.

Code:
;----------------- CTRL KEY

*^[::Send ^-
*^]::Send ^=

*^'::Send ^q
*^,::Send ^w
*^.::Send ^e
*^p::Send ^r
*^y::Send ^t
*^f::Send ^y
*^g::Send ^u
*^c::Send ^i
*^r::Send ^o
*^l::Send ^p
*^/::Send ^[
*^=::Send ^]

*^o::Send ^s
*^e::Send ^d
*^u::Send ^f
*^i::Send ^g
*^d::Send ^h
*^h::Send ^j
*^t::Send ^k
*^n::Send ^l
*^s::Send ^`;
*^-::Send ^'

*^`;::Send ^z
*^q::Send ^x
*^j::Send ^c
*^k::Send ^v
*^x::Send ^b
*^b::Send ^n
*^m::Send ^m
*^w::Send ^,
*^v::Send ^.
*^z::Send ^/

;----------------- ALT KEY

*![::Send !-
*!]::Send !=

*!'::Send !q
*!,::Send !w
*!.::Send !e
*!p::Send !r
*!y::Send !t
*!f::Send !y
*!g::Send !u
*!c::Send !i
*!r::Send !o
*!l::Send !p
*!/::Send ![
*!=::Send !]

*!o::Send !s
*!e::Send !d
*!u::Send !f
*!i::Send !g
*!d::Send !h
*!h::Send !j
*!t::Send !k
*!n::Send !l
*!s::Send !`;
*!-::Send !'

*!`;::Send !z
*!q::Send !x
*!j::Send !c
*!k::Send !v
*!x::Send !b
*!b::Send !n
*!m::Send !m
*!w::Send !,
*!v::Send !.
*!z::Send !/

;----------------- WINDOWS KEY

*#[::Send #-
*#]::Send #=

*#'::Send #q
*#,::Send #w
*#.::Send #e
*#p::Send #r
*#y::Send #t
*#f::Send #y
*#g::Send #u
*#c::Send #i
*#r::Send #o
*#l::Send #p
*#/::Send #[
*#=::Send #]

*#o::Send #s
*#e::Send #d
*#u::Send #f
*#i::Send #g
*#d::Send #h
*#h::Send #j
*#t::Send #k
*#n::Send #l
*#s::Send #`;
*#-::Send #'

*#`;::Send #z
*#q::Send #x
*#j::Send #c
*#k::Send #v
*#x::Send #b
*#b::Send #n
*#m::Send #m
*#w::Send #,
*#v::Send #.
*#z::Send #/
Back to top
JoeSchmoe
Guest





PostPosted: Fri Oct 07, 2005 6:19 pm    Post subject: :)) Reply with quote

I've had a nearly identical .ahk script for about a year now!! it's so convenient Smile (except I don't map _all_ the winkeys).

I also keep a (compiled) script that goes the OTHER way (maps all qwerty unmodded keys to dvorak), so that whenever I use another computer, I can run the script and get the same behavior as at home (native Dvorak, AHK shortcuts) -- with native shortcuts, AHK Dvorak
Back to top
Dewi Morgan



Joined: 03 Oct 2005
Posts: 186

PostPosted: Sat Oct 08, 2005 5:00 am    Post subject: Reply with quote

Care to post that second one, JoeSchmoe? :) Been meaning to learn to dvoraktype for a while, but too lazy (and ALL the good keyboards are qwerty only!).

But I would verymuch enjoy scraping off my keycap letter, and just use my glowing blue keyboard in dorak style (because glowing is so pointless, with no keycaps!)... the most fun would of course be when other people tried to use the keyboard! :P
_________________
Yet another hotkeyer.
Back to top
View user's profile Send private message
Cronus
Guest





PostPosted: Thu Mar 02, 2006 7:46 pm    Post subject: bug fix Reply with quote

hi i found that on my system i was unable to use alt+key menu shortcuts as the menu would just open then immedietly close again. the fix was for the alt key remaps just use the new key with no send eg

*!u::Send !f

becomes

*!u::f
Back to top
Guest






PostPosted: Mon Sep 24, 2007 10:37 pm    Post subject: Reply with quote

I just read this article on how to change the MS Office shortcuts (to allow remapping for CTRL V or CTRL X)

http://www.xomba.com/ms_word_2003_create_your_own_custom_keyboard_shortcuts

Really helpfull! Smile
Back to top
Igor
Guest





PostPosted: Fri Aug 15, 2008 12:01 am    Post subject: Reply with quote

Or... you can simply use a QWERTY keyboard and have a script that will remap keys to Dvorak only when no modifier is used. The following script also disables the Dvorak when Scroll Lock is off, giving me a visual cue as to what keyboard is active.

Code:
; Use Scroll Lock to control keyboard
; and do not let Control, Alt, or Win modifiers act on Dvorak
Loop {
   If GetKeyState("ScrollLock", "T")
   and !GetKeyState("Control")
   and !GetKeyState("Alt")
   and !GetKeyState("LWin")
   and !GetKeyState("RWin") {
      Suspend, Off
   } else {
      Suspend, On
   }
   Sleep, 50
}

; QWERTY to Dvorak mapping
-::[
=::]

q::'
w::,
e::.
r::p
t::y
y::f
u::g
i::c
o::r
p::l
[::/
]::=

;a::a
s::o
d::e
f::u
g::i
h::d
j::h
k::t
l::n
`;::s
'::-

z::`;
x::q
c::j
v::k
b::x
n::b
;m::m
,::w
.::v
/::z
[/code]
Back to top
anisciq
Guest





PostPosted: Fri Sep 25, 2009 6:42 am    Post subject: Re: Remapping modifiers to Qwerty on a Dvorak keyboard Reply with quote

This is exactly what I was lookin for here Smile

Thanx a lot!!!
Back to top
Ted Striker



Joined: 14 Aug 2010
Posts: 7

PostPosted: Wed Aug 18, 2010 12:37 am    Post subject: Alternate remap script Reply with quote

I've been using the script Igor posted for a while, but lately I've noticed a bug: after triggering a suspend (with Scroll lock, Win, etc.), my hotstrings (in another script!) stopped working until that other script was reloaded. After a lot of trial and error, I found that making a slight change to Igor's code alleviated the suspended hotstring problem.

Code:

; Use Scroll Lock to control keyboard ("off" is Dvorak)
; and do not let Control, Alt, or Win modifiers act on Dvorak
ScrollLock::Suspend
~RWin::Suspend, On
~RWin UP::Suspend, Off
~LWin::Suspend, On
~LWin UP::Suspend, Off
~Ctrl::Suspend, On
~Ctrl UP::Suspend, Off
~Alt::Suspend, On
~Alt UP::Suspend, Off


; QWERTY to Dvorak mapping
-::[
=::]

q::'
w::,
e::.
r::p
t::y
y::f
u::g
i::c
o::r
p::l
[::/
]::=

;a::a
s::o
d::e
f::u
g::i
h::d
j::h
k::t
l::n
`;::s
'::-

z::`;
x::q
c::j
v::k
b::x
n::b
;m::m
,::w
.::v
/::z


Last edited by Ted Striker on Thu Aug 19, 2010 4:55 am; edited 1 time in total
Back to top
View user's profile Send private message
Ted Striker



Joined: 14 Aug 2010
Posts: 7

PostPosted: Thu Aug 19, 2010 4:54 am    Post subject: Reply with quote

There's one problem with using any script to change QWERTY to Dvorak: AHK hotstrings are hard to use as intended. AHK reads the original QWERTY letters both for the hotstring and the trigger characters. For that reason, it seems like Crispy's solution is the most elegant. However, I had to remove all the Sends to make it work.
Back to top
View user's profile Send private message
chthorne
Guest





PostPosted: Fri Nov 11, 2011 9:37 pm    Post subject: CTRL-Keys on Dvorak Keyboard --- script Reply with quote

Here's a simple script to give you the basic CTRL keys (CTRL-z, CTRL-x, CTRL-c, CTRL-v) while using a Dvorak keyboard layout in Windows:

After installing AutoHotkey, add this script into the AutoHotkey script, or a new script.

^;::^z
^q::^x
^j::^c
^k::^v

(of course, you can add more as you desire)

Save it and then follow the steps to have the script run every time you run windows: Locate the file (default location is My Documents) and copy it. Click the Start Menu, navigate to Programs/Startup and paste. Now the file will be in the Startup and will run every time.

That's it!

Thank you http://www.autohotkey.com!!! I've bee fuming over this issue after switching to Dvorak and now it all works.[/url]
Back to top
Display posts from previous:   
Reply to topic    AutoHotkey Community Forum Index -> Scripts & Functions 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