官方文档:https://www.autohotkey.com/docs/commands/Send.htm
F2 换行插入文字,F3 插入文字
F2::
SwitchIME(0x04090409)
Send {Enter}<remarks> add by cfl %A_YYYY%-%A_MM%-%A_DD%
SwitchIME(00000804)
Return
SwitchIME(dwLayout){
HKL:=DllCall("LoadKeyboardLayout", Str, dwLayout, UInt, 1)
ControlGetFocus,ctl,A
SendMessage,0x50,0,HKL,%ctl%,A
}
F3::
SwitchIME(0x04090409)
Send modify by cfl %A_YYYY%-%A_MM%-%A_DD%
SwitchIME(00000804)
Return
F4::
Run www.baidu.com
Return
网友评论