天天看點

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 ;背景設成透明

繼續閱讀