NSIS API 函数常用备份

原文:NSIS API 函数常用备份

 

关闭程序:

System::Call `user32::AnimateWindow(i$HWNDPARENT,i200,i${AW_BLEND}|${AW_HIDE})`
System::Call 'kernel32::GetCurrentProcessId()i .R0'
System::Call 'kernel32::ExitProcess(i$R0)'

 

FindProcDLL::FindProc "s.exe"
Sleep 500
Pop $R0
${If} $R0 != 0
KillProcDLL::KillProc "s.exe"
${EndIf}

 

 

web:

;System::Call `user32::CreateWindowEx(i,t"STATIC",in,i${DEFAULT_STYLES}|${SS_BLACKRECT},i1,i34,i518,i200,iR0,i1100,in,in)i.R0`
;StrCpy $WebImg $R0
;WebCtrl::ShowWebInCtrl $WebImg "$PLUGINSDIR/index.htm"

 

label

;${NSD_CreateLabel} 45 151 100 15 "文本内容"
;Pop $Lbl_ShortCut
;SetCtlColors $Lbl_ShortCut "" transparent ;背景设成透明

 

${For} $R0 0 10
MessageBox MB_OK $R0
${Next}

${ForEach} $R0 0 100 + 5
MessageBox MB_OK $R0
${Next}

你可能感兴趣的:(api)