<?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[button clicken in eine manderen programm???]]></title><description><![CDATA[<p>hallihallo.</p>
<p>frage:</p>
<p>wie kann ich in einem andern programm(fenster) ein button klicken (drücken), wenn ich dessen ID weiß????</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/160963/button-clicken-in-eine-manderen-programm</link><generator>RSS for Node</generator><lastBuildDate>Sat, 18 Jul 2026 16:58:07 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/160963.rss" rel="self" type="application/rss+xml"/><pubDate>Sun, 01 Oct 2006 19:07:42 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to button clicken in eine manderen programm??? on Sun, 01 Oct 2006 19:07:42 GMT]]></title><description><![CDATA[<p>hallihallo.</p>
<p>frage:</p>
<p>wie kann ich in einem andern programm(fenster) ein button klicken (drücken), wenn ich dessen ID weiß????</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1147579</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1147579</guid><dc:creator><![CDATA[Der Neue]]></dc:creator><pubDate>Sun, 01 Oct 2006 19:07:42 GMT</pubDate></item><item><title><![CDATA[Reply to button clicken in eine manderen programm??? on Sun, 01 Oct 2006 19:14:06 GMT]]></title><description><![CDATA[<p>Hallo</p>
<p>Was verstehst du unter &quot;ID&quot;?<br />
Wenn du ein gültiges WinAPI-Handle meinst, kannst du mit SendMessage ein entsprechendes Kommando schicken. Wie das genau gehst, kannst du im WinAPI-Forum nachschlagen.</p>
<p>bis bald<br />
akari</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1147584</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1147584</guid><dc:creator><![CDATA[akari]]></dc:creator><pubDate>Sun, 01 Oct 2006 19:14:06 GMT</pubDate></item><item><title><![CDATA[Reply to button clicken in eine manderen programm??? on Sun, 01 Oct 2006 19:18:41 GMT]]></title><description><![CDATA[<p>unter ID verstehe ich die id des buttons in dem fenster!<br />
um z.B. den text, des buttons zu ändern...</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1147590</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1147590</guid><dc:creator><![CDATA[Der Neue]]></dc:creator><pubDate>Sun, 01 Oct 2006 19:18:41 GMT</pubDate></item><item><title><![CDATA[Reply to button clicken in eine manderen programm??? on Sun, 01 Oct 2006 19:19:30 GMT]]></title><description><![CDATA[<p>Wie geht denn der befehl (code) zum &quot;klicken&quot; des buttons THX!</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1147591</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1147591</guid><dc:creator><![CDATA[Der Neue]]></dc:creator><pubDate>Sun, 01 Oct 2006 19:19:30 GMT</pubDate></item><item><title><![CDATA[Reply to button clicken in eine manderen programm??? on Sun, 01 Oct 2006 19:21:18 GMT]]></title><description><![CDATA[<p>Dieser Thread wurde von Moderator/in <a href="http://www.c-plusplus.net/forum/profile.php?mode=viewprofile&amp;u=437" rel="nofollow">Jansen</a> aus dem Forum <a href="http://www.c-plusplus.net/forum/viewforum.php?f=2" rel="nofollow">VCL/CLX (Borland C++ Builder)</a> in das Forum <a href="http://www.c-plusplus.net/forum/viewforum.php?f=4" rel="nofollow">WinAPI</a> verschoben.</p>
<p>Im Zweifelsfall bitte auch folgende Hinweise beachten:<br />
<a href="http://www.c-plusplus.net/forum/viewtopic.php?t=39405" rel="nofollow">C/C++ Forum :: FAQ - Sonstiges :: Wohin mit meiner Frage?</a></p>
<p><em>Dieses Posting wurde automatisch erzeugt.</em></p>
]]></description><link>https://www.c-plusplus.net/forum/post/1147593</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1147593</guid><dc:creator><![CDATA[C++ Forumbot]]></dc:creator><pubDate>Sun, 01 Oct 2006 19:21:18 GMT</pubDate></item><item><title><![CDATA[Reply to button clicken in eine manderen programm??? on Sun, 01 Oct 2006 19:41:21 GMT]]></title><description><![CDATA[<pre><code class="language-cpp">SendMessage(hWndButton, BM_CLICK, 0, 0L);
</code></pre>
<p>Das setzt aber einen Handle (hWndButton) voraus.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1147607</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1147607</guid><dc:creator><![CDATA[CodeFinder]]></dc:creator><pubDate>Sun, 01 Oct 2006 19:41:21 GMT</pubDate></item><item><title><![CDATA[Reply to button clicken in eine manderen programm??? on Sun, 01 Oct 2006 19:48:14 GMT]]></title><description><![CDATA[<p>THxxxxx!</p>
<p>Für alle, die noch keine Ahnung haben hier der code:</p>
<pre><code>HWND p = FindWindow(NULL, &quot;Ausführen&quot;);
HWND a = GetDlgItem(p, 1);
SendMessage(a, BM_CLICK, 0, 0L);
</code></pre>
<p>aber noch ne frage, woher hast du das??<br />
msdn??<br />
sag mal den link bitte!!<br />
google spuckt nix aus...</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1147615</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1147615</guid><dc:creator><![CDATA[Der Neue]]></dc:creator><pubDate>Sun, 01 Oct 2006 19:48:14 GMT</pubDate></item><item><title><![CDATA[Reply to button clicken in eine manderen programm??? on Sun, 01 Oct 2006 20:02:28 GMT]]></title><description><![CDATA[<p>Der Neue schrieb:</p>
<blockquote>
<p>aber noch ne frage, woher hast du das??</p>
</blockquote>
<p>Ehh....aus meinem Kopf ?! <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>
<p>Aber in der MSDN findest du da sicherlich Informationen zu.</p>
<p>Hab dir mal den Link rausgesucht, auch wenns nit so informativ ist (was gibts da auch noch zu wissen <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="😉"
    /> ).<br />
<img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/27a1.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--right_arrow"
      title=":arrow_right:"
      alt="➡"
    /> <a href="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/shellcc/platform/commctls/buttons/buttonreference/buttonmessages/bm_click.asp" rel="nofollow">BM_CLICK (<em>MSDN</em>)</a></p>
]]></description><link>https://www.c-plusplus.net/forum/post/1147623</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1147623</guid><dc:creator><![CDATA[CodeFinder]]></dc:creator><pubDate>Sun, 01 Oct 2006 20:02:28 GMT</pubDate></item><item><title><![CDATA[Reply to button clicken in eine manderen programm??? on Mon, 02 Oct 2006 07:26:53 GMT]]></title><description><![CDATA[<p>Der Code dürfte nur funktionieren, wenn es der erste Button und das einzige Objekt ist</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1147728</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1147728</guid><dc:creator><![CDATA[Christian411]]></dc:creator><pubDate>Mon, 02 Oct 2006 07:26:53 GMT</pubDate></item><item><title><![CDATA[Reply to button clicken in eine manderen programm??? on Mon, 02 Oct 2006 09:12:38 GMT]]></title><description><![CDATA[<p>gibt es auch eine Funktion, mit der man die Font eines Buttons ändern könnte?</p>
<p>MfG Wolfgang T.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1147793</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1147793</guid><dc:creator><![CDATA[Wolfgang T.]]></dc:creator><pubDate>Mon, 02 Oct 2006 09:12:38 GMT</pubDate></item><item><title><![CDATA[Reply to button clicken in eine manderen programm??? on Mon, 02 Oct 2006 09:17:55 GMT]]></title><description><![CDATA[<p>@ Christian nein, nicht wenn eine ID zugewiesen worden ist, wie in dem Fenster &quot;Ausführen&quot; unter Windows XP!</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1147797</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1147797</guid><dc:creator><![CDATA[Der Neue]]></dc:creator><pubDate>Mon, 02 Oct 2006 09:17:55 GMT</pubDate></item><item><title><![CDATA[Reply to button clicken in eine manderen programm??? on Mon, 02 Oct 2006 09:25:44 GMT]]></title><description><![CDATA[<p>Zuweisen passiert meines erachtens nur wenn man ein Dialog in einer .DLL abgelegt hat, wie z.B. in Windows(shell32.dll)...</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1147798</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1147798</guid><dc:creator><![CDATA[Der Neue]]></dc:creator><pubDate>Mon, 02 Oct 2006 09:25:44 GMT</pubDate></item><item><title><![CDATA[Reply to button clicken in eine manderen programm??? on Mon, 02 Oct 2006 13:53:45 GMT]]></title><description><![CDATA[<p>Christian411 schrieb:</p>
<blockquote>
<p>Der Code dürfte nur funktionieren, wenn es der erste Button und das einzige Objekt ist</p>
</blockquote>
<p>Sein Code ist schon relativ flexibel, da sich die (eindeutige) ID ja i.d.R. nicht ändert. Du bekommst sowas übrigens über die Spy++ heraus.</p>
<p>Wolfgang T. schrieb:</p>
<blockquote>
<p>gibt es auch eine Funktion, mit der man die Font eines Buttons ändern könnte?</p>
</blockquote>
<p>SendMessage und WM_SETFONT <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>
<p>Der Neue schrieb:</p>
<blockquote>
<p>@ Christian nein, nicht wenn eine ID zugewiesen worden ist, wie in dem Fenster &quot;Ausführen&quot; unter Windows XP!</p>
</blockquote>
<p>Stimmt nicht ganz, da man ID's bspw. durch einen Aufruf von</p>
<pre><code class="language-cpp">SetWindowLongPtr(hWndButton, GWL_ID, NEUE_ID);
</code></pre>
<p>auch noch nachträglich ändern kann.<br />
<img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/27a1.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--right_arrow"
      title=":arrow_right:"
      alt="➡"
    /> <strong>Aber</strong>...wer macht das schon :p .</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1148029</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1148029</guid><dc:creator><![CDATA[CodeFinder]]></dc:creator><pubDate>Mon, 02 Oct 2006 13:53:45 GMT</pubDate></item><item><title><![CDATA[Reply to button clicken in eine manderen programm??? on Mon, 02 Oct 2006 18:56:40 GMT]]></title><description><![CDATA[<p>gut!</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1148284</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1148284</guid><dc:creator><![CDATA[Der Neue]]></dc:creator><pubDate>Mon, 02 Oct 2006 18:56:40 GMT</pubDate></item><item><title><![CDATA[Reply to button clicken in eine manderen programm??? on Mon, 02 Oct 2006 18:57:27 GMT]]></title><description><![CDATA[<p>Danke!</p>
<p>Mfg Wolfgang T.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1148287</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1148287</guid><dc:creator><![CDATA[Wolfgang T.]]></dc:creator><pubDate>Mon, 02 Oct 2006 18:57:27 GMT</pubDate></item><item><title><![CDATA[Reply to button clicken in eine manderen programm??? on Mon, 02 Oct 2006 19:31:40 GMT]]></title><description><![CDATA[<p>hallo!<br />
habe wieder eine Frage...</p>
<pre><code>HWND a = FindWindow(NULL, &quot;Ausführen&quot;);
HWND p = GetDlgItem(a, 1);
HFONT lr;
SendMessage(p, WM_SETFONT, (WPARAM)lr, 0);
</code></pre>
<p>Versuche vergeblich die Schriftart zu ändern nun stecke ich fest:</p>
<p>ich habe bereits herausgefunden, dass man HFONT als Handle nehmen muss nun weiß ich nicht, wie ich deise so hinbekomme, dass ich zum schluss eine andere schriftart habe z.B. Times New Roman oder so</p>
<p>Könnt ihr mir weiterhelfen?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1148324</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1148324</guid><dc:creator><![CDATA[Wolfgang T.]]></dc:creator><pubDate>Mon, 02 Oct 2006 19:31:40 GMT</pubDate></item><item><title><![CDATA[Reply to button clicken in eine manderen programm??? on Tue, 03 Oct 2006 07:08:36 GMT]]></title><description><![CDATA[<p><a href="http://msdn.microsoft.com/library/en-us/gdi/fontext_8fp0.asp" rel="nofollow">CreateFont</a></p>
]]></description><link>https://www.c-plusplus.net/forum/post/1148460</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1148460</guid><dc:creator><![CDATA[flenders]]></dc:creator><pubDate>Tue, 03 Oct 2006 07:08:36 GMT</pubDate></item><item><title><![CDATA[Reply to button clicken in eine manderen programm??? on Tue, 03 Oct 2006 09:56:04 GMT]]></title><description><![CDATA[<p>Nun bin ich so weit, aber die schrift wird nur dick und niht verändert (Schriftart oder so)</p>
<pre><code>HWND ac = FindWindow(NULL, &quot;Ausführen&quot;);
HWND p = GetDlgItem(ac, 1);
LOGFONT lFont;

lFont.lfHeight = -11;
lFont.lfWidth = 0;
lFont.lfEscapement = 0;
lFont.lfOrientation = 0;
lFont.lfWeight = FW_THIN; //FW_BOLD
lFont.lfItalic = false;
lFont.lfUnderline = false;
lFont.lfStrikeOut = false;
lFont.lfCharSet = ANSI_CHARSET;
lFont.lfOutPrecision = OUT_DEFAULT_PRECIS;
lFont.lfClipPrecision = CLIP_DEFAULT_PRECIS;
lFont.lfQuality = DEFAULT_QUALITY;
lFont.lfPitchAndFamily = FF_DONTCARE;
strcpy(lFont.lfFaceName, &quot;Arial&quot;);
HFONT hfont = CreateFontIndirect(&amp;lFont);

SendMessage(p, WM_SETFONT, (WPARAM)hfont, true);
</code></pre>
<p>Was ist hierdran falsch muss doch gehen...</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1148523</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1148523</guid><dc:creator><![CDATA[Wolfgang T.]]></dc:creator><pubDate>Tue, 03 Oct 2006 09:56:04 GMT</pubDate></item><item><title><![CDATA[Reply to button clicken in eine manderen programm??? on Tue, 03 Oct 2006 10:48:27 GMT]]></title><description><![CDATA[<p>hmmm... Müsste eigentlich gehen. Spiel doch mal etwas mit <em>lfHeight</em> und <em>lfFaceName</em> rum.<br />
Übrigends, die DEFAULT-Konstanten (bis auf <em>DEFAULT_CHARSET</em>) und ANSI_CHARSET sind alle 0. Also gehts auch kürzer:</p>
<pre><code class="language-cpp">LOGONT lFont;
ZeroMemory( &amp;lFont, sizeof(lFont) );
lFont.lfHeight = -11;
strcpy(lFont.lfFaceName, &quot;Arial&quot;);
HFONT hfont = CreateFontIndirect(&amp;lFont);
</code></pre>
<p>Und als Höhe finde ich persönlich die positiven Werte schöner, da wird anders gemappt und sieht halt etwas anders aus, aber das nur am Rande <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/1148562</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1148562</guid><dc:creator><![CDATA[Badestrand]]></dc:creator><pubDate>Tue, 03 Oct 2006 10:48:27 GMT</pubDate></item><item><title><![CDATA[Reply to button clicken in eine manderen programm??? on Tue, 03 Oct 2006 11:11:35 GMT]]></title><description><![CDATA[<p>Bei mir wird das immer dick und bleibt auch dick....<br />
keine andere Schriftart keine andere dicke garnichts...</p>
<p>Kann mir denn wirklich keiner helfen???</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1148579</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1148579</guid><dc:creator><![CDATA[Wolfgang T.]]></dc:creator><pubDate>Tue, 03 Oct 2006 11:11:35 GMT</pubDate></item><item><title><![CDATA[Reply to button clicken in eine manderen programm??? on Tue, 03 Oct 2006 11:46:23 GMT]]></title><description><![CDATA[<p>Also...<br />
ich meiner Form geht das alles z.B.</p>
<pre><code>Label1-&gt;Font-&gt;Handle = hfont;
</code></pre>
<p>nur wenn ich mit dem befehl SendMessage hantiere, dann wird es nur dick und nicht anders (Schriftart oder so)</p>
<p>also liegt es doch daran....</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1148600</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1148600</guid><dc:creator><![CDATA[Wolfgang T.]]></dc:creator><pubDate>Tue, 03 Oct 2006 11:46:23 GMT</pubDate></item></channel></rss>