<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: 2024+ SME setfocus issue in 3ds Max Programming Forum</title>
    <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/2024-sme-setfocus-issue/m-p/12911597#M899</link>
    <description>Yeah, I understand that it's QT now and something has changed obviously. I have little knowledge in this area (windows messaging and QT).&lt;BR /&gt;&lt;BR /&gt;Maybe QT windows just don't accept these windows.postMessages and I need to simulate UI navigation in a different way?&lt;BR /&gt;Or maybe you could advise some tool like dnSpy that recognizes qt windows so I could check what's going on when I navigate in menu?&lt;BR /&gt;&lt;BR /&gt;</description>
    <pubDate>Mon, 22 Jul 2024 07:51:17 GMT</pubDate>
    <dc:creator>68451</dc:creator>
    <dc:date>2024-07-22T07:51:17Z</dc:date>
    <item>
      <title>2024+ SME setfocus issue</title>
      <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/2024-sme-setfocus-issue/m-p/12844796#M894</link>
      <description>&lt;P&gt;Hello.&lt;/P&gt;&lt;P&gt;I have a function that "clicks" Menu items in Slate Material Editor by sending windows.postMessages (Alt &amp;gt; arrows &amp;gt; enter... etc.). The purpose of the script is to disable "Auto Open Nodeslots" feature. I didn't find any other way to disable it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is the code that worked fine before Autodesk moved Slate to QT in 2024. Now the code doesn't work in max 2024 and 2025.&lt;/P&gt;&lt;LI-CODE lang="general"&gt;	fn SmeToggleautoOpenNodeslots sme_hwnd =
	(
		(SME.GetMainframe()).SetFocus()
		windows.postMessage sme_hwnd 0x104 0x12 0x20380001
		windows.postMessage sme_hwnd 0x105 0x12 0xC0380001

		for i=1 to 4 do
		(
			windows.postMessage sme_hwnd 0x100 0x27 0x114D0001
			windows.postMessage sme_hwnd 0x101 0x27 0xD14D0001
		)

		windows.postMessage sme_hwnd 0x100 0x28 0x11500001
		windows.postMessage sme_hwnd 0x101 0x28 0xD1500001

		for i=1 to 2 do
		(
			windows.postMessage sme_hwnd 0x100 0x1B 0x10010001
			windows.postMessage sme_hwnd 0x101 0x1B 0xD0010001
		)

		windows.sendMessage sme_hwnd 0x201 0 0
		windows.sendMessage sme_hwnd 0x202 0 0

		windows.sendMessage sme_hwnd 0xC752 0 0
		windows.postMessage sme_hwnd 0xC752 1 0
		windows.processPostedMessages()

		(SME.GetMainframe()).SetFocus()

		windows.sendMessage sme_hwnd 0x111 40050 0
		windows.processPostedMessages()
	)&lt;/LI-CODE&gt;&lt;P&gt;It looks like SetFocus just doesn't work in Slate anymore, or maybe postMessages don't, I'm not sure.&lt;/P&gt;&lt;P&gt;Can someone proof it or even help me to fix the issue please? Thanks.&lt;/P&gt;</description>
      <pubDate>Mon, 17 Jun 2024 17:40:06 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-programming-forum/2024-sme-setfocus-issue/m-p/12844796#M894</guid>
      <dc:creator>68451</dc:creator>
      <dc:date>2024-06-17T17:40:06Z</dc:date>
    </item>
    <item>
      <title>Betreff: 2024+ SME setfocus issue</title>
      <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/2024-sme-setfocus-issue/m-p/12909403#M895</link>
      <description>&lt;P&gt;Best guess: the window handles (0x20380001 etc.) have changed?&lt;/P&gt;</description>
      <pubDate>Sat, 20 Jul 2024 13:04:46 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-programming-forum/2024-sme-setfocus-issue/m-p/12909403#M895</guid>
      <dc:creator>MartinBeh</dc:creator>
      <dc:date>2024-07-20T13:04:46Z</dc:date>
    </item>
    <item>
      <title>Re: 2024+ SME setfocus issue</title>
      <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/2024-sme-setfocus-issue/m-p/12910300#M896</link>
      <description>&lt;P&gt;To use such scripts, you need to understand how they work. Otherwise your question will sound as strange as "why last year the same train came at 12.39 and this year at 12.50?", and the answer is obvious: "Because the timetable has changed".&lt;/P&gt;</description>
      <pubDate>Sun, 21 Jul 2024 08:03:49 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-programming-forum/2024-sme-setfocus-issue/m-p/12910300#M896</guid>
      <dc:creator>denisT.MaxDoctor</dc:creator>
      <dc:date>2024-07-21T08:03:49Z</dc:date>
    </item>
    <item>
      <title>Re: 2024+ SME setfocus issue</title>
      <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/2024-sme-setfocus-issue/m-p/12910319#M897</link>
      <description>&lt;P&gt;Thanks, Denis.&lt;BR /&gt;I'm not sure what exactly you mean by "understand how they work". I specified that script sends postMessages to simulate keypresses in order to disable "Auto Open Nodeslots" option in top SME menu.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So basically: click Alt (key down, key up), 4 times click right arrow, etc. to navigate in menu to find "Auto Open Nodeslots" and hit Enter on it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If there is a better way to disable "Auto Open Nodeslots" I would be happy to hear it.&lt;/P&gt;</description>
      <pubDate>Sun, 21 Jul 2024 08:31:04 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-programming-forum/2024-sme-setfocus-issue/m-p/12910319#M897</guid>
      <dc:creator>68451</dc:creator>
      <dc:date>2024-07-21T08:31:04Z</dc:date>
    </item>
    <item>
      <title>Re: 2024+ SME setfocus issue</title>
      <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/2024-sme-setfocus-issue/m-p/12911589#M898</link>
      <description>&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;P&gt;A "simulation of the UI interaction" solution is not perfect, but sometimes it's the only option. It is important to realize that UI changes are likely from version to version. If you know what to do, just remember that the Slate Editor window is now a Qt Dialog. Everything else is the same, unless the menu items have changed in number or order.&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 22 Jul 2024 07:45:25 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-programming-forum/2024-sme-setfocus-issue/m-p/12911589#M898</guid>
      <dc:creator>denisT.MaxDoctor</dc:creator>
      <dc:date>2024-07-22T07:45:25Z</dc:date>
    </item>
    <item>
      <title>Re: 2024+ SME setfocus issue</title>
      <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/2024-sme-setfocus-issue/m-p/12911597#M899</link>
      <description>Yeah, I understand that it's QT now and something has changed obviously. I have little knowledge in this area (windows messaging and QT).&lt;BR /&gt;&lt;BR /&gt;Maybe QT windows just don't accept these windows.postMessages and I need to simulate UI navigation in a different way?&lt;BR /&gt;Or maybe you could advise some tool like dnSpy that recognizes qt windows so I could check what's going on when I navigate in menu?&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 22 Jul 2024 07:51:17 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-programming-forum/2024-sme-setfocus-issue/m-p/12911597#M899</guid>
      <dc:creator>68451</dc:creator>
      <dc:date>2024-07-22T07:51:17Z</dc:date>
    </item>
  </channel>
</rss>

