<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Серый форум &mdash; AHK: Проблемы с закрытем окна Skype при переходе в немой режим]]></title>
	<link rel="self" href="https://forum.script-coding.com/extern.php?action=feed&amp;tid=6943&amp;type=atom" />
	<updated>2012-03-19T18:03:44Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.script-coding.com/viewtopic.php?id=6943</id>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Проблемы с закрытем окна Skype при переходе в немой режим]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=58086#p58086" />
			<content type="html"><![CDATA[<p>А если это не задержка, а что то иное(что не знаю)?</p>]]></content>
			<author>
				<name><![CDATA[Indomito]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=27285</uri>
			</author>
			<updated>2012-03-19T18:03:44Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=58086#p58086</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Проблемы с закрытем окна Skype при переходе в немой режим]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=58085#p58085" />
			<content type="html"><![CDATA[<p>Ну по идее должно работать было уже на рубеже в 1000мс, если с уведомлением работало...</p>]]></content>
			<author>
				<name><![CDATA[Grey]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=25792</uri>
			</author>
			<updated>2012-03-19T18:00:43Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=58085#p58085</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Проблемы с закрытем окна Skype при переходе в немой режим]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=58083#p58083" />
			<content type="html"><![CDATA[<p>Сенкс... попробую, хотя я пытался делать задержки, но правда в другом(варианте) скрипте.</p><p>Есть предположение о диапазоне задержек? Я от 100 до 5000 проверил... окна не закрываются - мистика.</p>]]></content>
			<author>
				<name><![CDATA[Indomito]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=27285</uri>
			</author>
			<updated>2012-03-19T17:43:16Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=58083#p58083</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Проблемы с закрытем окна Skype при переходе в немой режим]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=58082#p58082" />
			<content type="html"><![CDATA[<div class="codebox"><pre><code>CoordMode, Mouse, Relative
Run, C:\Program Files (x86)\Pidgin\pidgin.exe
Loop, 2
{
   WinWaitActive, ahk_class TConfirmForm
   Sleep, 50
   ControlClick, x24 y354, ahk_class TConfirmForm,,,, Pos
   Sleep, 50
   ControlClick, TNavigableButton2, ahk_class TConfirmForm
   Sleep, 50
}
MsgBox, 64,, Done!, 1
ExitApp</code></pre></div><p>Следует подобрать значение/я задержки/ек.</p>]]></content>
			<author>
				<name><![CDATA[Grey]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=25792</uri>
			</author>
			<updated>2012-03-19T17:39:56Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=58082#p58082</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Проблемы с закрытем окна Skype при переходе в немой режим]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=58080#p58080" />
			<content type="html"><![CDATA[<p>После мониторинга всё работает нормально.</p><p>Сейчас проверю без оного....</p><p>После </p><div class="codebox"><pre><code>CoordMode, Mouse, Relative
Run, C:\Program Files (x86)\Pidgin\pidgin.exe
Loop, 2
{
   WinWaitActive, ahk_class TConfirmForm
;   MsgBox, 64, % Mod(A_Index, 2)!=0 ? &quot;первый круг&quot;:&quot;второй круг&quot;
;         , Активно окно TConfirmFormб далее..., 1
   ControlClick, x24 y354, ahk_class TConfirmForm,,,, Pos
;   MsgBox, 64, % Mod(A_Index, 2)!=0 ? &quot;первый круг&quot;:&quot;второй круг&quot;
;         , клик по координатам чекбокса..., 1
   ControlClick, TNavigableButton2, ahk_class TConfirmForm
;   MsgBox, 64, % Mod(A_Index, 2)!=0 ? &quot;первый круг&quot;:&quot;второй круг&quot;
;         , клик по клавише ОК..., 1
}
;MsgBox, 64,, Done!, 1
ExitApp</code></pre></div><p>всё работать перестаёт. Может надо фокус установить или задержки - я не очень понимаю в чем проблема.</p><p>P.S. Сделать скриншоты мониторинга?</p>]]></content>
			<author>
				<name><![CDATA[Indomito]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=27285</uri>
			</author>
			<updated>2012-03-19T17:33:10Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=58080#p58080</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Проблемы с закрытем окна Skype при переходе в немой режим]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=58079#p58079" />
			<content type="html"><![CDATA[<p>Такие два окна появились лишь при первом запуске, координаты чекбокса (x24 y354), и нзвание контрола, с классом успел снять, потестить, не смог. Но вот такой вариант жмёт горячую клавишу в блокноте: </p><div class="codebox"><pre><code>Loop, 2
{
   Run, notepad.exe, % A_WinDir &quot;\System32&quot;
   WinWaitActive, ahk_class Notepad
   ControlSend, Edit1, {F5}, ahk_class Notepad
   WinClose, ahk_class Notepad
   ControlClick, Button2, ahk_class #32770,,, 2
}
MsgBox, 64,, Done!, 1
ExitApp</code></pre></div><p>Попробуй <em>промониторить</em> процесс:</p><div class="codebox"><pre><code>CoordMode, Mouse, Relative
Run, C:\Program Files (x86)\Pidgin\pidgin.exe
Loop, 2
{
   WinWaitActive, ahk_class TConfirmForm
   MsgBox, 64, % Mod(A_Index, 2)!=0 ? &quot;первый круг&quot;:&quot;второй круг&quot;
         , Активно окно TConfirmFormб далее..., 1
   ControlClick, x24 y354, ahk_class TConfirmForm,,,, Pos
   MsgBox, 64, % Mod(A_Index, 2)!=0 ? &quot;первый круг&quot;:&quot;второй круг&quot;
         , клик по координатам чекбокса..., 1
   ControlClick, TNavigableButton2, ahk_class TConfirmForm
   MsgBox, 64, % Mod(A_Index, 2)!=0 ? &quot;первый круг&quot;:&quot;второй круг&quot;
         , клик по клавише ОК..., 1
}
MsgBox, 64,, Done!, 1
ExitApp</code></pre></div>]]></content>
			<author>
				<name><![CDATA[Grey]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=25792</uri>
			</author>
			<updated>2012-03-19T17:27:25Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=58079#p58079</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Проблемы с закрытем окна Skype при переходе в немой режим]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=58078#p58078" />
			<content type="html"><![CDATA[<p>Напечатала <strong>Done!</strong> но не закрыла оба окна</p>]]></content>
			<author>
				<name><![CDATA[Indomito]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=27285</uri>
			</author>
			<updated>2012-03-19T17:12:11Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=58078#p58078</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Проблемы с закрытем окна Skype при переходе в немой режим]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=58077#p58077" />
			<content type="html"><![CDATA[<div class="codebox"><pre><code>CoordMode, Mouse, Relative
Run, C:\Program Files (x86)\Pidgin\pidgin.exe
Loop, 2
{
   WinWaitActive, ahk_class TConfirmForm
   ControlClick, x24 y354, ahk_class TConfirmForm,,,, Pos
   ControlClick, TNavigableButton2, ahk_class TConfirmForm
}
MsgBox, 64,, Done!, 1
ExitApp</code></pre></div>]]></content>
			<author>
				<name><![CDATA[Grey]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=25792</uri>
			</author>
			<updated>2012-03-19T17:08:49Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=58077#p58077</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Проблемы с закрытем окна Skype при переходе в немой режим]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=58055#p58055" />
			<content type="html"><![CDATA[<p>Где в этом скрипте ошибка? </p><div class="codebox"><pre><code>SetTitleMatchMode, 2
Run, C:\Program Files (x86)\Pidgin\pidgin.exe
WinWait, Подтвердить переход в немой режим
WinActive()
Click 240, 370
Click 240, 370
ExitApp</code></pre></div><p>Почему нет даже ни одного клика? Хотя курсор(указатель мышки) позиционируется правильно, т.е. на кнопке <strong>ОК</strong></p>]]></content>
			<author>
				<name><![CDATA[Indomito]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=27285</uri>
			</author>
			<updated>2012-03-19T12:52:29Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=58055#p58055</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Проблемы с закрытем окна Skype при переходе в немой режим]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=58040#p58040" />
			<content type="html"><![CDATA[<p>Я модифицировал код, т.к. думал что дело в скорости<br /></p><div class="codebox"><pre><code>SetTitleMatchMode, 2
Run, C:\Program Files (x86)\Pidgin\pidgin.exe

Sleep, 9000 ; 9 сек
WinWait, Подтвердить переход в немой режим
Controlsend, Больше не спрашивать, {Space}
Controlsend, OK, {Enter}

Sleep, 9000 ; 9 сек
WinWait, Подтвердить переход в немой режим
Controlsend, Больше не спрашивать, {Space}
Controlsend, OK, {Enter}</code></pre></div><p>но не помогло, т.е. два запроса он убирает, но при первом звонке появляется ещё один и как я писал выше если нажать мышкой на <strong>ОК</strong> такого не происходит.</p>]]></content>
			<author>
				<name><![CDATA[Indomito]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=27285</uri>
			</author>
			<updated>2012-03-19T07:18:11Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=58040#p58040</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Проблемы с закрытем окна Skype при переходе в немой режим]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=58039#p58039" />
			<content type="html"><![CDATA[<p><strong>Irbis</strong> не помогло, т.е. твой скрипт скрывает первый запрос, но не помогает избавиться от последующего о чём я писал в посте <strong>#28</strong></p><p>P.S. По сути то это глюк плагина или скайпа, т.е. он не верно отрабатывает первый звонок, только первый, а с остальными проблем нет.</p><p>P.P.S. Но если я мышкой два раза нажму на <strong>ОК</strong> то всё нормально, т.е. логический вывод что скрипт отрабатывает нажатие на ОК не корректно, может очень быстро, ну я не знаю почему...</p>]]></content>
			<author>
				<name><![CDATA[Indomito]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=27285</uri>
			</author>
			<updated>2012-03-19T06:48:54Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=58039#p58039</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Проблемы с закрытем окна Skype при переходе в немой режим]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=58021#p58021" />
			<content type="html"><![CDATA[<p>Возможно, проблема в том, что <strong>WinClose</strong> действует аналогично нажатию на [x], то есть окно не возвращает подтверждение запроса.<br />Попробуй использовать такую модификацию скрипта, которая нажимает чекбокс &quot;Больше не спрашивать&quot; и клавишу &quot;OK&quot;.<br /></p><div class="codebox"><pre><code>SetTitleMatchMode, 2
Run, C:\Program Files (x86)\Pidgin\pidgin.exe
WinWait, Подтвердить переход в немой режим
Controlsend, Больше не спрашивать, {Space}
Controlsend, OK, {Enter}
WinWait, Подтвердить переход в немой режим,,2
if !ErrorLevel
{
   Controlsend, Больше не спрашивать, {Space}
   Controlsend, OK, {Enter}
}</code></pre></div>]]></content>
			<author>
				<name><![CDATA[Irbis]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=27384</uri>
			</author>
			<updated>2012-03-18T15:29:14Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=58021#p58021</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Проблемы с закрытем окна Skype при переходе в немой режим]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=58007#p58007" />
			<content type="html"><![CDATA[<p>Не работает, а если стартовый скрипт модифицировать и запускать по таймеру глюков не будет? Просто если он нормально закрывает в одном случае то и должен закрывать в других, верно?<br /></p><div class="codebox"><pre><code>SetTimer, Pidgin, 250
return

Pidgin:
SetTitleMatchMode, 2
;Run, C:\Program Files (x86)\Pidgin\pidgin.exe
WinWait, Подтвердить переход в немой режим
WinClose
WinWait, Подтвердить переход в немой режим,,2
if !ErrorLevel
   WinClose
;ExitApp
return</code></pre></div>]]></content>
			<author>
				<name><![CDATA[Indomito]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=27285</uri>
			</author>
			<updated>2012-03-18T07:26:32Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=58007#p58007</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Проблемы с закрытем окна Skype при переходе в немой режим]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=57996#p57996" />
			<content type="html"><![CDATA[<p>Если кликнуть по подсвеченной команде в коде&nbsp; из сообщения #24 откроется соответствующий раздел справки.<br /></p><div class="quotebox"><blockquote><p>Period: Creates or updates a timer using this parameter as the approximate number of <em><strong>milliseconds</strong></em> that must pass since the last time the Label subroutine was started.</p></blockquote></div><p>Попробуйте и <strong>WinKill</strong> <img src="//forum.script-coding.com/img/smilies/smile.png" width="15" height="15" /></p>]]></content>
			<author>
				<name><![CDATA[creature.ws]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=26105</uri>
			</author>
			<updated>2012-03-17T19:33:53Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=57996#p57996</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Проблемы с закрытем окна Skype при переходе в немой режим]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=57994#p57994" />
			<content type="html"><![CDATA[<p>Но если окно не активно, то оно закроется через WinClose? И ещё таймер на 250 это <strong>сек</strong> или <strong>мс</strong> (в справке не указания на размерность)? <br />P.S. Вроде <strong>мс</strong> судя по примеру из другого скрипта.</p>]]></content>
			<author>
				<name><![CDATA[Indomito]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=27285</uri>
			</author>
			<updated>2012-03-17T19:22:40Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=57994#p57994</id>
		</entry>
</feed>
