<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Серый форум &mdash; AHK: свернуть активное окно правым кликом]]></title>
	<link rel="self" href="https://forum.script-coding.com/extern.php?action=feed&amp;tid=10724&amp;type=atom" />
	<updated>2015-06-24T18:16:07Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.script-coding.com/viewtopic.php?id=10724</id>
		<entry>
			<title type="html"><![CDATA[Re: AHK: свернуть активное окно правым кликом]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=94725#p94725" />
			<content type="html"><![CDATA[<p>А, ну, тогда Sleep 1000 над WinMinimize, ahk_id %WinUMID%.<br />Если об этом речь.</p>]]></content>
			<author>
				<name><![CDATA[Flasher]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=27593</uri>
			</author>
			<updated>2015-06-24T18:16:07Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=94725#p94725</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: свернуть активное окно правым кликом]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=94724#p94724" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>Flasher пишет:</cite><blockquote><p>Вероятно, в двух местах, где Keywait, RButton, Up, L вместо L написать T1.</p></blockquote></div><p>все по прежнему</p>]]></content>
			<author>
				<name><![CDATA[bryt]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=33154</uri>
			</author>
			<updated>2015-06-24T17:43:48Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=94724#p94724</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: свернуть активное окно правым кликом]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=94723#p94723" />
			<content type="html"><![CDATA[<p>Вероятно, в двух местах, где Keywait, RButton, Up, L вместо L написать T1.</p>]]></content>
			<author>
				<name><![CDATA[Flasher]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=27593</uri>
			</author>
			<updated>2015-06-24T17:40:08Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=94723#p94723</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: свернуть активное окно правым кликом]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=94722#p94722" />
			<content type="html"><![CDATA[<p>я нашел более подходящий код, но мне нужно что бы он срабатывал когда я отпускаю левую кнопку мышки и еще нужно гдето влепить sleep 1000</p><div class="codebox"><pre><code>
RButton::
RButton_used := GetKeyState(&quot;RButton&quot;, &quot;P&quot;)
; MsgBox,,,LButton_used = %LButton_used% ; for trouble shooting

not_an_exception := true ; default value
    
    ;Start of Exceptions:
    /*
    You can add your own exceptions by using the AHK window spy to get the Window Class that you don&#039;t want to close and adding it to the script. The window class string can be found at the 3rd line of the Window Spy, following the word &quot;ahk_class&quot;). If you&#039;re new to AHK, look for the section titled Exceptions in my script.  There are a bunch of if statements listing all the exceptions. Just copy one of those statements and paste it at the end of the list. Substitute the window class string at the end of the first line of the if statement you just pasted with the one you got from the AHK Window Spy. Chances are that the window class for chrome/firefox will eventually change, so you will have to adjust the exceptions as time goes on. 
    */
    
    IfInString,winclass,Shell_TrayWnd ;put_ahk_class_here
        { 
        not_an_exception:=false
        }
    IfInString,winclass,put_the_ahk_class_here
        { ; example: Chrome_WidgetWin_1 - for chrome
        not_an_exception:=false
        }
    IfInString,winclass,LaunchUnrealUWindowsClient
        { ; example: Chrome_WidgetWin_1 - for chrome
        not_an_exception:=false
        }
        
    ; End of Exceptions

if(RButton_used)
{
    ; MsgBox,,, Minimize ; for testing
    MouseGetPos,,, WinUMID
    WinActivate, ahk_id %WinUMID% ; activate window below cursor

    WinGetClass, winclass, A
   
    
    
    
    If(not_an_exception==true)
        {
         WinMinimize, ahk_id %WinUMID% 
         return
        }
        else
            {
            Suspend on
            Send {RButton down}
            Keywait, RButton, Up, L
            
            Suspend off
            }
        
}
else
{
    Suspend on
    Send {RButton down}
    Keywait, RButton, Up, L
    Suspend off
}



return</code></pre></div>]]></content>
			<author>
				<name><![CDATA[bryt]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=33154</uri>
			</author>
			<updated>2015-06-24T17:29:09Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=94722#p94722</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: свернуть активное окно правым кликом]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=94717#p94717" />
			<content type="html"><![CDATA[<p>Для своего окна:<br /></p><div class="codebox"><pre><code>Gui Show, w300 h300
OnMessage(&quot;0x0204&quot;,&quot;WM_RBUTTONDOWN&quot;)
return
WM_RBUTTONDOWN(){
WinMinimize, % &quot;ahk_id &quot; WinExist()
}</code></pre></div><p>Для любого:<br /></p><div class="codebox"><pre><code>~Rbutton::
MouseGetPos, , , id
WinMinimize, % &quot;ahk_id &quot; id
return</code></pre></div>]]></content>
			<author>
				<name><![CDATA[yalanne]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=32850</uri>
			</author>
			<updated>2015-06-24T07:29:47Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=94717#p94717</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: свернуть активное окно правым кликом]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=94715#p94715" />
			<content type="html"><![CDATA[<p>Да.</p>]]></content>
			<author>
				<name><![CDATA[YMP]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=81</uri>
			</author>
			<updated>2015-06-24T01:47:10Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=94715#p94715</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[AHK: свернуть активное окно правым кликом]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=94713#p94713" />
			<content type="html"><![CDATA[<p>Здравствуйте!<br />Возможно ли свернуть активное окно кликнув в любую область правой кнопкой мышки.</p>]]></content>
			<author>
				<name><![CDATA[bryt]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=33154</uri>
			</author>
			<updated>2015-06-23T23:40:07Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=94713#p94713</id>
		</entry>
</feed>
