<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Серый форум &mdash; AHK: Checked Listview Space выделяет только один элементов]]></title>
	<link rel="self" href="https://forum.script-coding.com/extern.php?action=feed&amp;tid=16057&amp;type=atom" />
	<updated>2021-02-06T21:07:53Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.script-coding.com/viewtopic.php?id=16057</id>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Checked Listview Space выделяет только один элементов]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=145978#p145978" />
			<content type="html"><![CDATA[<p>Да через пробел норм.</p>]]></content>
			<author>
				<name><![CDATA[Gh0sTG0]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=39523</uri>
			</author>
			<updated>2021-02-06T21:07:53Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=145978#p145978</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Checked Listview Space выделяет только один элементов]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=145971#p145971" />
			<content type="html"><![CDATA[<p>Можно попробовать через отрицание<br /></p><div class="codebox"><pre><code>
		If (not GetKeyState(&quot;W&quot;,&quot;P&quot;))
break
else
			Loop
		    {
				RowNumber := LV_GetNext(RowNumber)
				if not RowNumber
				        break
			    LV_Modify(RowNumber, &quot;+Check&quot;)
		    }
Return</code></pre></div>]]></content>
			<author>
				<name><![CDATA[Lolykroly]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=41424</uri>
			</author>
			<updated>2021-02-06T20:46:45Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=145971#p145971</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Checked Listview Space выделяет только один элементов]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=145968#p145968" />
			<content type="html"><![CDATA[<p>В справке думаю лучше написано чем я могу объяснить <a href="https://www.autohotkey.com/docs/Variables.htm#GuiEvent">A_GuiEvent</a>.</p>]]></content>
			<author>
				<name><![CDATA[__Михаил__]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=40928</uri>
			</author>
			<updated>2021-02-06T20:18:35Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=145968#p145968</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Checked Listview Space выделяет только один элементов]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=145965#p145965" />
			<content type="html"><![CDATA[<p><strong>__Михаил__</strong><br />Т.е. guievent не перехватывает эту функцию?</p>]]></content>
			<author>
				<name><![CDATA[Gh0sTG0]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=39523</uri>
			</author>
			<updated>2021-02-06T19:56:38Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=145965#p145965</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Checked Listview Space выделяет только один элементов]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=145950#p145950" />
			<content type="html"><![CDATA[<p>ListView является списком, в котором можно при нажатии клавиш находить элементы. Если первая буква / цифра нажатой клавиши не нашлось - произойдёт уведомление звуком, звук можно отключить в настройках микшера звука - &#039;Системные звуки&#039;, через трей.</p>]]></content>
			<author>
				<name><![CDATA[__Михаил__]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=40928</uri>
			</author>
			<updated>2021-02-06T16:34:16Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=145950#p145950</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Checked Listview Space выделяет только один элементов]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=145906#p145906" />
			<content type="html"><![CDATA[<p><strong>__Михаил__</strong><br />Ок. Походу разобрался, буду тыкаться дальше. Спасибо.<br /></p><div class="codebox"><pre><code>Gui, Add, ListView, w1288 h870 AltSubmit Checked glwFileList, Way

...

lwFileList:
	if A_GuiEvent = K
	{
		If GetKeyState(&quot;W&quot;,&quot;P&quot;)
			Loop
		    {
				RowNumber := LV_GetNext(RowNumber)
				if not RowNumber
				        break
			    LV_Modify(RowNumber, &quot;+Check&quot;)
		    }
	}
Return</code></pre></div><p>Похоже работает.</p><p>Upd:<br />Исправил код, вот так все прямо работает, да.</p><p>PS осталось понять как сделать чтобы он при нажатии на W не бдзинькал каждый раз, да... Пока буду использовать Space, он молчит.</p>]]></content>
			<author>
				<name><![CDATA[Gh0sTG0]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=39523</uri>
			</author>
			<updated>2021-02-05T20:27:37Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=145906#p145906</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Checked Listview Space выделяет только один элементов]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=145904#p145904" />
			<content type="html"><![CDATA[<p>Использовать нужно это &#039;LV_GetNext([StartingRowNumber, &quot;Checked&quot;])&#039;, тогда будет брать отмеченные элементы. Всё определяет, но пробел использовать наверно не лучший вариант для мульти выделения.</p>]]></content>
			<author>
				<name><![CDATA[__Михаил__]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=40928</uri>
			</author>
			<updated>2021-02-05T20:11:05Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=145904#p145904</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Checked Listview Space выделяет только один элементов]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=145903#p145903" />
			<content type="html"><![CDATA[<p>Как мне известно, есть вариант получить список выделенных элементов, это позволит поставить отметки на них. Но вероятно только через костыль - перехват клавиши пробел.</p>]]></content>
			<author>
				<name><![CDATA[__Михаил__]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=40928</uri>
			</author>
			<updated>2021-02-05T19:52:57Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=145903#p145903</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Checked Listview Space выделяет только один элементов]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=145902#p145902" />
			<content type="html"><![CDATA[<p><strong>__Михаил__</strong><br />Я читал ту справку... И даже сейчас перечитал дважды, понятия не имею про что ты...<br />Можешь цитату?</p>]]></content>
			<author>
				<name><![CDATA[Gh0sTG0]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=39523</uri>
			</author>
			<updated>2021-02-05T19:38:18Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=145902#p145902</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Checked Listview Space выделяет только один элементов]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=145901#p145901" />
			<content type="html"><![CDATA[<p>Думаю <a href="https://ahk-wiki.ru/listview#intro">справку</a> нужно читать и примеры использовать, иначе так своей программы не сделать.</p>]]></content>
			<author>
				<name><![CDATA[__Михаил__]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=40928</uri>
			</author>
			<updated>2021-02-05T19:27:04Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=145901#p145901</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[AHK: Checked Listview Space выделяет только один элементов]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=145900#p145900" />
			<content type="html"><![CDATA[<p>Всем привет.<br />Использую:<br /></p><div class="codebox"><pre><code>Gui, Add, ListView, w1288 h870 Checked glwFileList, Way</code></pre></div><p>Дальше в Gui я выделяю, допустим, 5 элементов. Нажимаю на пробел и галочка появляется только на последнем.<br />Т.е. я делаю:<br />1) лкм на первый,<br />2) шифт зажать,<br />3) лкм на последний,<br />4) шифт отжать,<br />5) нажать пробел.<br />После чего галочка появляется только на том файле в который я ткнул в п.3, остальные 4 остаются выделенными но без галочек.<br />Можно ли как то сделать чтобы п.5 ставил галочки на всех выделенных файлах?<br />Искать пробовал, но походу как то формулирую не правильно...</p>]]></content>
			<author>
				<name><![CDATA[Gh0sTG0]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=39523</uri>
			</author>
			<updated>2021-02-05T19:11:44Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=145900#p145900</id>
		</entry>
</feed>
