On-Screen Keyboard
Hide/Show/Exit via tray menu
Requires Autohotkey 1.0.23+
[code=auto:0]Menu, Tray, Add, Show
Menu, Tray, Add, Hide
Menu, Tray, Add, Exit
Menu, Tray, NoStandard
Gui, -Caption +E0x200 +ToolWindow
Gui, Color, F1ECED
;Adds Number Buttons
i=1
x=56
loop, 9
{
Gui, Add, Button, x%x% y20 w30 h30, %i%
i++
x+=32
}
;Adds keyboard Buttons
Gui, Add, Button, x%x% y20 w30 h30, 0
Gui, Add, Button, x71 y52 w30 h30, Q
Gui, Add, Button, x103 y52 w30 h30, W
Gui, Add, Button, x135 y52 w30 h30, E
Gui, Add, Button, x167 y52 w30 h30, R
Gui, Add, Button, x199 y52 w30 h30, T
Gui, Add, Button, x231 y52 w30 h30, Y
Gui, Add, Button, x263 y52 w30 h30, U
Gui, Add, Button, x295 y52 w30 h30, I
Gui, Add, Button, x327 y52 w30 h30, O
Gui, Add, Button, x359 y52 w30 h30, P
Gui, Add, Button, x84 y84 w30 h30, A
Gui, Add, Button, x116 y84 w30 h30, S
Gui, Add, Button, x148 y84 w30 h30, D
Gui, Add, Button, x180 y84 w30 h30, F
Gui, Add, Button, x212 y84 w30 h30, G
Gui, Add, Button, x244 y84 w30 h30, H
Gui, Add, Button, x276 y84 w30 h30, J
Gui, Add, Button, x308 y84 w30 h30, K
Gui, Add, Button, x340 y84 w30 h30, L
Gui, Add, Button, x372 y84 w30 h30, `;
Gui, Add, Button, x34 y116 w30 h30, Shift
Gui, Add, Button, x66 y116 w30 h30, \
Gui, Add, Button, x98 y116 w30 h30, Z
Gui, Add, Button, x130 y116 w30 h30, X
Gui, Add, Button, x162 y116 w30 h30, C
Gui, Add, Button, x194 y116 w30 h30, V
Gui, Add, Button, x226 y116 w30 h30, B
Gui, Add, Button, x258 y116 w30 h30, N
Gui, Add, Button, x290 y116 w30 h30, M
Gui, Add, Button, x322 y116 w30 h30,`,
Gui, Add, Button, x354 y116 w30 h30, .
Gui, Add, Button, x386 y116 w30 h30, /
Gui, Add, Button, x145 y148 w195 h30, Space
;Positions keyboard
ControlGetPos,,, dW, dH, SysListView321, ahk_class Progman
dw/=2
dw-=225
dh-=190
Gui, Show, x%dw% y%dh% h185 w450, Keyboard
WinSet, AlwaysOnTop, On, Keyboard
WinSet, TransColor,F1ECED 220, Keyboard
;Sets all keys as hotkeys see asciitable.com
n=1
ASCII = 46
Loop
{
Transform, Char, Chr, %ASCII%
StringUpper, Char, Char
if ASCII <> 32
if char not in <,>,^,~,
Thanks for sharing it.
It would be cool to have a line of text showing the most recent keys pressed, a small suggestion.
Once again tyvm for sharing it
You would probably have to modify the script above to use the Input command rather than a series of single-character hotkeys.
Since I haven't had the time to study up on the gui stuff, can you tell me
how to make the "Home" keys(F & J) a different color, or underline them?
When it comes to touch typing, I REALLY need help.
Thanks
Don
CleanNews.in : Bite sized latest news headlines from India with zero bloat
---------------------------
JonsTypist.ahk
---------------------------
Error: Parameter #1 is not a valid WinSet attribute.
Specifically: TransColor
Line#
061: Gui,Add,Button,x145 y148 w195 h30,Space
066: ControlGetPos,,,dW,dH,SysListView321,ahk_class Progman
068: dW /= 2
069: dW -= 225
071: dH -= 190
073: Gui,Show,x%dw% y%dh% h185 w450,Keyboard
075: WinSet,AlwaysOnTop,On,Keyboard
---> 077: WinSet,TransColor,F1ECED 220,Keyboard
The program will exit.
---------------------------
OK
---------------------------
Thx for listening.
8)
It would be cool to have a line of text showing the most recent keys pressed, a small suggestion.
That's a good idea, I'll try and add it (as soon as I work out the best way to implement it). I also noticed that it is hard to watch the keyboard and what you are typing at the same time.
Stumbled over an AHK version conflict. Would have been smart to provide a note that this script works with >= 1.0.23+
Thanks, I'll edit my post.
- - - - -
Could be me but the shift only shows a down status when combined with another key. Should it not show that it is being pressed with out having to press another key. not a big deal though.
- - - - - -
Wingfool you fat! I mean, Wingfat you fool!
Line from Woody Allen's movie "What's Up Tiger Lilly?"
-----------------------------
[code=auto:0];Sets all keys as hotkeys see asciitable.com
n=1
ASCII = 46
Loop
{
Transform, Char, Chr, %ASCII%
StringUpper, Char, Char
if ASCII <> 32
if char not in <,>,^,~,
As an innovative tool/script shows AHK's power. Thought about if it would make sense to classify script samples with keywords and/or a download rating ? This way the popularity of a script could be identified easily.
8)