<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Webbrowser automatisieren]]></title><description><![CDATA[<p>hallo!<br />
hab nun endlich einen funktionierenden code gefunden, welchen ich jedoch nicht schaffe, in eine form umzuformen und zu verbessern:</p>
<pre><code>IHTMLDocument2 *HTMLDoc = NULL;
                if(SUCCEEDED(WB-&gt;Document-&gt;QueryInterface(IID_IHTMLDocument2,
                  (LPVOID*)&amp;HTMLDoc)))
                {
                  IHTMLElementCollection *pAll = NULL;
                  if(SUCCEEDED(HTMLDoc-&gt;get_all(&amp;pAll)))
                  {
                    TVariant name = feld;
                    IDispatch *pDisp = NULL;
                    TVariant index=form;
                    if(SUCCEEDED(pAll-&gt;item(name, index, &amp;pDisp)))
                    {
                      if(pDisp)
                      {
                        IHTMLInputElement *pInput = NULL;
                        pDisp-&gt;QueryInterface(IID_IHTMLInputElement, (LPVOID*)&amp;pInput);
                        pDisp-&gt;Release();
                        if(pInput)
                        {
                          WideString mybuffer;
                          pInput-&gt;put_value (WideString(&quot;......&quot;));
                        }
                        pInput-&gt;Release();
                      }
                    }
                  }
                pAll-&gt;Release();
                }
                HTMLDoc-&gt;Release();
</code></pre>
<p>3 dinge, die mich dran stören:<br />
-es is keine funktion<br />
-in der zeile &quot;pInput-&gt;put_value (WideString(&quot;......&quot;));&quot; lässt sich &quot;.......&quot; nicht durch nen ansistring ersetzen<br />
-der index füllt jedes n. objekt mit diesem name aus. warum kann es nicht einfach jedes feld mit der bezeichnung ausfüllen...</p>
<p>vielen dank für jegliche hilfe!</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/96126/webbrowser-automatisieren</link><generator>RSS for Node</generator><lastBuildDate>Sat, 11 Jul 2026 07:28:42 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/96126.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 28 Dec 2004 16:59:27 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Webbrowser automatisieren on Tue, 28 Dec 2004 16:59:27 GMT]]></title><description><![CDATA[<p>hallo!<br />
hab nun endlich einen funktionierenden code gefunden, welchen ich jedoch nicht schaffe, in eine form umzuformen und zu verbessern:</p>
<pre><code>IHTMLDocument2 *HTMLDoc = NULL;
                if(SUCCEEDED(WB-&gt;Document-&gt;QueryInterface(IID_IHTMLDocument2,
                  (LPVOID*)&amp;HTMLDoc)))
                {
                  IHTMLElementCollection *pAll = NULL;
                  if(SUCCEEDED(HTMLDoc-&gt;get_all(&amp;pAll)))
                  {
                    TVariant name = feld;
                    IDispatch *pDisp = NULL;
                    TVariant index=form;
                    if(SUCCEEDED(pAll-&gt;item(name, index, &amp;pDisp)))
                    {
                      if(pDisp)
                      {
                        IHTMLInputElement *pInput = NULL;
                        pDisp-&gt;QueryInterface(IID_IHTMLInputElement, (LPVOID*)&amp;pInput);
                        pDisp-&gt;Release();
                        if(pInput)
                        {
                          WideString mybuffer;
                          pInput-&gt;put_value (WideString(&quot;......&quot;));
                        }
                        pInput-&gt;Release();
                      }
                    }
                  }
                pAll-&gt;Release();
                }
                HTMLDoc-&gt;Release();
</code></pre>
<p>3 dinge, die mich dran stören:<br />
-es is keine funktion<br />
-in der zeile &quot;pInput-&gt;put_value (WideString(&quot;......&quot;));&quot; lässt sich &quot;.......&quot; nicht durch nen ansistring ersetzen<br />
-der index füllt jedes n. objekt mit diesem name aus. warum kann es nicht einfach jedes feld mit der bezeichnung ausfüllen...</p>
<p>vielen dank für jegliche hilfe!</p>
]]></description><link>https://www.c-plusplus.net/forum/post/682135</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/682135</guid><dc:creator><![CDATA[rabby]]></dc:creator><pubDate>Tue, 28 Dec 2004 16:59:27 GMT</pubDate></item><item><title><![CDATA[Reply to Webbrowser automatisieren on Wed, 29 Dec 2004 09:11:49 GMT]]></title><description><![CDATA[<p>Hallo,</p>
<p>was den zwieten Punkt betrifft müsstest du auch</p>
<pre><code class="language-cpp">AnsiString teststring;
teststring = &quot;Test&quot;;
pInput-&gt;put_value (StringToOleStr(teststring));
</code></pre>
<p>verwenden können...</p>
<p>(Ich bin mir nicht ganz sicher, könnte auch StrToOleString() sein...)</p>
]]></description><link>https://www.c-plusplus.net/forum/post/682410</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/682410</guid><dc:creator><![CDATA[Reyx]]></dc:creator><pubDate>Wed, 29 Dec 2004 09:11:49 GMT</pubDate></item></channel></rss>