<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[Серый форум &mdash; AHK: свернуть активное окно правым кликом]]></title>
		<link>https://forum.script-coding.com/viewtopic.php?id=10724</link>
		<atom:link href="https://forum.script-coding.com/extern.php?action=feed&amp;tid=10724&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[Недавние сообщения в теме «AHK: свернуть активное окно правым кликом».]]></description>
		<lastBuildDate>Wed, 24 Jun 2015 18:16:07 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: AHK: свернуть активное окно правым кликом]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=94725#p94725</link>
			<description><![CDATA[<p>А, ну, тогда Sleep 1000 над WinMinimize, ahk_id %WinUMID%.<br />Если об этом речь.</p>]]></description>
			<author><![CDATA[null@example.com (Flasher)]]></author>
			<pubDate>Wed, 24 Jun 2015 18:16:07 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=94725#p94725</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: свернуть активное окно правым кликом]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=94724#p94724</link>
			<description><![CDATA[<div class="quotebox"><cite>Flasher пишет:</cite><blockquote><p>Вероятно, в двух местах, где Keywait, RButton, Up, L вместо L написать T1.</p></blockquote></div><p>все по прежнему</p>]]></description>
			<author><![CDATA[null@example.com (bryt)]]></author>
			<pubDate>Wed, 24 Jun 2015 17:43:48 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=94724#p94724</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: свернуть активное окно правым кликом]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=94723#p94723</link>
			<description><![CDATA[<p>Вероятно, в двух местах, где Keywait, RButton, Up, L вместо L написать T1.</p>]]></description>
			<author><![CDATA[null@example.com (Flasher)]]></author>
			<pubDate>Wed, 24 Jun 2015 17:40:08 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=94723#p94723</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: свернуть активное окно правым кликом]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=94722#p94722</link>
			<description><![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>]]></description>
			<author><![CDATA[null@example.com (bryt)]]></author>
			<pubDate>Wed, 24 Jun 2015 17:29:09 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=94722#p94722</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: свернуть активное окно правым кликом]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=94717#p94717</link>
			<description><![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>]]></description>
			<author><![CDATA[null@example.com (yalanne)]]></author>
			<pubDate>Wed, 24 Jun 2015 07:29:47 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=94717#p94717</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: свернуть активное окно правым кликом]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=94715#p94715</link>
			<description><![CDATA[<p>Да.</p>]]></description>
			<author><![CDATA[null@example.com (YMP)]]></author>
			<pubDate>Wed, 24 Jun 2015 01:47:10 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=94715#p94715</guid>
		</item>
		<item>
			<title><![CDATA[AHK: свернуть активное окно правым кликом]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=94713#p94713</link>
			<description><![CDATA[<p>Здравствуйте!<br />Возможно ли свернуть активное окно кликнув в любую область правой кнопкой мышки.</p>]]></description>
			<author><![CDATA[null@example.com (bryt)]]></author>
			<pubDate>Tue, 23 Jun 2015 23:40:07 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=94713#p94713</guid>
		</item>
	</channel>
</rss>
