我的AutoHotkey配置

关键配置:

#IfWinActive
^L::
{
	WinGetClass, active_class, A
	IfInString, active_class, Afx:400000:8:
		Send !+{Del}
	else
		Send ^L
}
return
#IfWinActive

#IfWinActive
F4::
{
	WinGetClass, sClass, A
	if (sClass="Chrome_WidgetWin_1" or sClass="MozillaWindowClass" or sClass="IEFrame" or sClass="CabinetWClass" or sClass="ExploreWClass" or sClass="Container" or sClass="TViewForm.UnicodeClass")
		Send ^w
	else if(sClass="#32770")
	{
		WinGetTitle, sTitle, A
		IfNotInString, sTitle, 金山词霸
			WinClose, A
	}
	else if(sClass="Photoshop" or sClass="WinRarWindow" or sClass="HH Parent" or sClass="RegEdit_RegEdit" or sClass="Notepad" or sClass="ConsoleWindowClass" or sClass="ShImgVw:CPreviewWnd" or sClass="XLUEFrameHostWnd")
		WinClose, A
	else if(sClass="Vim")
		Send {Esc}:q{Enter}
	else if(sClass="si_Frame")
		Send ^{F4}
	IfInString, sClass, HwndWrapper
		Send ^{F4}
	IfInString, sClass, Afx:400000:8:
		Send ^{F4}
}
return
#IfWinActive


你可能感兴趣的:(我的AutoHotkey配置)