<?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=11212&amp;type=atom" />
	<updated>2016-01-09T16:39:30Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.script-coding.com/viewtopic.php?id=11212</id>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Удержание клавиши только при наличии процесса]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=100227#p100227" />
			<content type="html"><![CDATA[<p><strong>teadrinker</strong><br />Поправил</p>]]></content>
			<author>
				<name><![CDATA[seriousstas]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=32974</uri>
			</author>
			<updated>2016-01-09T16:39:30Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=100227#p100227</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Удержание клавиши только при наличии процесса]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=100221#p100221" />
			<content type="html"><![CDATA[<p><span style="color: green"><strong>seriousstas</strong>, ознакомьтесь с <a href="http://forum.script-coding.com/viewtopic.php?id=6148">этой</a> темой, отредактируйте свои посты.</span></p>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2016-01-09T00:07:10Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=100221#p100221</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Удержание клавиши только при наличии процесса]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=100219#p100219" />
			<content type="html"><![CDATA[<div class="quotebox"><blockquote><p>А зачем вообще таймер, можно же сделать проверку клика по тому списку из этого плеера, если истина то во время зажатой мышки будет зажиматься ctrl.</p></blockquote></div><p>Думаю <strong>истина</strong> !</p>]]></content>
			<author>
				<name><![CDATA[seriousstas]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=32974</uri>
			</author>
			<updated>2016-01-08T22:44:47Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=100219#p100219</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Удержание клавиши только при наличии процесса]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=100216#p100216" />
			<content type="html"><![CDATA[<p>А где вообще надо эти манипуляции с ctrl?<br />В этом окне?<br /></p><div class="fancy_spoiler_switcher"><div class="fancy_spoiler_switcher_header" data-lang-open="открыть спойлер" data-lang-close="скрыть спойлер"><strong>+</strong>&nbsp;открыть спойлер</div><div class="fancy_spoiler"><p><span class="postimg"><img src="http://i.imgur.com/GqyMi0k.png" alt="http://i.imgur.com/GqyMi0k.png" /></span></p></div></div><p>Или в этом?<br /></p><div class="fancy_spoiler_switcher"><div class="fancy_spoiler_switcher_header" data-lang-open="открыть спойлер" data-lang-close="скрыть спойлер"><strong>+</strong>&nbsp;открыть спойлер</div><div class="fancy_spoiler"><p><span class="postimg"><img src="http://i.imgur.com/n7GJtMc.png" alt="http://i.imgur.com/n7GJtMc.png" /></span></p></div></div>]]></content>
			<author>
				<name><![CDATA[yalanne]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=32850</uri>
			</author>
			<updated>2016-01-08T18:42:32Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=100216#p100216</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Удержание клавиши только при наличии процесса]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=100214#p100214" />
			<content type="html"><![CDATA[<p>А зачем вообще таймер, можно же сделать проверку клика по тому списку из этого плеера, если истина то во время зажатой мышки будет зажиматься ctrl.</p>]]></content>
			<author>
				<name><![CDATA[yalanne]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=32850</uri>
			</author>
			<updated>2016-01-08T17:59:25Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=100214#p100214</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Удержание клавиши только при наличии процесса]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=100212#p100212" />
			<content type="html"><![CDATA[<p><strong>yalanne</strong><br />Спасибо огромное&nbsp; -понадобился для плеера foobar2000 ,<br />для выделения треков кнопкой , будет достаточно :<br /></p><div class="codebox"><pre><code>TimeWait := 10000 ; 10 сек.
WinExist(&quot;ahk_exe foobar2000.exe&quot;)
Send {Ctrl Down}
SetTimer keyUp,-%TimeWait%
WinWaitClose
keyUp:
Send {Ctrl Up}
ExitApp</code></pre></div><p>Вот попутно ещё&nbsp; вопрос возник (извините&nbsp; - только знакомлюсь ...):<br />может получится ещё поднять ctrl&nbsp; , при движении мышкой вверх-вниз с зажатой левой кнопкой . Идея такая просто клик - выделение , движение - отпускать Ctrl - мотать плейлист(мотается с удержанием ЛКМ для использования с тачскрином) . <br />Ну и ещё(необязательно) , может даже из области фантастики&nbsp; - при каждом левом клике добавлять в таймер две секунды.</p>]]></content>
			<author>
				<name><![CDATA[seriousstas]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=32974</uri>
			</author>
			<updated>2016-01-08T17:25:17Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=100212#p100212</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Удержание клавиши только при наличии процесса]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=100206#p100206" />
			<content type="html"><![CDATA[<div class="codebox"><pre><code>TimeWait := 3000 ; 3 сек.

#Persistent
WinWait ahk_exe notepad.exe
WinExist(&quot;ahk_exe MyProg.exe&quot;)

Send {Ctrl Down}
SetTimer keyUp,-%TimeWait%
WinWaitClose
keyUp:
Send {Ctrl Up}
ExitApp</code></pre></div>]]></content>
			<author>
				<name><![CDATA[yalanne]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=32850</uri>
			</author>
			<updated>2016-01-08T09:36:48Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=100206#p100206</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[AHK: Удержание клавиши только при наличии процесса]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=100204#p100204" />
			<content type="html"><![CDATA[<p>Нужно удержать определённое время <em>Ctrl </em> - только при наличии процесса (MyProg.exe) , либо (при отсутствии) отпустить и закрыть скрипт.<br />Подскажите , может в цикле как-то можно , пока только это на ум пришло (пример для 3 сек с проверкой каждую сек): <br /></p><div class="codebox"><pre><code>#SingleInstance force
Send {Ctrl Up}
SetKeyDelay,, 1000
Send {Ctrl}
Process, Exist, MyProg.exe
If ! errorLevel
     ExitApp
     SetKeyDelay,, 1000
Send {Ctrl}
Process, Exist, MyProg.exe
If ! errorLevel
     ExitApp
     SetKeyDelay,, 1000
Send {Ctrl}
Process, Exist, MyProg.exe
If ! errorLevel
     ExitApp</code></pre></div>]]></content>
			<author>
				<name><![CDATA[seriousstas]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=32974</uri>
			</author>
			<updated>2016-01-08T04:37:23Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=100204#p100204</id>
		</entry>
</feed>
