Code: Select all
GroupAdd, DesignerGroup, ahk_class illustrator ;把需要这个功能的软件编组
GroupAdd, DesignerGroup, ahk_class Photoshop
GroupAdd, DesignerGroup, ahk_class GHOST_WindowClass
#IfWinActive, ahk_group DesignerGroup
; #IfWinActive, ("ahk_class Photoshop") or WinActive("ahk_class illustrator") or WinActive("ahk_class GHOST_WindowClass")
~LButton::
If (A_Cursor = "IBeam") ;当前显示的鼠标光标类型,IBeam(工字光标, 文本选择--输入)
SendInput, ^+8 ;这个在'输入语言热键'里设置的,一键切换到小狼毫的按键
Else
SendInput, ^+9 ;这是直接切换到英语的热键
Return
#IfWinActive
这段脚本在chrme、notepad还有搜索里运行良好,在PS和AI的另存为窗口里也运行良好,但在PS和AI本体里完全无效,想请教大家,这种情况该怎么办,谢谢。