屏幕保护程序怎么做?(100分)

W

Whoisit

Unregistered / Unconfirmed
GUEST, unregistred user!
怎样做屏幕保护程序。
 
屏保就是个Exe
 
1。做一个通常的Exe,包含两个窗体,一显示屏保的画面,二设置屏宝
2。在Dpr中加入{$D SCRNSAVE : Delphi Screen}//delphi scren屏保的名字
3. 在begin
中加入:
If HPrevInst <> 0 then
Exit;//如果已运行则退出
CmdLine := UpperCase(ParamStr(1));//取命令行参数
if CmdLine <> '/S'//参数为'/s',启动屏保,否则,设置屏宝,Windows通过命令行参数/s启动屏保。
then
begin

Application.CreateForm(TSetup, Setup);
end
else

Application.CreateForm(TScrn,Scrn);
Application.Run;
4.将.exe改名为.scr拷到windows目录下
5.例子按<a href=ftp://210.79.245.4/incoming/chenke/D97SAVER.ZIP>这</a>
 
买盗版光盘吗?
那里面有很多很cool的屏保生成器
拿一个来用就成了.
 
深度历险有EXAMPLE

TO EYES
COOOOOOOOOOOOOOOOL
 
我有一个送分题,another_eyes可惜你没来,我已经加分给cj了。
text to speeh
 
随便把你的某一个程序改成 .scr 程序, 拷贝到 Windows 目录, 设置一下屏幕保护
使用那个程序, 等到时候他就会自动启动起来, 双击 exe 文件一样.

屏幕保护的窗体要没有编框, 接受到 Mouse Event, KeyBoard Event 后应该 close
the form.

关于设置 参见 Win32 Api 的帮助文件的 ScreenSaver Functions.
 
多人接受答案了。
 
顶部