2009-12-07 20:19
NSIS 资源合集(附源代码)
本扩展包包含了大部分NSIS官方网站上的插件并且按照标准格式整理好。并且基本每个插件都有至少一个官方或自己编写的例子,便于新手学习。同时也加入了一些较常用或较有价值的代码例子,大家可以参考下。
编译好的安装包下载地址:
|
2009-11-30 19:01
方案一、
强制结束有托盘图标的进程时,需要把鼠标移到托盘图标时,图标才会消失
想图标立即消失,用以下代码即可:
FindWindow $0 "Shell_TrayWnd"
FindWindow $0 "TrayNotifyWnd" "" $0
FindWindow $1 "ToolBarWindow32" "" $0 ;Win2K
StrCmp $1 0 0 +3
FindWindow $0 "SysPager" "" $0
FindWindow $1 "ToolBarWindow32" "" $0 ;WinXP/2003
S
|
2009-11-27 20:40
Var I,j,w:integer;
P:boolean;
Begin
w:=0;
For I:=2 to 100 do begin
P:=true;
For j:=2 to trunc(sqrt(i)) do
begin
If I mod j=0 then p:=false;
End;
If p then
BEGIN
write(I:5);
inc(w);
END;
if w=5 then
BEGIN
writeln;
w:=0
END;
End;
End.
|
2009-11-16 22:33
2009-11-16 22:30
水仙花数是指一个 n 位数 ( n≥3 ),它的每个位上的数字的 n 次幂之和等于它本身。(例如:1^3 + 5^3 + 3^3 = 153)
方法一:
PROGRAM SXH1;
VAR
m,a,b,c:integer;
BEGIN
for a:=1 to 9 do
for b:=0 to 9 do
for c:=0 to 9 do
BEGIN
m:=a*100+b*10+c;
if a*a*a+b*b*b+c*c*c=m then writeln(m);
END;
END.
方法二:
PROGRAM |
2009-11-16 22:07
PROGRAM XX;
VAR
i:integer;
s:longint;
BEGIN
for i:=1000 to 9999 do
if i mod 5 =0 then s:=s+i;
writeln(s);
END.
|
2009-10-28 00:52
2009-10-21 23:51
卸载页面收集信息表单演示,表单来自傲游。
!include nsDialogs.nsh
!include LogicLib.nsh
| |
2009-10-21 23:48
!include "FileFunc.nsh"
!include "LogicLib.nsh"
OutFile "Demo.exe"
SilentInstall silent
|
2009-10-21 23:46
!define SC_CLOSE 0xF060
;禁止右上角的X按钮
${GetSystemMenu} $0 $HWNDPARENT
System::Call "user32::EnableMenuItem(i, i, i) i |
2009-10-21 23:29
; Script generated by the HM NIS Edit Script Wizard.
; HM NIS Edit Wizard helper defines
!ifdef MINI_VERSION
!define PRODUCT_NAME "SCV Selector (Mini Version)"
!define SCV_INI "SCV.mini.ini"
!else
!define |
2009-10-17 20:51
2009-10-17 20:00
高二开学,终于从老师口中知道了NOIP(信息学奥赛),兴冲冲地找老师报了名。总算可以参加我热爱的计算机的比赛了,内心异常激动。参加比赛——一件普普通通的事,小学生都能知道的事,可对于我来说,却不知等了多少年。。。延安、二中。。。两所除了“学习”,还是“学习”,完全没有“计算机”这名词的学校,而热爱计算机的我,却偏偏进了这两所中学,看着其他一所所高中、初中,甚至小学,都有计算机培训,都鼓励学生学计算机,再想想我的学 |
2009-09-30 21:43
/*纯c语言编写*/
#include <stdio.h>
#include <string.h>
#include <malloc.h>
#include <stdlib.h>
main(int args, char* argv[])
{
if(args!=2) exit(1);
char* name;
name=(char *)malloc(strlen(argv[1]));
strcpy(name, argv[1]);
int i=strlen(name);
int j=0,k=0;
for(j=0; j<i; j++)
{
k=k+(int)name[j |
2009-09-23 07:14
#include <stdio.h>
#include <stdlib.h>
typedef int elemType;
/************************************************************************/
/* 以下是关于线性表顺序存储操作的16种算法 */
/************************************* |
|
|
豬乃の看著倒
男, 17岁
福建 福州
上次登录: 1天前
加为好友
|