ugh overcards is still down. seeing it claims it's a "disk quota" issue, who knows if it's gonna be back after the end of the month
keyboard_redirect.ahk:
Code:
#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
SendMode Input ; Recommended for new scripts due to its superior speed and reliability.
#SingleInstance, Force
SetBatchLines, -1
Critical, On
$*,::
$*-::
$*.::
$*/::
$*0::
$*1::
$*2::
$*3::
$*4::
$*5::
$*6::
$*7::
$*8::
$*9::
$*;::
$*=::
$*[::
$*\::
$*]::
$*`::
$*a::
$*b::
$*c::
$*d::
$*e::
$*f::
$*g::
$*h::
$*i::
$*j::
$*k::
$*l::
$*m::
$*n::
$*o::
$*p::
$*q::
$*r::
$*s::
$*t::
$*u::
$*v::
$*w::
$*x::
$*y::
$*z::
$*Space::
$*Tab::
$*Enter::
$*Escape::
$*Backspace::
$*Delete::
$*Home::
$*End::
$*Up::
$*Down::
$*Left::
$*Right::
StringTrimLeft, ks_key, A_ThisHotkey, 2
process_key(ks_key)
return
process_key(ks_key)
{
ks_key_to_send = %ks_key%
; sending a special key? if so, wrap in brackets
ks_length := StrLen(ks_key)
if (ks_length > 1)
{
ks_key_to_send = {%ks_key%}
}
MouseGetPos, , , id
id2 := WinExist("A")
if (id != id2)
{
WinActivate, ahk_id%id%
}
Send, {blind}%ks_key_to_send%
}