看教程后 自己弄的屏保 添加了自动截取桌面的api
看教程后 自己弄的屏保 添加了自动截取桌面的api不会上传附件 只能贴代码了 感谢小甲鱼 让我入门
unit Unit10;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, jpeg, ExtCtrls, StdCtrls;
type
TForm1 = class(TForm)
img1: TImage;
tmr1: TTimer;
lbl1: TLabel;
edt1: TEdit;
btn1: TButton;
tmr2: TTimer;
procedure FormCreate(Sender: TObject);
procedure tmr1Timer(Sender: TObject);
procedure FormKeyPress(Sender: TObject; var Key: Char);
procedure btn1Click(Sender: TObject);
procedure tmr2Timer(Sender: TObject);
private
{ Private declarations }
public
{ Public declarations }
end;
var
Form1: TForm1;
implementation
const
password:string='123123';
{$R *.dfm}
procedure screencatch();
**** Hidden Message *****
procedure TForm1.FormCreate(Sender: TObject);
begin
SetWindowLong(edt1.Handle,GWL_STYLE,GetWindowLong(edt1.Handle,GWL_STYLE)or ES_CENTER);
img1.Left:=0;
img1.Top:=0;
img1.Width:=Screen.Width;
img1.Height:=Screen.Height;
screencatch;
end;
procedure TForm1.tmr1Timer(Sender: TObject);
begin
Form1.lbl1.Left:=Random(1366- Form1.lbl1.Width);
Form1.lbl1.Top:=Random(768) ;
Form1.lbl1.Font.Size:=Random(25) ;
case Random(5)of
0:lbl1.Font.Color:=clBlack;
1:lbl1.Font.Color:=clBlue;
2:lbl1.Font.Color:=clYellow;
3:lbl1.Font.Color:=clOlive;
4:lbl1.Font.Color:=clGreen;
5:lbl1.Font.Color:=clGray;
end;
end;
procedure TForm1.FormKeyPress(Sender: TObject; var Key: Char);
begin
if Key = ' 'then
begin
edt1.Visible:=True;
btn1.Visible:=True;
end;
end;
procedure TForm1.btn1Click(Sender: TObject);
begin
if edt1.Text=password then
Close
else
begin
btn1.Visible:=False;
edt1.Visible:=False;
end;
end;
procedure TForm1.tmr2Timer(Sender: TObject);
begin
SetWindowPos(Form1.Handle,HWND_TOPMOST,0,0,0,0,SWP_NOSIZE + SWP_NOMOVE);
end;
end.
{:7_148:}做一個看看 强烈支持楼主ing…… 强烈支持楼主ing…… 纯当娱乐! 不错啊。。楼主继续加油。 强烈支持楼主ing…… 帅!!!!!!!!!! 楼主加油,鱼C加油!我们都看好你哦! wxd 学习 学习 看看 6 66 学习 不错 康一康 我也想看看
页:
[1]