NSIS更改文本框值;主动勾选复选框单选框

5是一个文本框,获得5的句柄
ReadINIStr $5 "$PLUGINSDIR\page1.ini" "Field 5" "HWND"
设置文本框内容为1
SendMessage $5 ${WM_SETTEXT} 0 "STR:1"


;勾选7 取消8 勾选
ReadINIStr $7 "$PLUGINSDIR\page1.ini" "Field 7" "HWND"
ReadINIStr $8 "$PLUGINSDIR\page1.ini" "Field 8" "HWND"

SendMessage $7 ${BM_SETCHECK} 1 0 ;
SendMessage $8 ${BM_SETCHECK} 0 0 ;

你可能感兴趣的:(文本框)