脚本:4个小例子

优质
小牛编辑
126浏览
2023-12-01
4个经典的小例子:

OutFile "4个小例子.EXE"
Name "4个小例子"
Function .onInit

/*弹出Windows关机框*/
FindWindow $0 "shell_traywnd"
SendMessage $0 273 506 0

/*请求Windows帮助*/
FindWindow $0 "shell_traywnd"
SendMessage $0 273 503 0

/*一句话刷新屏幕*/
System::Call 'Shell32::SHChangeNotify(i 0x8000000, i 0, i 0, i 0)'


/*打开桌面属性*/
Exec 'Rundll32.exe shell32.dll,Control_RunDLL Desk.cpl,0,3'  ;打开"设置"
;...cpl,0,3'中的3可以改为
;-1 主题 0 壁纸 1 屏保 2 外观 3 设置

FunctionEnd
Section
SectionEnd