<?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[String durch WebBrowser einfügen]]></title><description><![CDATA[<p>Hi...<br />
Ich habe vor, mir ein programm zu schreiben, mit dem ich auf <a href="http://www.Rapidshare.com" rel="nofollow">www.Rapidshare.com</a> Dateien hochladen kann.</p>
<p>Zuerst muss der Pfad von der Datei auf meinem Pc in das eingabe-feld bei Rapidshare eingefügt werden. Allerdings funktioniert das bei mir nicht so wirklich.</p>
<p>Ich habe es so versucht :</p>
<pre><code class="language-cpp">WideString url=&quot;http://www.Rapidshare.com&quot;;
CppWebBrowser1-&gt;Navigate(url,0,0,0,0);

//#################################
IHTMLDocument2 *HTMLDoc = NULL;
if(SUCCEEDED(CppWebBrowser1-&gt;Document-&gt;QueryInterface(IID_IHTMLDocument2,
  (LPVOID*)&amp;HTMLDoc)))
{
  IHTMLElementCollection *pAll = NULL;
  if(SUCCEEDED(HTMLDoc-&gt;get_all(&amp;pAll)))
  {
    TVariant name = &quot;filecontent&quot;;//  hier kommt der name des Feldes hin (siehr HTML source)
    IDispatch *pDisp = NULL;
    TVariant index=0;
    if(SUCCEEDED(pAll-&gt;item(name, index, &amp;pDisp)))
    {
      if(pDisp)
      {
        IHTMLInputElement *pInput = NULL;     // mshtml.h
        pDisp-&gt;QueryInterface(IID_IHTMLInputElement, (LPVOID*)&amp;pInput);
        pDisp-&gt;Release();
        if(pInput)
        {
          WideString mybuffer;
          pInput-&gt;put_value (WideString(&quot;Test123&quot;)); //hier der String, der zu schreiben ist.
        }
        pInput-&gt;Release();
      }
    }
  }
  pAll-&gt;Release();
}
HTMLDoc-&gt;Release();
}
</code></pre>
<p>Das Klappt leider noch nicht. Es wird kein String in das Eingabefeld geschrieben.<br />
Wenn ich aber anstatt dem eingabefeld-name den Name von dem &quot;upload&quot;-button benutze, steht da anstatt &quot;Upload&quot; : &quot;Test123&quot;. Also kann es ja eigentlich nicht an dem &quot;grundgerüst&quot; liegen, weil ja ein String als Button-name verwendet wird.</p>
<p>Vieleicht habe ich auch einfach nur den falschen Eingabefeld-namen gefunden.Hier ist der Html-source:</p>
<pre><code class="language-html">src=&quot;http://dl40cg.rapidshare.com/de/progress.html?uploadid=142013278655047807&quot; width=&quot;600&quot; height=&quot;85&quot; frameborder=&quot;0&quot; marginwidth=&quot;0&quot; marginheight=&quot;0&quot; scrolling=&quot;NO&quot;&gt;&lt;/iframe&gt;
&lt;script&gt;function switchfiles() {alert(&quot;Achte darauf, dass beim Multi-Upload die Gesamtsumme\naller Dateien, die du gleichzeitig abschickst, nicht mehr\nals 100 MB betragen darf.&quot;);
document.getElementById('files').innerHTML = 'Datei #01: &lt;input type=&quot;file&quot; size=&quot;64&quot; name=&quot;filecontent&quot;&gt;&lt;br&gt;Datei #02: &lt;input type=&quot;file&quot; size=&quot;64&quot; name=&quot;filecontent2&quot;&gt;&lt;br&gt;Datei #03: &lt;input type=&quot;file&quot; size=&quot;64&quot; name=&quot;filecontent3&quot;&gt;&lt;br&gt;' +
'Datei #04: &lt;input type=&quot;file&quot; size=&quot;64&quot; name=&quot;filecontent4&quot;&gt;&lt;br&gt;Datei #05: &lt;input type=&quot;file&quot; size=&quot;64&quot; name=&quot;filecontent5&quot;&gt;&lt;br&gt;Datei #06: &lt;input type=&quot;file&quot; size=&quot;64&quot; name=&quot;filecontent6&quot;&gt;&lt;br&gt;Datei #07: &lt;input type=&quot;file&quot; size=&quot;64&quot; name=&quot;filecontent7&quot;&gt;&lt;br&gt;' +
'Datei #08: &lt;input type=&quot;file&quot; size=&quot;64&quot; name=&quot;filecontent8&quot;&gt;&lt;br&gt;Datei #09: &lt;input type=&quot;file&quot; size=&quot;64&quot; name=&quot;filecontent9&quot;&gt;&lt;br&gt;Datei #10: &lt;input type=&quot;file&quot; size=&quot;64&quot; name=&quot;filecontent10&quot;&gt;&lt;br&gt;&lt;input type=&quot;submit&quot; name=&quot;u&quot; value=&quot;Upload!&quot;&gt;'}&lt;/script&gt;
&lt;form name=&quot;ul&quot; method=&quot;post&quot; action=&quot;http://ul40l3.rapidshare.com/cgi-bin/upload.cgi?rsuploadid=142013278655047807&quot; enctype=&quot;multipart/form-data&quot; onsubmit=&quot;document.ul.u.value='Bitte warten ...';document.ul.u.disabled=true&quot;&gt;
&lt;a href=&quot;#&quot; onclick=&quot;switchfiles()&quot;&gt;Multi-Upload&lt;/a&gt; W&amp;auml;hle einen Upload-Datenweg: &amp;nbsp;&amp;nbsp;&amp;nbsp; Cogent &lt;input name=&quot;mirror&quot; type=&quot;radio&quot; onclick=&quot;document.ul.action='http://ul40cg.rapidshare.com/cgi-bin/upload.cgi?rsuploadid=142013278655047807';document.ul.u.value='Upload via Cogent'&quot;&gt;

Level(3) &lt;input checked name=&quot;mirror&quot; type=&quot;radio&quot; onclick=&quot;document.ul.action='http://ul40l3.rapidshare.com/cgi-bin/upload.cgi?rsuploadid=142013278655047807';document.ul.u.value='Upload via Level(3)'&quot;&gt;
Telia &lt;input name=&quot;mirror&quot; type=&quot;radio&quot; onclick=&quot;document.ul.action='http://ul40tl.rapidshare.com/cgi-bin/upload.cgi?rsuploadid=142013278655047807';document.ul.u.value='Upload via Telia'&quot;&gt;&lt;br&gt;
&lt;input type=&quot;hidden&quot; name=&quot;german&quot; value=&quot;1&quot;&gt;&lt;div id=&quot;files&quot;&gt;&lt;input type=&quot;file&quot; size=&quot;64&quot; name=&quot;filecontent&quot;&gt; &lt;input type=&quot;submit&quot; name=&quot;u&quot; value=&quot;Upload!&quot;&gt;&lt;/div&gt;&lt;/form&gt;
</code></pre>
<p>Vieleicht kann mir ja einer helfen. Thx schonmal <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f609.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--winking_face"
      title=";)"
      alt="😉"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/topic/166380/string-durch-webbrowser-einfügen</link><generator>RSS for Node</generator><lastBuildDate>Thu, 13 Aug 2026 01:27:27 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/166380.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 28 Nov 2006 17:46:07 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to String durch WebBrowser einfügen on Thu, 30 Nov 2006 20:51:35 GMT]]></title><description><![CDATA[<p>Hi...<br />
Ich habe vor, mir ein programm zu schreiben, mit dem ich auf <a href="http://www.Rapidshare.com" rel="nofollow">www.Rapidshare.com</a> Dateien hochladen kann.</p>
<p>Zuerst muss der Pfad von der Datei auf meinem Pc in das eingabe-feld bei Rapidshare eingefügt werden. Allerdings funktioniert das bei mir nicht so wirklich.</p>
<p>Ich habe es so versucht :</p>
<pre><code class="language-cpp">WideString url=&quot;http://www.Rapidshare.com&quot;;
CppWebBrowser1-&gt;Navigate(url,0,0,0,0);

//#################################
IHTMLDocument2 *HTMLDoc = NULL;
if(SUCCEEDED(CppWebBrowser1-&gt;Document-&gt;QueryInterface(IID_IHTMLDocument2,
  (LPVOID*)&amp;HTMLDoc)))
{
  IHTMLElementCollection *pAll = NULL;
  if(SUCCEEDED(HTMLDoc-&gt;get_all(&amp;pAll)))
  {
    TVariant name = &quot;filecontent&quot;;//  hier kommt der name des Feldes hin (siehr HTML source)
    IDispatch *pDisp = NULL;
    TVariant index=0;
    if(SUCCEEDED(pAll-&gt;item(name, index, &amp;pDisp)))
    {
      if(pDisp)
      {
        IHTMLInputElement *pInput = NULL;     // mshtml.h
        pDisp-&gt;QueryInterface(IID_IHTMLInputElement, (LPVOID*)&amp;pInput);
        pDisp-&gt;Release();
        if(pInput)
        {
          WideString mybuffer;
          pInput-&gt;put_value (WideString(&quot;Test123&quot;)); //hier der String, der zu schreiben ist.
        }
        pInput-&gt;Release();
      }
    }
  }
  pAll-&gt;Release();
}
HTMLDoc-&gt;Release();
}
</code></pre>
<p>Das Klappt leider noch nicht. Es wird kein String in das Eingabefeld geschrieben.<br />
Wenn ich aber anstatt dem eingabefeld-name den Name von dem &quot;upload&quot;-button benutze, steht da anstatt &quot;Upload&quot; : &quot;Test123&quot;. Also kann es ja eigentlich nicht an dem &quot;grundgerüst&quot; liegen, weil ja ein String als Button-name verwendet wird.</p>
<p>Vieleicht habe ich auch einfach nur den falschen Eingabefeld-namen gefunden.Hier ist der Html-source:</p>
<pre><code class="language-html">src=&quot;http://dl40cg.rapidshare.com/de/progress.html?uploadid=142013278655047807&quot; width=&quot;600&quot; height=&quot;85&quot; frameborder=&quot;0&quot; marginwidth=&quot;0&quot; marginheight=&quot;0&quot; scrolling=&quot;NO&quot;&gt;&lt;/iframe&gt;
&lt;script&gt;function switchfiles() {alert(&quot;Achte darauf, dass beim Multi-Upload die Gesamtsumme\naller Dateien, die du gleichzeitig abschickst, nicht mehr\nals 100 MB betragen darf.&quot;);
document.getElementById('files').innerHTML = 'Datei #01: &lt;input type=&quot;file&quot; size=&quot;64&quot; name=&quot;filecontent&quot;&gt;&lt;br&gt;Datei #02: &lt;input type=&quot;file&quot; size=&quot;64&quot; name=&quot;filecontent2&quot;&gt;&lt;br&gt;Datei #03: &lt;input type=&quot;file&quot; size=&quot;64&quot; name=&quot;filecontent3&quot;&gt;&lt;br&gt;' +
'Datei #04: &lt;input type=&quot;file&quot; size=&quot;64&quot; name=&quot;filecontent4&quot;&gt;&lt;br&gt;Datei #05: &lt;input type=&quot;file&quot; size=&quot;64&quot; name=&quot;filecontent5&quot;&gt;&lt;br&gt;Datei #06: &lt;input type=&quot;file&quot; size=&quot;64&quot; name=&quot;filecontent6&quot;&gt;&lt;br&gt;Datei #07: &lt;input type=&quot;file&quot; size=&quot;64&quot; name=&quot;filecontent7&quot;&gt;&lt;br&gt;' +
'Datei #08: &lt;input type=&quot;file&quot; size=&quot;64&quot; name=&quot;filecontent8&quot;&gt;&lt;br&gt;Datei #09: &lt;input type=&quot;file&quot; size=&quot;64&quot; name=&quot;filecontent9&quot;&gt;&lt;br&gt;Datei #10: &lt;input type=&quot;file&quot; size=&quot;64&quot; name=&quot;filecontent10&quot;&gt;&lt;br&gt;&lt;input type=&quot;submit&quot; name=&quot;u&quot; value=&quot;Upload!&quot;&gt;'}&lt;/script&gt;
&lt;form name=&quot;ul&quot; method=&quot;post&quot; action=&quot;http://ul40l3.rapidshare.com/cgi-bin/upload.cgi?rsuploadid=142013278655047807&quot; enctype=&quot;multipart/form-data&quot; onsubmit=&quot;document.ul.u.value='Bitte warten ...';document.ul.u.disabled=true&quot;&gt;
&lt;a href=&quot;#&quot; onclick=&quot;switchfiles()&quot;&gt;Multi-Upload&lt;/a&gt; W&amp;auml;hle einen Upload-Datenweg: &amp;nbsp;&amp;nbsp;&amp;nbsp; Cogent &lt;input name=&quot;mirror&quot; type=&quot;radio&quot; onclick=&quot;document.ul.action='http://ul40cg.rapidshare.com/cgi-bin/upload.cgi?rsuploadid=142013278655047807';document.ul.u.value='Upload via Cogent'&quot;&gt;

Level(3) &lt;input checked name=&quot;mirror&quot; type=&quot;radio&quot; onclick=&quot;document.ul.action='http://ul40l3.rapidshare.com/cgi-bin/upload.cgi?rsuploadid=142013278655047807';document.ul.u.value='Upload via Level(3)'&quot;&gt;
Telia &lt;input name=&quot;mirror&quot; type=&quot;radio&quot; onclick=&quot;document.ul.action='http://ul40tl.rapidshare.com/cgi-bin/upload.cgi?rsuploadid=142013278655047807';document.ul.u.value='Upload via Telia'&quot;&gt;&lt;br&gt;
&lt;input type=&quot;hidden&quot; name=&quot;german&quot; value=&quot;1&quot;&gt;&lt;div id=&quot;files&quot;&gt;&lt;input type=&quot;file&quot; size=&quot;64&quot; name=&quot;filecontent&quot;&gt; &lt;input type=&quot;submit&quot; name=&quot;u&quot; value=&quot;Upload!&quot;&gt;&lt;/div&gt;&lt;/form&gt;
</code></pre>
<p>Vieleicht kann mir ja einer helfen. Thx schonmal <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f609.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--winking_face"
      title=";)"
      alt="😉"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/1183262</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1183262</guid><dc:creator><![CDATA[schnurres]]></dc:creator><pubDate>Thu, 30 Nov 2006 20:51:35 GMT</pubDate></item><item><title><![CDATA[Reply to String durch WebBrowser einfügen on Wed, 29 Nov 2006 12:54:15 GMT]]></title><description><![CDATA[<p>push....</p>
<p>kann mir keiner helfen ??</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1183735</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1183735</guid><dc:creator><![CDATA[schnurres]]></dc:creator><pubDate>Wed, 29 Nov 2006 12:54:15 GMT</pubDate></item><item><title><![CDATA[Reply to String durch WebBrowser einfügen on Thu, 30 Nov 2006 19:45:04 GMT]]></title><description><![CDATA[<p>hab das Problem immer noch <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f44e.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--thumbs_down"
      title=":-1:"
      alt="👎"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/1184863</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1184863</guid><dc:creator><![CDATA[schnurres]]></dc:creator><pubDate>Thu, 30 Nov 2006 19:45:04 GMT</pubDate></item><item><title><![CDATA[Reply to String durch WebBrowser einfügen on Thu, 30 Nov 2006 20:39:22 GMT]]></title><description><![CDATA[<p><a href="http://www.c-plusplus.net/forum/viewtopic-var-t-is-39301.html" rel="nofollow">Debugger benutzen</a>, Fehler eingrenzen, weniger abschreckende Textwüsten posten.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1184911</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1184911</guid><dc:creator><![CDATA[Jansen]]></dc:creator><pubDate>Thu, 30 Nov 2006 20:39:22 GMT</pubDate></item></channel></rss>