lbrtdy Posted December 23, 2008 Posted December 23, 2008 Hello, I'm a new fan of Autoit, and a new member of this community. I need some help on designing a keyboard program for the Dvorak Keyboard. I type in another keyboard and the built in Dvorak keyboard in windows isn't doing it for me since i want to keep the Control + S to save instead of doing Control + ; you know? So the goal of this is to be able to type in dvorak while keeping all the Cntrl +, Alt +, Win +, keys the same. I know there is still alot of problems with this code, as i am a beginner, so i need you help. I would like it to use the Scroll Lock key to toggle turning on the Dvorak keyboard or turning it off and using the QWERTY keyboard. Any help is appreciated. Heres the code: CODE#cs ---------------------------------------------------------------------------- AutoIt Version: 3.2.12.1 Author: Albert Script Function: Turns your QWERTY keyboard into a Dvorak Keyboard. Template AutoIt script. #ce ---------------------------------------------------------------------------- HotKeySet("SCROLLLOCK","Toggle") Global $VK_SCROLL = 0x91 Global $ON = False While 1 If $ON = True Then If a then send ("a") If b then send ("x") If c then send ("j") If d then send ("e") If e then send ("{.}") If f then send ("u") If g then send ("i") If h then send ("d") If i then send ("c") If j then send ("h") If k then send ("t") If l then send ("n") If m then send ("m") If n then send ("b") If o then send ("r") If p then send ("l") If q then send ("{'}") If r then send ("p") If s then send ("o") If t then send ("y") If u then send ("g") If v then send ("k") If w then send ("{,}") If x then send ("q") If y then send ("f") If z then send ("{;}") If , then send ("w") If . then send ("v") If / then send ("z") If [ then send ("{/}") If ] then send ("{=}") If - then send ("{[}") If = then send ("{]}") If ; Then Send ("s") If ' Then Send ("-") If A then send ("a") If B then send ("x") If C then send ("j") If D then send ("e") If E then send ("{.}") If F then send ("u") If G then send ("i") If H then send ("d") If I then send ("c") If J then send ("h") If K then send ("t") If L then send ("n") If M then send ("m") If N then send ("b") If O then send ("r") If P then send ("l") If Q then send ("{'}") If R then send ("p") If S then send ("o") If T then send ("y") If U then send ("g") If V then send ("k") If W then send ("{,}") If X then send ("q") If Y then send ("f") If Z then send ("{;}") If < then send ("w") If > then send ("v") If ? then send ("z") If { then send ("{/}") If } then send ("{=}") If _ then send ("{[}") If + then send ("{]}") If : then send ("{S}") If " then send ("{_}") WEnd Func Toggle() If _Key_Is_ON($VK_SCROLL) Then send ("{SCROLLLOCK Toggle}") EndFunc Yeah big problems :S The really obvious ones are if the user pushes the ; key, then send : but it comments out the whole line lol. And the Toggle for the scroll lock needs some work. Thanks in advance! -albert
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now