<?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=15144&amp;type=atom" />
	<updated>2020-01-23T16:52:50Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.script-coding.com/viewtopic.php?id=15144</id>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Срабатывание на "окно"]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=137460#p137460" />
			<content type="html"><![CDATA[<p>Ну это какое-то нестандартное окно. Так может закроет:<br />Другие стандартные окна закрывает.</p><div class="codebox"><pre><code>#Persistent
SetBatchLines, -1
Process, Priority,, High

Gui +LastFound
hWnd := WinExist()

DllCall(&quot;RegisterShellHookWindow&quot;, UInt,hWnd)
MsgNum := DllCall(&quot;RegisterWindowMessage&quot;, Str,&quot;SHELLHOOK&quot;)
OnMessage(MsgNum, &quot;ShellMessage&quot;)
Return

ShellMessage(wParam,lParam) {
If (wParam = 1) ; HSHELL_WINDOWCREATED := 1
{
WinGetTitle, Title, ahk_id %lParam%
If (Title = &quot;rf4_x64.exe&quot;)
{
WinClose, ahk_id %lParam%
}
}
}</code></pre></div>]]></content>
			<author>
				<name><![CDATA[svoboden]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=34280</uri>
			</author>
			<updated>2020-01-23T16:52:50Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=137460#p137460</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Срабатывание на "окно"]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=137459#p137459" />
			<content type="html"><![CDATA[<p><strong>svoboden</strong><br />Окно называется - rf4_x64.exe<br />надо что бы при появлении объекта (скрин) AHK его закрывал, нажимал на лкм.</p>]]></content>
			<author>
				<name><![CDATA[TRAAAAATATA]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=40590</uri>
			</author>
			<updated>2020-01-23T13:03:54Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=137459#p137459</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Срабатывание на "окно"]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=137455#p137455" />
			<content type="html"><![CDATA[<p>А название есть у окна. Так можно отлавливать окна. В примере окно блокнота:</p><div class="codebox"><pre><code>#Persistent 
SetBatchLines, -1 
Process, Priority,, High 

Gui +LastFound 
hWnd := WinExist() 

DllCall(&quot;RegisterShellHookWindow&quot;, UInt,hWnd) 
MsgNum := DllCall(&quot;RegisterWindowMessage&quot;, Str,&quot;SHELLHOOK&quot;) 
OnMessage(MsgNum, &quot;ShellMessage&quot;) 
Return 

ShellMessage(wParam,lParam) { 
If (wParam = 1) ; HSHELL_WINDOWCREATED := 1 
{ 
WinGetTitle, Title, ahk_id %lParam% 
If (Title = &quot;Безымянный — Блокнот&quot;) 
{ 
Msgbox
} 
} 
}</code></pre></div>]]></content>
			<author>
				<name><![CDATA[svoboden]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=34280</uri>
			</author>
			<updated>2020-01-22T23:00:52Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=137455#p137455</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[AHK: Срабатывание на "окно"]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=137451#p137451" />
			<content type="html"><![CDATA[<p>Необходим скрипт который нажимает левую кнопку мыши, если вылазит красное окно, затем нажимает пробел и снова левую кнопку.<br />Помогите, а то я вообще не могу понять как это написать)</p>]]></content>
			<author>
				<name><![CDATA[TRAAAAATATA]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=40590</uri>
			</author>
			<updated>2020-01-22T17:47:39Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=137451#p137451</id>
		</entry>
</feed>
