Mahou
Mahou copied to clipboard
Перестала работать принудительная смена раскладки по горячей кнопке
В окнах браузеров, email клиента не исправляется последнее набранное слово в не той раскладке по нажатию Break. Смена раскладки происходит, а неправильно набранные символы последнего слова не заменяются. Приложил лог и debug info
Expected behavior (Only if reporting bug)
Раньше (много версий назад) такое наблюдалось в окнах x64 приложений. Но сейчас, например, в Notepad++ все отлично исправляется туда-сюда, а вот прямо в этом окне, где я печатаю текст -- нет. При этом, смена раскладки для выделения (convert selection layout switching) отлично работает.
System information
- Windows version: [Windows version (10)]
- Windows architecture: [x64]
- .Net version: [Your .Net version (4.0)]
- Mahou version: [Mahou version (2.8.0.0]
Or you can Paste here debug info from Mahou (version >1.4.4.1):
MAHOU DEBUG INFO
Environment info
- Mahou 2.8.0.0
- OS = [Microsoft Windows NT 6.2.9200.0]
- x64 = [True]
- .Net = [4.0.30319.42000]
All installed layouts
US(67699721) Russian(68748313)
Mahou.ini
[Sounds]
CustomSound2=
UseCustomSound2=False
OnLayoutSwitch2=True
OnConvertLast2=False
OnSnippets2=True
OnAutoSwitch2=False
CustomSound=
UseCustomSound=False
OnLayoutSwitch=False
OnConvertLast=True
OnSnippets=False
OnAutoSwitch=True
Enabled=False
[TranslatePanel]
TitleFont=Segoe UI; 12pt
TextFont=Microsoft Sans Serif; 8,25pt
LanguageSets=set_1/auto/ru|set_2/auto/en
BG=#FFFFFF
BorderC=#F1F100
FG=#8B5FFF
Transparency=90
BorderAero=False
OnDoubleClick=False
Enabled=False
!Unicode(✔), Mahou settings file
[FirstStart]
First=true
[Functions]
UseJKL=True
ReadOnlyNA=False
WriteInputHistory=False
WriteInputHistoryBackSpaceType=0
RemapCapslockAsF18=False
SilentUpdate=False
AddOneEnterToLastWord=False
AutoStartAsAdmin=True
TrayIconVisible=False
ConvertSelectionLayoutSwitching=True
ReSelect=True
RePress=False
AddOneSpaceToLastWord=True
ConvertSelectionLayoutSwitchingPlus=False
ScrollTip=False
StartupUpdatesCheck=False
Logging=False
CapsLockTimer=False
TrayFlags=False
BlockMahouHotkeysWithCtrl=False
SymbolIgnoreModeEnabled=false
MCDServerSupport=False
OneLayoutWholeWord=False
GuessKeyCodeFix=False
AppDataConfigs=False
[Layouts]
SpecificKeySets=set_0
SpecificKeysType=0
SwitchBetweenLayouts=True
OneLayout=False
EmulateLayoutSwitch=True
EmulateLayoutSwitchType=Alt+Shift
ChangeToSpecificLayoutByKey=False
MainLayout1=US(67699721)
MainLayout2=Russian(68748313)
SpecificKey1=1
SpecificKey2=0
SpecificKey3=0
SpecificKey4=0
SpecificLayout1=Switch between layouts
SpecificLayout2=
SpecificLayout3=
SpecificLayout4=
QWERTZfix=False
[PersistentLayout]
ChangeOnlyOnce=False
OnlyOnWindowChange=False
ActivateForLayout1=False
ActivateForLayout2=False
Layout1CheckInterval=50
Layout2CheckInterval=50
Layout1Processes=devenv.exe wdexpress.exe
Layout2Processes=notepad++.exe winword.exe
[Appearence]
WindowsMessages=True
DisplayLangTooltipForMouse=False
DisplayLangTooltipForMouseOnChange=False
DisplayLangTooltipForCaret=False
DisplayLangTooltipForCaretOnChange=False
DifferentColorsForLayouts=False
MouseLTAlways=False
Language=English
Layout1ForeColor=#000000
Layout1BackColor=#FFFFFF
Layout1TransparentBackColor=False
Layout1Font=Georgia; 8pt
Layout1Height=14
Layout1Width=26
Layout1PositionX=8
Layout1PositionY=0
Layout2ForeColor=#000000
Layout2BackColor=#FFFFFF
Layout2TransparentBackColor=False
Layout2Font=Georgia; 8pt
Layout2Height=14
Layout2Width=26
Layout2PositionX=8
Layout2PositionY=0
MouseLTForeColor=#000000
MouseLTBackColor=#FFFFFF
MouseLTTransparentBackColor=False
MouseLTFont=Georgia; 8pt
MouseLTHeight=14
MouseLTWidth=26
MouseLTPositionX=8
MouseLTPositionY=0
CaretLTForeColor=#000000
CaretLTBackColor=#FFFFFF
CaretLTTransparentBackColor=False
CaretLTFont=Georgia; 8pt
CaretLTHeight=14
CaretLTWidth=26
CaretLTPositionX=8
CaretLTPositionY=12
MCDS_Pos_X=58
MCDS_Pos_Y=13
MCDS_Top=60
MCDS_Bottom=45
MouseLTUseFlags=False
CaretLTUseFlags=False
Layout1LTText=
Layout2LTText=
MouseLTUpperArrow=False
CaretLTUpperArrow=False
[Timings]
DelayAfterBackspaces=100
UseDelayAfterBackspaces=False
LangTooltipForMouseSkipMessages=5
LangTooltipForMouseRefreshRate=25
LangTooltipForCaretRefreshRate=25
DoubleHotkey2ndPressWait=350
FlagsInTrayRefreshRate=100
ScrollLockStateRefreshRate=100
CapsLockDisableRefreshRate=100
SelectedTextGetMoreTries=False
SelectedTextGetMoreTriesCount=5
ExcludedPrograms=LA.exe SomeProg.exe
ChangeLayoutInExcluded=True
[Snippets]
SnippetExpandKey=Space
SnippetsEnabled=False
SpaceAfter=False
SwitchToGuessLayout=False
[AutoSwitch]
Enabled=False
SpaceAfter=True
SwitchToGuessLayout=True
DownloadInZip=True
[Hotkeys]
ShowSelectionTranslate_Enabled=False
ShowSelectionTranslate_Double=True
ShowSelectionTranslate_Modifiers=Alt
ShowSelectionTranslate_Key=0
ToggleMainWindow_Enabled=True
ToggleMainWindow_Double=False
ToggleMainWindow_Modifiers=Win + Control + Shift + Alt
ToggleMainWindow_Key=45
ConvertLastWord_Enabled=True
ConvertLastWord_Double=False
ConvertLastWord_Modifiers=None
ConvertLastWord_Key=19
ConvertSelectedText_Enabled=True
ConvertSelectedText_Double=False
ConvertSelectedText_Modifiers=Shift
ConvertSelectedText_Key=19
ConvertLastLine_Enabled=True
ConvertLastLine_Double=False
ConvertLastLine_Modifiers=None
ConvertLastLine_Key=145
ConvertLastWords_Enabled=False
ConvertLastWords_Double=False
ConvertLastWords_Modifiers=Shift
ConvertLastWords_Key=122
ToggleSymbolIgnoreMode_Enabled=True
ToggleSymbolIgnoreMode_Double=False
ToggleSymbolIgnoreMode_Modifiers=Shift + Control
ToggleSymbolIgnoreMode_Key=122
SelectedTextToTitleCase_Enabled=False
SelectedTextToTitleCase_Double=True
SelectedTextToTitleCase_Modifiers=Shift
SelectedTextToTitleCase_Key=0
SelectedTextToRandomCase_Enabled=False
SelectedTextToRandomCase_Double=True
SelectedTextToRandomCase_Modifiers=Shift
SelectedTextToRandomCase_Key=0
SelectedTextToSwapCase_Enabled=False
SelectedTextToSwapCase_Double=False
SelectedTextToSwapCase_Modifiers=Win +
SelectedTextToSwapCase_Key=190
SelectedTextTransliteration_Enabled=False
SelectedTextTransliteration_Double=False
SelectedTextTransliteration_Modifiers=Win +
SelectedTextTransliteration_Key=191
ExitMahou_Enabled=False
ExitMahou_Double=False
ExitMahou_Modifiers=Win + Control + Shift + Alt
ExitMahou_Key=123
RestartMahou_Enabled=True
RestartMahou_Modifiers=Win + Shift + Alt
RestartMahou_Key=33
ToggleLangPanel_Enabled=False
ToggleLangPanel_Double=False
ToggleLangPanel_Modifiers=Shift
ToggleLangPanel_Key=120
[LangPanel]
Display=False
Transparency=90
RefreshRate=25
Position=X0 Y0
ForeColor=#000000
BackColor=#FFFFFF
Font=Microsoft Sans Serif; 8,25pt
BorderColor=#8B5FFF
BorderAeroColor=True
UpperArrow=True
[Updates]
Channel=LatestCommit(Beta)
LatestCommit=778b8a1
Snippets
-><***ANY***>====><***ANY***>__cursorhere()</***ANY***><====
->mahou
====>Mahou (魔法) - Magical layout switcher.<====
->eml
====>[email protected]<====
->nowtime====>__date(HH:mm:ss)<====
->nowdate====>__date(dd/MM/yyyy)<====
->datepretty====>__date(dd, ddd MMM)<====
->mahouver====>__version()<====
->mahoutitle====>__title()<====
->env_system====>__system()<====
->date_esc====>\__date(HH:mm:ss)<====
Attach logs (if logging were enabled)
Attach log from the day when problem happened from Logs folder.
Log
03:40:49.668 [I]: Catched Key=[Tab] with VKCode=[9] and message=[261], modifiers=[L-Alt].
03:40:49.668 [I]: Cleared last word, reason: [Any modifier + Tab].
03:40:49.668 [I]: Cleared last line, reason: [Any modifier + Tab].
03:40:49.706 [I]: Pressed Mahou, hotkey words would not be cleared.
03:40:49.706 [I]: Catched Key=[LMenu] with VKCode=[164] and message=[257], modifiers=[].
03:40:49.707 [I]: Capture of numpads ended, captured [0] numpads.
03:40:49.708 [I]: [JKL] > Updating currentLayout on window activate to [67699721]...
03:40:49.708 [I]: Hwnd 65924, layout: 67699721, Mahou layout: 67699721
03:40:49.729 [I]: [JKL] > Updating currentLayout on window activate to [68748313]...
03:40:49.729 [I]: Hwnd 525890, layout: 68748313, Mahou layout: 67699721
03:40:51.835 [I]: Catched Key=[Home] with VKCode=[36] and message=[256], modifiers=[].
03:40:51.838 [I]: Cleared last word, reason: [Pressed combination of key and modifiers(not shift) or key that changes caret position.].
03:40:51.839 [I]: Cleared last line, reason: [Pressed combination of key and modifiers(not shift) or key that changes caret position.].
03:40:51.930 [I]: Catched Key=[Home] with VKCode=[36] and message=[257], modifiers=[].
03:40:52.085 [I]: Catched Key=[RShiftKey] with VKCode=[161] and message=[256], modifiers=[R-Shift].
03:40:52.152 [I]: Catched Key=[End] with VKCode=[35] and message=[256], modifiers=[R-Shift].
03:40:52.152 [I]: Cleared last word, reason: [Pressed combination of key and modifiers(not shift) or key that changes caret position.].
03:40:52.152 [I]: Cleared last line, reason: [Pressed combination of key and modifiers(not shift) or key that changes caret position.].
03:40:52.251 [I]: Catched Key=[End] with VKCode=[35] and message=[257], modifiers=[R-Shift].
03:40:52.282 [I]: Pressed Mahou, hotkey words would not be cleared.
03:40:52.282 [I]: Catched Key=[RShiftKey] with VKCode=[161] and message=[257], modifiers=[].
03:40:52.692 [I]: Catched Key=[Delete] with VKCode=[46] and message=[256], modifiers=[].
03:40:52.788 [I]: Catched Key=[Delete] with VKCode=[46] and message=[257], modifiers=[].
03:40:56.750 [I]: Catched Key=[T] with VKCode=[84] and message=[256], modifiers=[].
03:40:56.909 [I]: Catched Key=[T] with VKCode=[84] and message=[257], modifiers=[].
03:40:57.217 [I]: Catched Key=[E] with VKCode=[69] and message=[256], modifiers=[].
03:40:57.346 [I]: Catched Key=[E] with VKCode=[69] and message=[257], modifiers=[].
03:40:57.591 [I]: Catched Key=[S] with VKCode=[83] and message=[256], modifiers=[].
03:40:57.750 [I]: Catched Key=[S] with VKCode=[83] and message=[257], modifiers=[].
03:40:58.026 [I]: Catched Key=[T] with VKCode=[84] and message=[256], modifiers=[].
03:40:58.156 [I]: Catched Key=[T] with VKCode=[84] and message=[257], modifiers=[].
03:40:59.784 [I]: Hotkey [ConvertLastWord] fired.
03:40:59.784 [I]: Starting to convert word.
03:40:59.791 [I]: Changing to specific layout [67699721] by emulating layout switch.
03:40:59.791 [I]: Changing layout using cycle mode by simulating key press [Alt+Shift].
03:40:59.796 [I]: Pressed Mahou, hotkey words would not be cleared.
03:40:59.797 [I]: Catched Key=[Pause] with VKCode=[19] and message=[257], modifiers=[].
03:40:59.797 [I]: Catched Key=[RMenu] with VKCode=[165] and message=[260], modifiers=[R-Alt].
03:40:59.797 [I]: Alt is down, starting capture of Numpads...
03:40:59.798 [I]: Catched Key=[LShiftKey] with VKCode=[160] and message=[260], modifiers=[L-ShiftR-Alt].
03:40:59.798 [I]: Catched Key=[LShiftKey] with VKCode=[160] and message=[261], modifiers=[R-Alt].
03:40:59.798 [I]: Pressed Mahou, hotkey words would not be cleared.
03:40:59.798 [I]: Catched Key=[RMenu] with VKCode=[165] and message=[257], modifiers=[].
03:40:59.798 [I]: Capture of numpads ended, captured [0] numpads.
03:41:04.443 [I]: Cleared last word, reason: [Mouse click].
03:41:04.445 [I]: Cleared last line, reason: [Mouse click].
Можешь проверит в latest-commit версии? Можно обновится по каналу обновлений LatestCommit(Beta) или скачать отсюда Release_x86_x64.zip.
Попробовал вчера. Сейчас на версии 86721fe. Точно такое же поведение. Ничего не изменилось.
А можешь прислать логи с этой версии?
компьтер с mahou у меня рабочий. Стоит в офисе. Но по RDP тоже вроде бы воспроизводится.
Вывел на экран 2 окна. В одном программа срабатывает, в другом -- нет. В каждом набрал "test", потом break
, потом мышкой переключился во второе окно, опять "test" и break
. Лог ниже:
Log
11:05:24.624 [I]: Refreshing Tr Set #1
11:05:24.624 [I]: Refreshing Tr Set #2
11:05:24.624 [I]: Locales for ALL comboboxes refreshed.
11:05:24.634 [I]: Succesfully initialized Transliteration Dictionary from [C:\Tools\Mahou\TSDict.txt].
11:05:24.634 [E]: BAD! LLHook unregister failed: 1404
11:05:24.634 [I]: Hotkeys initialized.
11:05:24.634 [I]: XY: 0 / 0
11:05:24.644 [I]: [JKL] > JKL already running.
11:05:24.654 [I]: All configurations loaded.
11:05:26.144 [I]: Cleared last word, reason: [Mouse click].
11:05:26.144 [I]: Cleared last line, reason: [Mouse click].
11:05:26.154 [I]: [JKL] > Updating currentLayout on window activate to [67699721]...
11:05:26.154 [I]: Hwnd 1573798, layout: 67699721, Mahou layout: 67699721
11:05:28.924 [I]: Pressed hotkey?: False => [T+0] .
11:05:28.934 [I]: Catched Key=[T] with VKCode=[84] and message=[256], modifiers=[].
11:05:28.934 [I]: Added [T]^False
11:05:29.054 [I]: Pressed hotkey?: False => [T+0] .
11:05:29.054 [I]: Catched Key=[T] with VKCode=[84] and message=[257], modifiers=[].
11:05:29.054 [I]: OS: 6.2.9200.0
11:05:29.294 [I]: Pressed hotkey?: False => [E+0] .
11:05:29.294 [I]: Catched Key=[E] with VKCode=[69] and message=[256], modifiers=[].
11:05:29.294 [I]: Added [E]^False
11:05:29.474 [I]: Pressed hotkey?: False => [E+0] .
11:05:29.474 [I]: Catched Key=[E] with VKCode=[69] and message=[257], modifiers=[].
11:05:29.474 [I]: OS: 6.2.9200.0
11:05:29.684 [I]: Pressed hotkey?: False => [S+0] .
11:05:29.684 [I]: Catched Key=[S] with VKCode=[83] and message=[256], modifiers=[].
11:05:29.684 [I]: Added [S]^False
11:05:29.824 [I]: Pressed hotkey?: False => [S+0] .
11:05:29.824 [I]: Catched Key=[S] with VKCode=[83] and message=[257], modifiers=[].
11:05:29.824 [I]: OS: 6.2.9200.0
11:05:30.114 [I]: Pressed hotkey?: False => [T+0] .
11:05:30.114 [I]: Catched Key=[T] with VKCode=[84] and message=[256], modifiers=[].
11:05:30.114 [I]: Added [T]^False
11:05:30.234 [I]: Pressed hotkey?: False => [T+0] .
11:05:30.234 [I]: Catched Key=[T] with VKCode=[84] and message=[257], modifiers=[].
11:05:30.234 [I]: OS: 6.2.9200.0
11:05:31.154 [I]: Hotkey [ConvertLastWord] fired.
11:05:31.154 [I]: Starting to convert word.
11:05:31.164 [I]: Changing to specific layout [68748313] by emulating layout switch.
11:05:31.164 [I]: Changing layout using cycle mode by simulating key press [Alt+Shift].
11:05:31.164 [I]: ERROR during send input, lenght: 4, Win32ERR: 1419
11:05:31.174 [I]: Pressed hotkey?: True => [Pause+0] .
11:05:31.174 [I]: Catched Key=[Pause] with VKCode=[19] and message=[257], modifiers=[].
11:05:31.174 [I]: OS: 6.2.9200.0
11:05:31.174 [I]: Pressed hotkey?: True => [LMenu+0] .
11:05:31.174 [I]: Catched Key=[LMenu] with VKCode=[164] and message=[257], modifiers=[].
11:05:31.174 [I]: OS: 6.2.9200.0
11:05:31.174 [I]: [JKL] > Layout changed to [68748313] / [0x4190419].
11:05:31.174 [I]: Start Convert Word len: [4], wl:1033, ss:False
11:05:31.174 [I]: OS: 6.2.9200.0
11:05:31.174 [I]: Deleting old word, with lenght of [4].
11:05:31.184 [I]: An YuKey with state passed, key = {T}, upper = [False].
11:05:31.184 [I]: Passing Key = [T]+[lower] with WasLayoutID = [1033] through symbol ignore rules.
11:05:31.184 [I]: An YuKey with state passed, key = {E}, upper = [False].
11:05:31.184 [I]: Passing Key = [E]+[lower] with WasLayoutID = [1033] through symbol ignore rules.
11:05:31.184 [I]: An YuKey with state passed, key = {S}, upper = [False].
11:05:31.184 [I]: Passing Key = [S]+[lower] with WasLayoutID = [1033] through symbol ignore rules.
11:05:31.184 [I]: An YuKey with state passed, key = {T}, upper = [False].
11:05:31.184 [I]: Passing Key = [T]+[lower] with WasLayoutID = [1033] through symbol ignore rules.
11:05:34.204 [I]: Cleared last word, reason: [Mouse click].
11:05:34.204 [I]: Cleared last line, reason: [Mouse click].
11:05:34.204 [I]: Changed flag to ru lcid 1049
11:05:34.224 [I]: [JKL] > Updating currentLayout on window activate to [68748313]...
11:05:34.224 [I]: Hwnd 1442792, layout: 68748313, Mahou layout: 68748313
11:05:35.914 [I]: Pressed hotkey?: False => [T+0] .
11:05:35.914 [I]: Catched Key=[T] with VKCode=[84] and message=[256], modifiers=[].
11:05:35.914 [I]: Added [T]^False
11:05:36.064 [I]: Pressed hotkey?: False => [T+0] .
11:05:36.064 [I]: Catched Key=[T] with VKCode=[84] and message=[257], modifiers=[].
11:05:36.064 [I]: OS: 6.2.9200.0
11:05:36.404 [I]: Pressed hotkey?: False => [E+0] .
11:05:36.404 [I]: Catched Key=[E] with VKCode=[69] and message=[256], modifiers=[].
11:05:36.404 [I]: Added [E]^False
11:05:36.584 [I]: Pressed hotkey?: False => [E+0] .
11:05:36.584 [I]: Catched Key=[E] with VKCode=[69] and message=[257], modifiers=[].
11:05:36.584 [I]: OS: 6.2.9200.0
11:05:39.104 [I]: Pressed hotkey?: False => [S+0] .
11:05:39.104 [I]: Catched Key=[S] with VKCode=[83] and message=[256], modifiers=[].
11:05:39.104 [I]: Added [S]^False
11:05:39.264 [I]: Pressed hotkey?: False => [S+0] .
11:05:39.264 [I]: Catched Key=[S] with VKCode=[83] and message=[257], modifiers=[].
11:05:39.264 [I]: OS: 6.2.9200.0
11:05:39.694 [I]: Pressed hotkey?: False => [T+0] .
11:05:39.694 [I]: Catched Key=[T] with VKCode=[84] and message=[256], modifiers=[].
11:05:39.694 [I]: Added [T]^False
11:05:39.834 [I]: Pressed hotkey?: False => [T+0] .
11:05:39.834 [I]: Catched Key=[T] with VKCode=[84] and message=[257], modifiers=[].
11:05:39.834 [I]: OS: 6.2.9200.0
11:05:41.554 [I]: Hotkey [ConvertLastWord] fired.
11:05:41.554 [I]: Starting to convert word.
11:05:41.564 [I]: Changing to specific layout [67699721] by emulating layout switch.
11:05:41.564 [I]: Changing layout using cycle mode by simulating key press [Alt+Shift].
11:05:41.564 [I]: ERROR during send input, lenght: 4, Win32ERR: 1419
11:05:41.564 [I]: Pressed hotkey?: True => [Pause+0] .
11:05:41.564 [I]: Catched Key=[Pause] with VKCode=[19] and message=[257], modifiers=[].
11:05:41.564 [I]: OS: 6.2.9200.0
11:05:41.564 [I]: Pressed hotkey?: True => [LMenu+0] .
11:05:41.564 [I]: Catched Key=[LMenu] with VKCode=[164] and message=[257], modifiers=[].
11:05:41.564 [I]: OS: 6.2.9200.0
11:05:44.534 [I]: Cleared last word, reason: [Mouse click].
11:05:44.534 [I]: Cleared last line, reason: [Mouse click].
11:05:44.654 [I]: [JKL] > Updating currentLayout on window activate to [67699721]...
11:05:44.654 [I]: Hwnd 66200, layout: 67699721, Mahou layout: 68748313
11:05:45.954 [I]: Cleared last word, reason: [Mouse click].
11:05:45.954 [I]: Cleared last line, reason: [Mouse click].
11:05:45.954 [I]: Changed flag to en lcid 1033
11:05:46.634 [I]: Cleared last word, reason: [Mouse click].
11:05:46.634 [I]: Cleared last line, reason: [Mouse click].
11:05:46.714 [I]: Base path: C:\Tools\Mahou
11:05:46.874 [I]: Saved from temps.
11:05:46.874 [I]: All configurations saved.
11:05:47.254 [I]: Language changed.
@Michael949498 Судя по логу могу сказать что во втором окне не сработала функция SendInput, которая отправляет ввод клавиш при Эмуляции смены раскладки, а именно не сработало: нажатие Alt+Shift, Alt нажался но Shift нет, попробуй без нее, во вкладке Раскладки выключи Эмуляция переключения раскладки
.
Действительно. Как только я выключил Layouts --> Emulate layout switching всё заработало во всех окнах. Логи нужны? Если нет -- можно закрыть ветку. Спасибо за отличную программу!
@Michael949498 Не, пока закрывать - не буду, найду в чем причина, напишу и тогда закрою.
Буду искать...