Is there any chance you can make it recognise the SEND command from an OSK - like the one here:
http://www.autohotke...topic53955.html
Rather than having to type?
Well, because it's purpose was to befuddle keyloggers by using SendPlay, AHK can't detect the keys it sends. However, if you are willing to give up the security it offers, replace all uses of "SendPlay" with "Send":
Row=5 ;This is the BIG Gui
Gui, Add, Button, x5 y%Row% w20 h20 gSendP , ``
Gui, Add, Button, x30 y%Row% w20 h20 gSendP , 1
Gui, Add, Button, x55 y%Row% w20 h20 gSendP, 2
Gui, Add, Button, x80 y%Row% w20 h20 gSendP , 3
Gui, Add, Button, x105 y%Row% w20 h20 gSendP , 4
Gui, Add, Button, x130 y%Row% w20 h20 gSendP , 5
Gui, Add, Button, x155 y%Row% w20 h20 gSendP , 6
Gui, Add, Button, x180 y%Row% w20 h20 gSendP , 7
Gui, Add, Button, x205 y%Row% w20 h20 gSendP , 8
Gui, Add, Button, x230 y%Row% w20 h20 gSendP , 9
Gui, Add, Button, x255 y%Row% w20 h20 gSendP , 0
Gui, Add, Button, x280 y%Row% w20 h20 gSendP , -
Gui, Add, Button, x305 y%Row% w20 h20 gSendP , =
Gui, Add, Button, x330 y%Row% w20 h20 gSendP , \
Gui, Add, Button, x355 y%Row% w20 h20 , Bs
Row=30
Gui, Add, Button, x5 y%Row% w30 h20 , Tb
Gui, Add, Button, x40 y%Row% w20 h20 gSendP , Q
Gui, Add, Button, x65 y%Row% w20 h20 gSendP , W
Gui, Add, Button, x90 y%Row% w20 h20 gSendP , E
Gui, Add, Button, x115 y%Row% w20 h20 gSendP , R
Gui, Add, Button, x140 y%Row% w20 h20 gSendP , T
Gui, Add, Button, x165 y%Row% w20 h20 gSendP , Y
Gui, Add, Button, x190 y%Row% w20 h20 gSendP , U
Gui, Add, Button, x215 y%Row% w20 h20 gSendP , I
Gui, Add, Button, x240 y%Row% w20 h20 gSendP , O
Gui, Add, Button, x265 y%Row% w20 h20 gSendP , P
Gui, Add, Button, x290 y%Row% w20 h20 gSendP , [
Gui, Add, Button, x315 y%Row% w20 h20 gSendP , ]
Gui, Add, Button, x340 y%Row% w35 h28 , En
Row=55
Gui, Add, Button, x5 y%Row% w40 h20 , Cl
Gui, Add, Button, x50 y%Row% w20 h20 gSendP , A
Gui, Add, Button, x75 y%Row% w20 h20 gSendP , S
Gui, Add, Button, x100 y%Row% w20 h20 gSendP , D
Gui, Add, Button, x125 y%Row% w20 h20 gSendP , F
Gui, Add, Button, x150 y%Row% w20 h20 gSendP , G
Gui, Add, Button, x175 y%Row% w20 h20 gSendP , H
Gui, Add, Button, x200 y%Row% w20 h20 gSendP , J
Gui, Add, Button, x225 y%Row% w20 h20 gSendP , K
Gui, Add, Button, x250 y%Row% w20 h20 gSendP , L
Gui, Add, Button, x275 y%Row% w20 h20 gSendP , `;
Gui, Add, Button, x300 y%Row% w20 h20 gSendP , '
Gui, Add, Button, x325 y%Row% w50 h20 , En
Row=80
Gui, Add, Button, x5 y%Row% w55 h20 , Shift
Gui, Add, Button, x65 y%Row% w20 h20 gSendP , Z
Gui, Add, Button, x90 y%Row% w20 h20 gSendP , X
Gui, Add, Button, x115 y%Row% w20 h20 gSendP , C
Gui, Add, Button, x140 y%Row% w20 h20 gSendP , V
Gui, Add, Button, x165 y%Row% w20 h20 gSendP , B
Gui, Add, Button, x190 y%Row% w20 h20 gSendP , N
Gui, Add, Button, x215 y%Row% w20 h20 gSendP , M
Gui, Add, Button, x240 y%Row% w20 h20 gSendP , `,
Gui, Add, Button, x265 y%Row% w20 h20 gSendP , .
Gui, Add, Button, x290 y%Row% w20 h20 gSendP , /
Gui, Add, Button, x315 y%Row% w60 h20 , Shift
Row=105
Gui, Add, Text, x5 y%Row% w70 h20 , CapsLock Off
Gui, Add, Button, x90 y%Row% w145 h20 , Space
Gui, Show, xCenter y820 h130 w380, GUI Keyboard
WinSet, AlwaysOnTop, On , GUI Keyboard
Caps:=0 ;Preset Caps and Shift to off
Sh:=0
SetTimer WWA, 100 ;Monitor What Window is Active so it can send to the correct window
WWA:
WinGetActiveTitle, Active
If Active<>GUI Keyboard
Dest=%Active%
Return
GuiClose:
ExitApp
Return
SendP: ;sub that sends most keys
If((Caps+Sh)=0) ;check Caps and Shift state
StringLower, Letter, A_GuiControl ;if off make lower
Else
StringUpper, Letter, A_GuiControl ;if on make UPPER
if Sh=1 ;if shift was on turn it off
GoSub ShiftOff
WinActivate %Dest% ;Activate the window to sent to
Send %Letter%
Return
ButtonSpace: ; Send the keys that don't heve the actual letter on them
WinActivate %Dest%
Send {Space}
Return
ButtonBs:
WinActivate %Dest%
Send {BS}
Return
ButtonTb:
WinActivate %Dest%
Send {Tab}
Return
ButtonEn:
WinActivate %Dest%
Send {Enter}
Return
ButtonCl: ;Change the Caps state and it's label on the Gui
Caps:=!Caps
ControlSetText, Static1, % "CapsLock " . Caps ? "On" : "Off", GUI Keyboard
Return
ButtonShift: ;Turn Shift on and Change the Buttons to shifted state
Temp1 = ~!@#$`%^&*()_+|
Loop, Parse, Temp1
ControlSetText, Button%A_Index%, %A_LoopField%, GUI Keyboard
ControlSetText, Button27, {, GUI Keyboard
ControlSetText, Button28, }, GUI Keyboard
ControlSetText, Button40, :, GUI Keyboard
ControlSetText, Button41, ", GUI Keyboard
ControlSetText, Button51, <, GUI Keyboard
ControlSetText, Button52, >, GUI Keyboard
ControlSetText, Button53, ?, GUI Keyboard
Sh:=1
Return
ShiftOff: ;Turn Shift off and Change the Buttons to non shifted state
Temp1 = ``1234567890-=\
Loop, Parse, Temp1
ControlSetText, Button%A_Index%, %A_LoopField%, GUI Keyboard
ControlSetText, Button27, [, GUI Keyboard
ControlSetText, Button28, ], GUI Keyboard
ControlSetText, Button40, `;, GUI Keyboard
ControlSetText, Button41, ', GUI Keyboard
ControlSetText, Button51, `,, GUI Keyboard
ControlSetText, Button52, ., GUI Keyboard
ControlSetText, Button53, /, GUI Keyboard
Sh:=0
Return
(also shortened the code)