 |
AutoHotkey Community Let's help each other out
|
| View previous topic :: View next topic |
| Author |
Message |
Crispy Guest
|
Posted: Fri Jul 15, 2005 8:49 am Post subject: Remapping modifiers to Qwerty on a Dvorak keyboard |
|
|
Hi! In case you hadn't noticed, I'm new around here. 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 ). 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
|
Posted: Fri Oct 07, 2005 7:19 pm Post subject: :)) |
|
|
I've had a nearly identical .ahk script for about a year now!! it's so convenient (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: 185
|
Posted: Sat Oct 08, 2005 6:00 am Post subject: |
|
|
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 |
|
 |
Cronus Guest
|
Posted: Thu Mar 02, 2006 8:46 pm Post subject: bug fix |
|
|
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
|
|
| Back to top |
|
 |
Igor Guest
|
Posted: Fri Aug 15, 2008 1:01 am Post subject: |
|
|
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
|
Posted: Fri Sep 25, 2009 7:42 am Post subject: Re: Remapping modifiers to Qwerty on a Dvorak keyboard |
|
|
This is exactly what I was lookin for here
Thanx a lot!!! |
|
| Back to top |
|
 |
Ted Striker
Joined: 15 Aug 2010 Posts: 7
|
Posted: Wed Aug 18, 2010 1:37 am Post subject: Alternate remap script |
|
|
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 5:55 am; edited 1 time in total |
|
| Back to top |
|
 |
Ted Striker
Joined: 15 Aug 2010 Posts: 7
|
Posted: Thu Aug 19, 2010 5:54 am Post subject: |
|
|
| 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 |
|
 |
|
|
You can post new topics in this forum You can reply to topics in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|