用C++Builder和Delphi解决都可以
1 如何在网页上的输入框中用程序添加文字
2 如何用程序触发网页上的按钮
分在下面的联接
http://expert.csdn.net/Expert/topic/2073/2073723.xml?temp=.7199518

解决方案 »

  1.   

    delphi7中的INDY中的HTTP控件,应该可以
      

  2.   

    我也正在做相关方面的。需要delphi能够触发网页的按钮。(其中用jsp已写好的。)
      

  3.   

    如果网页上只有一个按钮,现没有考虑框架情况,在程序中响应按钮的话,只需使用:
    webbrowser1.oleobject.Document.forms.item(0).elements.item(0).click;这样就可以在执行网页中第一个form中的第一个元素(如按钮,列表框,文本框)如果有多个按钮,按钮名称为‘hello’,则:
    var 
       ove:olevariant;
       i:integer;
    begin
       ove:=webbrowser1.oleobject.document.forms.item(0).element;
       for i:=0 to ove-1 do
       begin
         if (ove.item(i).tagName='INPUT') and (ove.item(i).value='hello') then
            ove.item(i).click;
       end;
    end;以上方法可供参考 ,如需其它则说吧
      

  4.   

    html:
    <input type=button value="Click Me" ID="BtClick">
    delphi:
    WebBrowser1.OleObject.Document.getElementByID('BtClick').Click();
      

  5.   

    也可以用api一个form一个form的判断,不过这样太累了,呵呵