全國最多中醫師線上諮詢網站-台灣中醫網
發文 回覆 瀏覽次數:1415
推到 Plurk!
推到 Facebook!

關於訪問地址

答題得分者是:pceyes
KFC123_60201
一般會員


發表:58
回覆:18
積分:15
註冊:2006-07-25

發送簡訊給我
#1 引用回覆 回覆 發表時間:2008-02-17 02:05:29 IP:139.78.xxx.xxx 訂閱
請問有沒有現成的程序可以每隔一段時間依次自動點擊一系列的網址?我只要自動點擊就可以,不用去瀏覽它。

謝謝
pceyes
尊榮會員


發表:70
回覆:657
積分:1140
註冊:2003-03-13

發送簡訊給我
#2 引用回覆 回覆 發表時間:2008-02-17 09:33:41 IP:122.127.xxx.xxx 訂閱
unit Unit1;
interface
uses
  Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
  Dialogs, OleCtrls, SHDocVw, StdCtrls, ExtCtrls;
type
  TForm1 = class(TForm)
    WebBrowser1: TWebBrowser;
    Timer1: TTimer;
    ListBox1: TListBox;
    procedure FormCreate(Sender: TObject);
    procedure Timer1Timer(Sender: TObject);
  private
    { Private declarations }
  public
    { Public declarations }
  end;
var
  Form1: TForm1;
  indexno : integer;
implementation
{$R *.dfm}
procedure TForm1.FormCreate(Sender: TObject);
begin
   ListBox1.Items.Text := 'www.hinet.net'   #13  
                          'www.seed.net.tw'   #13  
                          'www.google.com'   #13  
                          'tw.yahoo.com'  ;
   indexno := 0;
   timer1.Enabled := false;
   timer1.Interval := 1000*30;
   timer1.Enabled := true;
end;

procedure TForm1.Timer1Timer(Sender: TObject);
begin
   if listbox1.Items.count > 0 then begin
      WebBrowser1.Navigate(listbox1.items[indexno]);
      if indexno < listbox1.Items.Count-1 then begin
         indexno := indexno  1;
      end
      else begin
         indexno := 0;
      end;
   end;
end;
end.
------
努力會更接近成功
編輯記錄
pceyes 重新編輯於 2008-02-17 09:42:29, 註解 無‧
系統時間:2024-04-20 20:57:03
聯絡我們 | Delphi K.Top討論版
本站聲明
1. 本論壇為無營利行為之開放平台,所有文章都是由網友自行張貼,如牽涉到法律糾紛一切與本站無關。
2. 假如網友發表之內容涉及侵權,而損及您的利益,請立即通知版主刪除。
3. 請勿批評中華民國元首及政府或批評各政黨,是藍是綠本站無權干涉,但這裡不是政治性論壇!