- 积分
- 7148
- 明经币
- 个
- 注册时间
- 2005-5-4
- 在线时间
- 小时
- 威望
-
- 金钱
- 个
- 贡献
-
- 激情
-
|
楼主 |
发表于 2022-9-27 20:39:09
|
显示全部楼层
switchime(ime := "A")
{
if (ime = 1)
{
DllCall("SendMessage", UInt, WinActive("A"), UInt, 80, UInt, 1, UInt, DllCall("LoadKeyboardLayout", Str,"00000804", UInt, 1))
}
else If (ime = 0)
{
DllCall("SendMessage", UInt, WinActive("A"), UInt, 80, UInt, 1, UInt, DllCall("LoadKeyboardLayout", Str,, UInt, 1))
}
else If (ime = "A")
{
;ime_status:=DllCall("GetKeyboardLayout","int",0,UInt)
Send, #{Space}
}
}
;在AutoCAD窗口下应用以下快捷键。
#IfWinActive ahk_exe acad.exe
XButton1::F3
XButton2::F8
!q::
switchime(0)
send,{esc}qsave{space}
return
!w::
switchime(0)
send,{esc}wblock{space}
return
!e::
switchime(0)
send,{esc}explode{space}
return
!r::
switchime(0)
send,{esc}rename{space}
return
!t::
switchime(0)
send,{esc}trim{space}
return
!a::
switchime(0)
send,{esc}array{space}
return
!s::
switchime(0)
send,{esc}stretch{space}
return
!d::
switchime(0)
send,{esc}dist{space}
return
!f::
switchime(0)
send,{esc}find{space}
return
!g::
switchime(0)
send,{esc}group{space}
return
!z::
switchime(0)
send,{esc}zoom{space}o{space}
return
!x::
switchime(0)
send,{esc}explode{space}
return
!c::
switchime(0)
send,{esc}copy{space}
return
!v::
switchime(0)
send,{esc}view{space}
return
!b::
switchime(0)
send,{esc}block{space}
return
!y::
switchime(0)
send,{esc}breakatpoint{space}
return
!u::
switchime(0)
send,{esc}ucs{space}
return
!i::
switchime(0)
send,{esc}insert{space}
return
!o::
switchime(0)
send,{esc}offset{space}
return
!p::
switchime(0)
send,{esc}pline{space}
return
!h::
switchime(0)
send,{esc}dtext{space}
return
!j::
switchime(0)
send,{esc}join{space}
return
!k::
switchime(0)
send,{esc}dimaligned{space}
return
!l::
switchime(0)
send,{esc}lengthen{space}
return
!n::
switchime(0)
send,{esc}dimscale{space}
return
!m::
switchime(0)
send,{esc}move{space}
return
|
|