Code: Select all
bool := false
!+::
{
bool := not bool
if (bool)
SetInputLang(0x0409)
else
SetInputLang(0x040d)
}
AppsKey::SetInputLang(0x0408)
AppsKey up::
{
if (bool)
SetInputLang(0x0409)
else
SetInputLang(0x040d)
}
SetInputLang(Lang)
{
WinExist("A")
ControlGetFocus, CtrlInFocus
PostMessage, 0x50, 0, % Lang, %CtrlInFocus%
}