如何使广告条自动运行,仅供学习参考[2]

[入库:2005年8月18日] [更新:2007年3月24日]

本文简介:选择自 zhujunfeng 的 blog

  begin
    step2;
    closeie;
    timer1.tag:=0;
    memo2.lines.add(timetostr(now)+' step2');
  end
  else
  begin
    step1;
    timer1.tag:=1;
    memo2.lines.add(timetostr(now)+' step1');
  end;
end;

function tform1.isrun:boolean;//判断小人是否在走动
var
  bkcolor:tcolor;
  r,g,b:byte;
  hstr:string;
begin
  bkcolor:=getpixel(getdc(0),pmandownx,pmandowny);
  r:=getrvalue(bkcolor);
  g:=getgvalue(bkcolor);
  b:=getbvalue(bkcolor);
  hstr:=hexb(r)+hexb(g)+hexb(b);
  if hstr=pmandowncolor then
    result:=false
  else
    result:=true;
end;

procedure tform1.button1click(sender: tobject);
begin
  timer1.enabled:=not timer1.enabled;
  if timer1.enabled then
  begin
    button1.caption:='click to stop';
    label1.font.color:=clgreen;
  end
  else
  begin
    button1.caption:='click to start';
    label1.font.color:=clred;
    isstep2:=false;
  end;
end;

end.

本文关键:广告条 作弊
  相关方案
Google
 

本站最佳浏览方式为 分辨率 1024x768 IE 6.0(或更高版本的 IE浏览器)

go top