Loading
0

AHK实现Foxmail自动切换输入法

#IfWinActive ahk_class TFoxComposeForm.UnicodeClass
~LButton::
Sleep 200
ControlGetFocus, TFoxControl, A
if RegExMatch(TFoxControl, "Chrome_RenderWidgetHostHWND1")
PostMessage, 0x50, 0, 0x8040804, , A ;切换为中文0x8040804=134481924
else if RegExMatch(TFoxControl, "TFMZRichEdit.UnicodeClass")
PostMessage, 0x50, 0, 0x4090409, , A ;切换为英文0x4090409=67699721
return

 

本文为原创文章,未经同意禁止转载!!