<?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[ein Programm hat den Focus]]></title><description><![CDATA[<p>Hallo,<br />
ich möchte eine Funktion 'ERRGStart()' starten wenn ein Programm den Focus bekommt, und eine Funktion 'ERRGEnde()' starten wenn das Programm den Focus verliert, das gleicht wiederholen wenn andere Programme den Focus bekommet und verliert.<br />
danke</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/148500/ein-programm-hat-den-focus</link><generator>RSS for Node</generator><lastBuildDate>Fri, 17 Jul 2026 08:09:57 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/148500.rss" rel="self" type="application/rss+xml"/><pubDate>Sat, 27 May 2006 12:38:27 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to ein Programm hat den Focus on Sat, 27 May 2006 12:38:27 GMT]]></title><description><![CDATA[<p>Hallo,<br />
ich möchte eine Funktion 'ERRGStart()' starten wenn ein Programm den Focus bekommt, und eine Funktion 'ERRGEnde()' starten wenn das Programm den Focus verliert, das gleicht wiederholen wenn andere Programme den Focus bekommet und verliert.<br />
danke</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1066061</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1066061</guid><dc:creator><![CDATA[C++_Hoby]]></dc:creator><pubDate>Sat, 27 May 2006 12:38:27 GMT</pubDate></item><item><title><![CDATA[Reply to ein Programm hat den Focus on Sat, 27 May 2006 23:06:20 GMT]]></title><description><![CDATA[<p>Hi,<br />
Also für die Zukunft: Es ist schon sinnvoll eine konkrete Frage zu formulieren!</p>
<p>Da dein Post nicht ganz eindeutig ist, bin ich mir nicht ganz sicher ob es das ist, was du meinst...</p>
<p>Aber guck mal nach</p>
<pre><code class="language-cpp">WM_SETFOCUS
</code></pre>
<p>und</p>
<pre><code class="language-cpp">WM_KILLFOCUS
</code></pre>
<p>MfG CodeFinder</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1066443</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1066443</guid><dc:creator><![CDATA[CodeFinder]]></dc:creator><pubDate>Sat, 27 May 2006 23:06:20 GMT</pubDate></item><item><title><![CDATA[Reply to ein Programm hat den Focus on Sun, 28 May 2006 07:58:18 GMT]]></title><description><![CDATA[<p>also ich bin kein winapi experte, aber ich weiss dass es nur über winapi geht, ich will über mein programm die andere frem Programme beobachten indem ich rechne wieviel zeit hat mann in ein Programm (word oder excel) gearbeitet.<br />
also mein Programm soll es merken wenn ein frem Programm active ist und das gleiche wenn er nicht active ist.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1066473</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1066473</guid><dc:creator><![CDATA[C++_Hoby]]></dc:creator><pubDate>Sun, 28 May 2006 07:58:18 GMT</pubDate></item><item><title><![CDATA[Reply to ein Programm hat den Focus on Sun, 28 May 2006 08:59:16 GMT]]></title><description><![CDATA[<blockquote>
<p>Also, ich bin kein WinApi-Experte, aber ich weiß, dass es nur über WinApi geht.</p>
</blockquote>
<p>Oha...</p>
<blockquote>
<p>Ich will über mein Programm die andere (fremden)Programme beobachten und berechnen wieviel Zeit man in einem Programm(Mirsoft Word, Microsoft Excel, OpenOffice usw.) gearbeitet hat.<br />
D.h. soll mein Programm bemerken wenn ein fremdes Programm Active ist oder wenn es nicht Active ist.</p>
</blockquote>
<p>Jo... soweit so gut... dein Ansatz?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1066485</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1066485</guid><dc:creator><![CDATA[*D*Evil]]></dc:creator><pubDate>Sun, 28 May 2006 08:59:16 GMT</pubDate></item><item><title><![CDATA[Reply to ein Programm hat den Focus on Sun, 28 May 2006 09:51:08 GMT]]></title><description><![CDATA[<p>(D)Evil<br />
danke für dein Hilfe.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1066505</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1066505</guid><dc:creator><![CDATA[C++_Hoby]]></dc:creator><pubDate>Sun, 28 May 2006 09:51:08 GMT</pubDate></item><item><title><![CDATA[Reply to ein Programm hat den Focus on Sun, 28 May 2006 10:18:51 GMT]]></title><description><![CDATA[<p>na gut, was soll's, du hast mich vielleicht falsch verstanden, ich kann über</p>
<pre><code>HWND hWnd = GetForegroundWindow();
 GetWindowText(hWnd, szTitle, 60 );
</code></pre>
<p>den Titel des activen Fensters heraus finden, aber ich will dass mein Programm sowas von alleine merkt wenn dieses Fenter active ist (dies ist meine Frage), also wie z.B. das diesen activen Fremd Programm mein Programm einen Message mitteilt wenn er das zum ersten mal den Focus bekommt, dann werde ich Fentstertitel und startzeit in eine Liste schreiben und dann die Dauerzeit berechnen.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1066522</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1066522</guid><dc:creator><![CDATA[C++_Hoby]]></dc:creator><pubDate>Sun, 28 May 2006 10:18:51 GMT</pubDate></item></channel></rss>