<?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[Close any C4D Window]]></title><description><![CDATA[<p dir="auto">Hi !<br />
Is it possibly to close any Cinema4D window like the ones below by using python ?</p>
<p dir="auto"><img src="https://i.imgur.com/hZHmj2e.png" alt="alt text" class=" img-fluid img-markdown" /></p>
<p dir="auto">I've tried acessing this command, but I had no success, because I didn't find anything on the python API to get C4D windows...<br />
<img src="https://i.imgur.com/sjmlVuc.png" alt="alt text" class=" img-fluid img-markdown" /></p>
<p dir="auto">Thanks!</p>
]]></description><link>http://developers.maxon.net/forum/topic/11607/close-any-c4d-window</link><generator>RSS for Node</generator><lastBuildDate>Tue, 16 Jun 2026 21:23:35 GMT</lastBuildDate><atom:link href="http://developers.maxon.net/forum/topic/11607.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 10 Jun 2019 17:02:41 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Close any C4D Window on Tue, 16 Jul 2019 06:53:29 GMT]]></title><description><![CDATA[<p dir="auto">hello,</p>
<p dir="auto">thanks a lot for posting your solution here.</p>
<p dir="auto">Cheers<br />
Manuel.</p>
]]></description><link>http://developers.maxon.net/forum/post/58838</link><guid isPermaLink="true">http://developers.maxon.net/forum/post/58838</guid><dc:creator><![CDATA[Manuel]]></dc:creator><pubDate>Tue, 16 Jul 2019 06:53:29 GMT</pubDate></item><item><title><![CDATA[Reply to Close any C4D Window on Tue, 16 Jul 2019 06:04:55 GMT]]></title><description><![CDATA[<p dir="auto">can't test it right now, but this should do the trick.</p>
<p dir="auto">you'll need to install these packages to your c4d installation to make it work</p>
<pre><code>import win32gui
import win32ui
import win32co
from pynput.keyboard import Key, Controller
handle = win32gui.FindWindow(0, "Texture Manager")
    try:
        if handle:
            
            keyboard = Controller()    
            win32gui.SetForegroundWindow(handle)
            keyboard.press(Key.ctrl)
            keyboard.press(w)

            keyboard.release(Key.ctrl)   
            keyboard.press(w)
    except:
        pass

</code></pre>
]]></description><link>http://developers.maxon.net/forum/post/58837</link><guid isPermaLink="true">http://developers.maxon.net/forum/post/58837</guid><dc:creator><![CDATA[pyr]]></dc:creator><pubDate>Tue, 16 Jul 2019 06:04:55 GMT</pubDate></item><item><title><![CDATA[Reply to Close any C4D Window on Mon, 01 Jul 2019 13:29:04 GMT]]></title><description><![CDATA[<p dir="auto">hello,</p>
<p dir="auto">this thread will be considered solved and will be closed tomorrow if you have nothing to add.</p>
<p dir="auto">Cheers<br />
Manuel</p>
]]></description><link>http://developers.maxon.net/forum/post/58711</link><guid isPermaLink="true">http://developers.maxon.net/forum/post/58711</guid><dc:creator><![CDATA[Manuel]]></dc:creator><pubDate>Mon, 01 Jul 2019 13:29:04 GMT</pubDate></item><item><title><![CDATA[Reply to Close any C4D Window on Tue, 11 Jun 2019 09:07:18 GMT]]></title><description><![CDATA[<p dir="auto">hello,</p>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/forum/user/cairyn">@<bdi>Cairyn</bdi></a> thanks for the answer</p>
<p dir="auto">the subject seems to be popular those days <img src="http://developers.maxon.net/forum/assets/plugins/nodebb-plugin-emoji/emoji/android/1f642.png?v=0b8ddba251d" class="not-responsive emoji emoji-android emoji--slightly_smiling_face" style="height:23px;width:auto;vertical-align:middle" title=":)" alt="🙂" /><br />
As in <a href="https://developers.maxon.net/forum/topic/11594/access-object-manager-fold-and-unfold" target="_blank" rel="noopener noreferrer nofollow ugc">this thread </a>, we can confimr it's not possible.</p>
<p dir="auto">Cheers<br />
Manuel</p>
]]></description><link>http://developers.maxon.net/forum/post/58549</link><guid isPermaLink="true">http://developers.maxon.net/forum/post/58549</guid><dc:creator><![CDATA[Manuel]]></dc:creator><pubDate>Tue, 11 Jun 2019 09:07:18 GMT</pubDate></item><item><title><![CDATA[Reply to Close any C4D Window on Mon, 10 Jun 2019 19:39:20 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/forum/user/cairyn">@<bdi>Cairyn</bdi></a> said in <a href="https://developers.maxon.net/forum/post/58539" target="_blank" rel="noopener noreferrer nofollow ugc">Close any C4D Window</a>:</p>
<blockquote>
<p dir="auto">That's because there is none. The Windows functionality in the API is very limited. You can open some through CallCommand but identification and handling of specific windows is not supported.</p>
<p dir="auto">Only thing you could do is loading a new layout.</p>
</blockquote>
<p dir="auto">I was afraid of that answer <img src="http://developers.maxon.net/forum/assets/plugins/nodebb-plugin-emoji/emoji/android/1f625.png?v=0b8ddba251d" class="not-responsive emoji emoji-android emoji--disappointed_relieved" style="height:23px;width:auto;vertical-align:middle" title="😥" alt="😥" /><br />
But thank you anyway <img src="http://developers.maxon.net/forum/assets/plugins/nodebb-plugin-emoji/emoji/android/1f642.png?v=0b8ddba251d" class="not-responsive emoji emoji-android emoji--slightly_smiling_face" style="height:23px;width:auto;vertical-align:middle" title=":-)" alt="🙂" /></p>
]]></description><link>http://developers.maxon.net/forum/post/58542</link><guid isPermaLink="true">http://developers.maxon.net/forum/post/58542</guid><dc:creator><![CDATA[FlavioDiniz]]></dc:creator><pubDate>Mon, 10 Jun 2019 19:39:20 GMT</pubDate></item><item><title><![CDATA[Reply to Close any C4D Window on Mon, 10 Jun 2019 17:42:59 GMT]]></title><description><![CDATA[<p dir="auto">That's because there is none. The Windows functionality in the API is very limited. You can open some through CallCommand but identification and handling of specific windows is not supported.</p>
<p dir="auto">Only thing you could do is loading a new layout.</p>
]]></description><link>http://developers.maxon.net/forum/post/58539</link><guid isPermaLink="true">http://developers.maxon.net/forum/post/58539</guid><dc:creator><![CDATA[Cairyn]]></dc:creator><pubDate>Mon, 10 Jun 2019 17:42:59 GMT</pubDate></item></channel></rss>