<?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: shortcut key to minimize/maximize a 3ds max script? in 3ds Max Forum</title>
    <link>https://forums.autodesk.com/t5/3ds-max-forum/shortcut-key-to-minimize-maximize-a-3ds-max-script/m-p/9710147#M22447</link>
    <description>&lt;P&gt;can you point out what are you refering to....or post a snap shots instead.&lt;/P&gt;</description>
    <pubDate>Tue, 25 Aug 2020 09:47:59 GMT</pubDate>
    <dc:creator>rendermaster</dc:creator>
    <dc:date>2020-08-25T09:47:59Z</dc:date>
    <item>
      <title>shortcut key to minimize/maximize a 3ds max script?</title>
      <link>https://forums.autodesk.com/t5/3ds-max-forum/shortcut-key-to-minimize-maximize-a-3ds-max-script/m-p/9706263#M22446</link>
      <description>&lt;P&gt;Wondering how I might use a&amp;nbsp;shortcut key to minimize/maximize a 3ds max script?&lt;BR /&gt;&lt;BR /&gt;Would I need to edit the script itself or can this be done with the 3dsMax GUI somewhere?&lt;/P&gt;</description>
      <pubDate>Sat, 22 Aug 2020 20:04:21 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-forum/shortcut-key-to-minimize-maximize-a-3ds-max-script/m-p/9706263#M22446</guid>
      <dc:creator>RadioRahim</dc:creator>
      <dc:date>2020-08-22T20:04:21Z</dc:date>
    </item>
    <item>
      <title>Re: shortcut key to minimize/maximize a 3ds max script?</title>
      <link>https://forums.autodesk.com/t5/3ds-max-forum/shortcut-key-to-minimize-maximize-a-3ds-max-script/m-p/9710147#M22447</link>
      <description>&lt;P&gt;can you point out what are you refering to....or post a snap shots instead.&lt;/P&gt;</description>
      <pubDate>Tue, 25 Aug 2020 09:47:59 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-forum/shortcut-key-to-minimize-maximize-a-3ds-max-script/m-p/9710147#M22447</guid>
      <dc:creator>rendermaster</dc:creator>
      <dc:date>2020-08-25T09:47:59Z</dc:date>
    </item>
    <item>
      <title>Re: shortcut key to minimize/maximize a 3ds max script?</title>
      <link>https://forums.autodesk.com/t5/3ds-max-forum/shortcut-key-to-minimize-maximize-a-3ds-max-script/m-p/9716670#M22448</link>
      <description>&lt;P&gt;My friend ended up writing a separate script to min/max the script window:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;fn getRollout dialog_title = (
    local MyHandle = undefined
    local OpenDialogs = UIAccessor.GetPopupDialogs()
    local DialogHandle = undefined
    for DialogHandle in OpenDialogs where matchpattern (UIAccessor.GetWindowText DialogHandle) pattern:dialog_title do (
        MyHandle = DialogHandle
        exit
        )
    MyHandle
    )
fn getWindowClass = (
    local source  = "using System;"
    source += "using System.Runtime.InteropServices;"
    source += "public class Window"
    source += "{"
    source += "    [DllImport(\"user32.dll\")]"
    source += "    public static extern bool IsIconic(int hWnd);"
    source += "}"
    
    local csharpProvider = dotNetObject "Microsoft.CSharp.CSharpCodeProvider"
    local compilerParams = dotNetObject "System.CodeDom.Compiler.CompilerParameters"
    compilerParams.GenerateInMemory = true
    compilerParams.ReferencedAssemblies.Add "System.dll"
    local compilerResults = csharpProvider.CompileAssemblyFromSource compilerParams #(source)
    compilerResults.CompiledAssembly.CreateInstance "Window"
    )
fn min_max_window MyHandle = (
    local WM_SYSCOMMAND    = 0x112
    local SC_MINIMIZE    = 0xf020
    local SC_MAXIMIZE    = 0xf030
    local SC_RESTORE    = 0xf120
    local wParam = 0
    
    if MyHandle != undefined do (
        if NOT isKindOf ::window dotNetObject do window = getWindowClass()
        if window.IsIconic MyHandle then (
            windows.sendMessage MyHandle WM_SYSCOMMAND SC_RESTORE wParam
            )
        else (
            windows.sendMessage MyHandle WM_SYSCOMMAND SC_MINIMIZE wParam
            )
        )
    )

min_max_window (getRollout "your_script_name_here*")&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 28 Aug 2020 07:25:11 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-forum/shortcut-key-to-minimize-maximize-a-3ds-max-script/m-p/9716670#M22448</guid>
      <dc:creator>RadioRahim</dc:creator>
      <dc:date>2020-08-28T07:25:11Z</dc:date>
    </item>
  </channel>
</rss>

