鸟儿博客

天行健,君子以自强不息~ 地势坤,君子以厚德载物~

delphi之伪造referer下载文件

今天去了某经常去下载文件的地方,居然不能通过迅雷下载,简单的测试了下发现是检查了referer,所以花点时间做了下面的这个东西。

unit Unit1;
interface
uses
  Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
  Dialogs, IdBa

delphi之屏幕取色

上个预览图先:

代码:
[code=delphi]
unit Unit1;

interface

uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, StdCtrls, ExtCtrls;

type
TForm1 = class(TForm)
Button1: TButton;
Timer1: TTimer;

建立快捷方式的函数

很不错的例子,很多时候都能用到。
[code=delphi]
unit Unit1;

interface

uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, StdCtrls;

type
TForm1 = class(TForm)
Button1: TButton;
Button2: TButton;
Button3: TButton;

delphi之模拟点击网页中的按钮

类似的可以看这篇文章:[delphi实现自动填写表单和调用网页上的函数]
[code=delphi]
unit Unit1;

interface

uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, StdCtrls, OleCtrls, SHDocVw;

Delphi的关键字[整理]

absolute
//它使得你能够创建一个新变量, 并且该变量的起始地址与另一个变量相同.
var Str: string[32]; StrLen: Byte absolute Str;//这个声明指定了变量StrLen起始地址与Str相同.//由于字符串的第0个位置保存了字符串的长度, 所以StrLen的值即字符串长度.begin Str := 'abc'; Edit1.Text := IntToStr(StrLen);
分页:[«][1][2][3]4[5][6][7][»]
« 2010年9月 »
Sun Mon Tue Wed Thu Fri Sat
1234
567891011
12131415161718
19202122232425
2627282930

文章归档

广告位