最新消息:

HelpButton是NSIS自定义帮助按钮的插件

nsis 永恒心锁 2179浏览 0评论
/*
HelpButton是NSIS自定义帮助按钮的插件
HelpButton支持自定义帮助按钮,通过按F1键就可以调用,HelpButton支持富文本,文本文档,网页来显示你的帮助信息.
*/
!AddPluginDir "../Plugins"
OutFile "HelpButton.exe"
ShowInstDetails show
InstallDir $EXEDIR
Page license start
Page directory "" start_2
Page instfiles "" "" start_3
Function start
HelpButton::show /NOUNLOAD "246,231" "blah blah blah" "built to the power of the llama ^o^" "/html=$EXEDIRwinampmb.htm"
FunctionEnd
Function start_3
MessageBox MB_OK "Try pressing 'F1'"
HelpButton::show /NOUNLOAD "0,50" "" "well you did ask!" "/file=$EXEDIRhelp.rtf" wrap 20
FunctionEnd
Function start_2
HelpButton::show /NOUNLOAD "232,231" "?" "now you've really done it..." "now why install?" wrap ; 20
FunctionEnd
Function .onGUIEnd
# This needs to be called otherwise the dll will not be correctly unloaded and so will stay on the hd :o(
HelpButton::end
FunctionEnd
Section ""
 SetOutPath $INSTDIR
 Call DoPrimes
SectionEnd
Function DoPrimes
; we put this in here so it doesn't update the progress bar (faster)
!define PPOS $0 ; position in prime searching
!define PDIV $1 ; divisor
!define PMOD $2 ; the result of the modulus
!define PCNT $3 ; count of how many we've printed
 DetailPrint "2 is prime!"
 DetailPrint "3 is prime!"
 Strcpy ${PPOS} 3
 Strcpy ${PCNT} 2
outerloop:
 StrCpy ${PDIV} 3
 innerloop:
 IntOp ${PMOD} ${PPOS} % ${PDIV}
 IntCmp ${PMOD} 0 notprime
 IntOp ${PDIV} ${PDIV} + 2
 IntCmp ${PDIV} ${PPOS} 0 innerloop 0
 DetailPrint "${PPOS} is prime!"
 IntOp ${PCNT} ${PCNT} + 1
 IntCmp ${PCNT} 100 0 innerloop
 StrCpy ${PCNT} 0
 MessageBox MB_YESNO "Process more?" IDNO stop
 notprime:
 IntOp ${PPOS} ${PPOS} + 2
 Goto outerloop
 stop:
FunctionEnd
免责声明:根据《计算机软件保护条例》第十七条规定“为了学习和研究软件内含的设计思想和原理,通过安装、显示、传输或者存储软件等方式使用软件的,可以不经软件著作权人许可,不向其支付报酬。”您需知晓本站所有内容资源均来源于网络,仅供用户交流学习与研究使用,版权归属原版权方所有,版权争议与本站无关,用户本人下载后不能用作商业或非法用途,需在24个小时之内从您的电脑中彻底删除上述内容,否则后果均由用户承担责任;如果您访问和下载此文件,表示您同意只将此文件用于参考、学习而非其他用途,否则一切后果请您自行承担,如果您喜欢该程序,请支持正版软件,购买注册,得到更好的正版服务。丨本站为个人博客非盈利性站点,所有软件信息均来自网络,所有资源仅供学习参考研究目的,并不贩卖软件,不存在任何商业目的及用途。丨本文采用知识共享 署名4.0国际许可协议 [BY-NC-SA] 进行授权BY-NC-SA协议进行授权

转载请注明:永恒心锁-分享互联网 » HelpButton是NSIS自定义帮助按钮的插件

发表我的评论
取消评论
表情

Hi,您需要填写昵称和邮箱!

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址