1、首先确认开启了Windows Aero
2、窗体设置为黑色的背景色,字体选除了黑色的其他颜色
3、DwmEnableBlur(窗口句柄)
代码:
gui,new,hwndhgui gui,font,s32 Q5,楷体 gui,add,text,w320 cwhite,妈妈告诉我不要和陌生人说话 gui,show,,DWM TEST gui,color,black DwmEnableBlur(hGui) return DwmEnableBlur(hGui) { VarSetCapacity(tBlur,4*A_PtrSize) NumPut(1,tBlur) NumPut(1,tBlur,A_PtrSize) DllCall("dwmapi\DwmEnableBlurBehindWindow","uint",hgui,"ptr",&tBlur) VarSetCapacity(tMargin,4*A_PtrSize) NumPut(-1,tMargin) DllCall("dwmapi\DwmExtendFrameIntoClientArea","uint",hgui,"ptr",&tMargin) }