Безспорно е, че смяната на езика за писане с един клавиш е по-удобна, отколкото натискането на клавишна комбинация от типа на Ctrl+Alt.
Това може да се постигне (категорично изключвам употребата на FlexType) с помощта на програмата AutoHotKey.
Свалете програмата оттук : http://www.autohotkey.com/
Инсталирайте я и я стартирайте. Ще ви бъде предложено създаване на нов скрипт. Съгласете се.
В Notepad ще се отвори новосъздаденият скрипт Autohotkey.ahk, който изглежда ето така:
; IMPORTANT INFO ABOUT GETTING STARTED: Lines that start with a
; semicolon, such as this one, are comments. They are not executed.
; This script has a special filename and path because it is automatically
; launched when you run the program directly. Also, any text file whose
; name ends in .ahk is associated with the program, which means that it
; can be launched simply by double-clicking it. You can have as many .ahk
; files as you want, located in any folder. You can also run more than
; one .ahk file simultaneously and each will get its own tray icon.
; SAMPLE HOTKEYS: Below are two sample hotkeys. The first is Win+Z and it
; launches a web site in the default browser. The second is Control+Alt+N
; and it launches a new Notepad window (or activates an existing one). To
; try out these hotkeys, run AutoHotkey again, which will load this file.
#z::Run www.autohotkey.com
^!n::
IfWinExist Untitled - Notepad
WinActivate
else
Run Notepad
return
; Note: From now on whenever you run AutoHotkey directly, this script
; will be loaded. So feel free to customize it to suit your needs.
; Please read the QUICK-START TUTORIAL near the top of the help file.
; It explains how to perform common automation tasks such as sending
; keystrokes and mouse clicks. It also explains more about hotkeys.
Коментирайте редовете за дефиниране на примерни "горещи" клавиши и след тях копирайте тези редове:
;ScrollLock::Send {ALT down}{SHIFT down}{SHIFT up}{ALT up}
;NumpadIns::Send {ALT down}{SHIFT down}{SHIFT up}{ALT up}
;RCtrl::Send {ALT down}{SHIFT down}{SHIFT up}{ALT up}
Това са дефиниции на клавиши генериращи клавишни комбинмации за превключване на езика за писане от клавиатурата.
Файлът вече би трябвало да изглежда така:
; IMPORTANT INFO ABOUT GETTING STARTED: Lines that start with a
; semicolon, such as this one, are comments. They are not executed.
; This script has a special filename and path because it is automatically
; launched when you run the program directly. Also, any text file whose
; name ends in .ahk is associated with the program, which means that it
; can be launched simply by double-clicking it. You can have as many .ahk
; files as you want, located in any folder. You can also run more than
; one .ahk file simultaneously and each will get its own tray icon.
; SAMPLE HOTKEYS: Below are two sample hotkeys. The first is Win+Z and it
; launches a web site in the default browser. The second is Control+Alt+N
; and it launches a new Notepad window (or activates an existing one). To
; try out these hotkeys, run AutoHotkey again, which will load this file.
;#z::Run www.autohotkey.com
;^!n::
;IfWinExist Untitled - Notepad
; WinActivate
;else
; Run Notepad
;return
;ScrollLock::Send {ALT down}{SHIFT down}{SHIFT up}{ALT up}
;NumpadIns::Send {ALT down}{SHIFT down}{SHIFT up}{ALT up}
;RCtrl::Send {ALT down}{SHIFT down}{SHIFT up}{ALT up}
; Note: From now on whenever you run AutoHotkey directly, this script
; will be loaded. So feel free to customize it to suit your needs.
; Please read the QUICK-START TUTORIAL near the top of the help file.
; It explains how to perform common automation tasks such as sending
; keystrokes and mouse clicks. It also explains more about hotkeys.
Ако използвате клавишна комбинация Alt+Shift за смяна на езика, а искате да го правите с натискане на бутона ScrollLock махнете символа ; пред първия ред.
За смяна с клавиш Insert от цифровата клавиатура, изтриите символа ; пред втория ред.
За смяна с десния клавиш Ctrl - махнете символа ; пред третия ред.
Ако вашата комбинация за смяна на езика е друга, например Ctrl+Shift, заменете ALT с CTRL.
Командите за редакция и презареждане на скрипта са достъпни от менюто, отварящо се след щракане с десния бутон върху иконата на AutoHotKey в областта до часовника (Tray).
Описаният начин за превключване на езиците е изпробван и работи под Windows XP Professional и Windows 7 Professional.
Няма коментари:
Публикуване на коментар