AutoHotkey Community

It is currently May 27th, 2012, 4:53 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 10 posts ] 
Author Message
PostPosted: July 15th, 2005, 8:49 am 
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 :P). 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 #/


Report this post
Top
  
Reply with quote  
 Post subject: :))
PostPosted: October 7th, 2005, 7:19 pm 
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


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: October 8th, 2005, 6:00 am 
Offline

Joined: October 3rd, 2005, 2:42 am
Posts: 186
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.


Report this post
Top
 Profile  
Reply with quote  
 Post subject: bug fix
PostPosted: March 2nd, 2006, 8:46 pm 
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


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: September 24th, 2007, 11:37 pm 
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_creat ... _shortcuts

Really helpfull! :)


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: August 15th, 2008, 1:01 am 
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]


Report this post
Top
  
Reply with quote  
PostPosted: September 25th, 2009, 7:42 am 
This is exactly what I was lookin for here :)

Thanx a lot!!!


Report this post
Top
  
Reply with quote  
 Post subject: Alternate remap script
PostPosted: August 18th, 2010, 1:37 am 
Offline

Joined: August 15th, 2010, 12:17 am
Posts: 7
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 August 19th, 2010, 5:55 am, edited 1 time in total.

Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: August 19th, 2010, 5:54 am 
Offline

Joined: August 15th, 2010, 12:17 am
Posts: 7
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.


Report this post
Top
 Profile  
Reply with quote  
PostPosted: November 11th, 2011, 10:37 pm 
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]


Report this post
Top
  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 10 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: Google [Bot], Yahoo [Bot] and 13 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