<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Серый форум &mdash; AHK: Активация/Запуск окна по WinExist/WinActivate по Title]]></title>
	<link rel="self" href="https://forum.script-coding.com/extern.php?action=feed&amp;tid=15906&amp;type=atom" />
	<updated>2020-12-11T21:19:38Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.script-coding.com/viewtopic.php?id=15906</id>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Активация/Запуск окна по WinExist/WinActivate по Title]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=144125#p144125" />
			<content type="html"><![CDATA[<p>Заработали оба скрипта.</p><br /><p>из поста 11 <a href="http://forum.script-coding.com/viewtopic.php?pid=144078#p144078">http://forum.script-coding.com/viewtopi … 78#p144078</a></p><p>и из поста 26 <a href="http://forum.script-coding.com/viewtopic.php?pid=144105#p144105">http://forum.script-coding.com/viewtopi … 05#p144105</a></p><br /><p>я их вставлял в тело своего старого ahk, там много всего, в том числе в начале было включение и фиксация NumLock:</p><div class="codebox"><pre><code>SetNumLockState, ON       ; Set NumLock ON
NumLock::Return           ; Lock NumLock Key</code></pre></div><br /><p>если убрать эти две строки(фиксацию NumLock), скрипты <strong>__Михаил__</strong> и <strong>teadrinker</strong> работают.</p><br /><p>также попробовал убрать галку с пункта: <strong>Выводить полный путь в заголовке окна</strong> и сразу заработал мой скрипт, ибо &quot;Title&quot; стал уникальным для каждого окна.</p><p>либо, как сказал <strong>stealzy</strong> использовать SetTitleMatchMode режиме 3.</p><p>Век живи - век учись, спасибо всем!)</p>]]></content>
			<author>
				<name><![CDATA[timinlight]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=41289</uri>
			</author>
			<updated>2020-12-11T21:19:38Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=144125#p144125</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Активация/Запуск окна по WinExist/WinActivate по Title]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=144121#p144121" />
			<content type="html"><![CDATA[<p><strong>timinlight</strong></p><p><a href="https://g-ek.com/windows10-polnyij-put-k-papkam-v-stroke-zagolovka">Как заставить Проводник Windows 10 показывать полный путь к папкам в строке заголовка.</a></p><p><strong>teadrinker</strong></p><p>Я в настройки даже не лез, думаю это сборка винды такая по умолчанию.</p>]]></content>
			<author>
				<name><![CDATA[__Михаил__]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=40928</uri>
			</author>
			<updated>2020-12-11T17:26:59Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=144121#p144121</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Активация/Запуск окна по WinExist/WinActivate по Title]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=144120#p144120" />
			<content type="html"><![CDATA[<p>Ну, скрипт же не только у вас должен работать. <img src="//forum.script-coding.com/img/smilies/wink.png" width="15" height="15" /></p>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2020-12-11T17:25:38Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=144120#p144120</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Активация/Запуск окна по WinExist/WinActivate по Title]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=144119#p144119" />
			<content type="html"><![CDATA[<p><strong>teadrinker</strong></p><p>У меня полный путь к папке указывается.</p>]]></content>
			<author>
				<name><![CDATA[__Михаил__]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=40928</uri>
			</author>
			<updated>2020-12-11T17:24:04Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=144119#p144119</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Активация/Запуск окна по WinExist/WinActivate по Title]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=144105#p144105" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>__Михаил__ пишет:</cite><blockquote><p>который должен срабатывать. Разве нет?</p></blockquote></div><p>Не обязательно. Не знаю, как у вас, но у меня в заголовке окна проводника на Windows 10 только имя папки, а не полный путь.<br />Можно так:<br /></p><div class="codebox"><pre><code>Folders := {Q: &quot;D:\GoogleDrive&quot;, 1: &quot;D:\GoogleDrive\1&quot;, 2: &quot;D:\GoogleDrive\1\1&quot;}

!Q::
!1::
!2::
   folderPath := Folders[ SubStr(A_ThisHotkey, 2) ]
   if WinExist( &quot;ahk_id&quot; . GetFolderHwnd(folderPath) )
      WinActivate
   else
      Run, % folderPath
   Return

GetFolderHwnd(FolderPath)
{
   for item in ComObjCreate(&quot;Shell.Application&quot;).Windows
      if (item.Document.Folder.Self.Path = FolderPath)
         Return item.hwnd
}</code></pre></div>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2020-12-10T23:39:46Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=144105#p144105</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Активация/Запуск окна по WinExist/WinActivate по Title]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=144102#p144102" />
			<content type="html"><![CDATA[<p>По-моему тут уже ничего не поможет - TC просто игнорит код из <a href="http://forum.script-coding.com/viewtopic.php?pid=144078#p144078">11</a> сообщения, который должен срабатывать. Разве нет? Видео записать, анимацию?</p>]]></content>
			<author>
				<name><![CDATA[__Михаил__]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=40928</uri>
			</author>
			<updated>2020-12-10T20:24:59Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=144102#p144102</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Активация/Запуск окна по WinExist/WinActivate по Title]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=144101#p144101" />
			<content type="html"><![CDATA[<p><strong>timinlight</strong>, прочитайте про <em>SetTitleMatchMode</em>. По умолчанию стоит нестрогий поиск, совпадение по началу заголовка. Вам нужен режим 3.<br />И убедитесь, что заголовок определен правильно с помощью Window Spy (Пуск → AutoHotkey → ).</p>]]></content>
			<author>
				<name><![CDATA[stealzy]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=31937</uri>
			</author>
			<updated>2020-12-10T19:49:13Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=144101#p144101</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Активация/Запуск окна по WinExist/WinActivate по Title]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=144099#p144099" />
			<content type="html"><![CDATA[<p>для простоты пока пусть будут такие:</p><p>D:\GoogleDrive<br />D:\GoogleDrive\1<br />D:\GoogleDrive\1\1</p><br /><p>скрипт для них я считаю правильный, надо только чтобы они активировались нормально.</p><br /><div class="codebox"><pre><code>!sc010::                                              ; Alt+Q активирует/запускает окно &quot;D:\GoogleDrive&quot;         Title: &quot;D:\GoogleDrive&quot;
if WinExist(&quot;D:\GoogleDrive&quot;)
    WinActivate 
else
    Run, D:\GoogleDrive
Return

!sc002::                                              ; Alt+1 активирует/запускает окно &quot;D:\GoogleDrive\1&quot;       Title: &quot;D:\GoogleDrive\1&quot;
 if WinExist(&quot;D:\GoogleDrive\1&quot;)
    WinActivate
   else
 Run, D:\GoogleDrive\1                                                          
Return

!sc003::                                              ; Alt+2 активирует/запускает окно &quot;D:\GoogleDrive\1\1&quot;     Title: &quot;D:\GoogleDrive\1\1&quot;
 if WinExist(&quot;D:\GoogleDrive\1\1&quot;)
    WinActivate
   else
 Run, D:\GoogleDrive\1\1                           
Return
</code></pre></div>]]></content>
			<author>
				<name><![CDATA[timinlight]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=41289</uri>
			</author>
			<updated>2020-12-10T19:26:30Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=144099#p144099</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Активация/Запуск окна по WinExist/WinActivate по Title]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=144096#p144096" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>timinlight пишет:</cite><blockquote><div class="codebox"><pre><code>D:\GoogleDrive\F1
D:\GoogleDrive\F2
D:\GoogleDrive\F2

D:\GoogleDrive\F1\F1
D:\GoogleDrive\F2\F2
D:\GoogleDrive\F3\F3</code></pre></div></blockquote></div><p>А в первом сообщении в скрипте написано<br /></p><div class="codebox"><pre><code>D:\GoogleDrive\1
...
D:\GoogleDrive\2
...
D:\GoogleDrive\1\1
D:\GoogleDrive\2\2
D:\GoogleDrive\3\3</code></pre></div><p>Так как всё-таки должны называться папки?</p>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2020-12-10T19:02:43Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=144096#p144096</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Активация/Запуск окна по WinExist/WinActivate по Title]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=144095#p144095" />
			<content type="html"><![CDATA[<p>Запустите мой скрипт у себя, создайте такие же папки и всё увидите.</p>]]></content>
			<author>
				<name><![CDATA[timinlight]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=41289</uri>
			</author>
			<updated>2020-12-10T18:50:46Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=144095#p144095</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Активация/Запуск окна по WinExist/WinActivate по Title]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=144094#p144094" />
			<content type="html"><![CDATA[<p>Да, октрывает.</p><p>Посмотрите седьмое сообщение, там внизу я всё описал:</p><p>Запускается всё норм, если окна не существуют. Если существуют, начинается чехарда, ибо часть Title совпадает и окна не переключаются по своим горячим клавишам.</p><p>http://forum.script-coding.com/viewtopic.php?pid=144072#p144072</p>]]></content>
			<author>
				<name><![CDATA[timinlight]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=41289</uri>
			</author>
			<updated>2020-12-10T18:49:44Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=144094#p144094</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Активация/Запуск окна по WinExist/WinActivate по Title]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=144093#p144093" />
			<content type="html"><![CDATA[<div class="codebox"><pre><code>Run D:\GoogleDrive</code></pre></div><p>Такой код открывает папку?</p>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2020-12-10T18:43:56Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=144093#p144093</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Активация/Запуск окна по WinExist/WinActivate по Title]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=144092#p144092" />
			<content type="html"><![CDATA[<p>и ещё две папки, одна в одной:</p><p>D:\GoogleDrive\1<br />D:\GoogleDrive\1\1</p>]]></content>
			<author>
				<name><![CDATA[timinlight]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=41289</uri>
			</author>
			<updated>2020-12-10T18:42:45Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=144092#p144092</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Активация/Запуск окна по WinExist/WinActivate по Title]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=144090#p144090" />
			<content type="html"><![CDATA[<p>Версия 1.1.33.02 unicode 64 bit,&nbsp; последняя т.е.</p><p>папка Гугл Диска у меня расположена на диске D.&nbsp; </p><p>D:\GoogleDrive</p>]]></content>
			<author>
				<name><![CDATA[timinlight]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=41289</uri>
			</author>
			<updated>2020-12-10T18:40:14Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=144090#p144090</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Активация/Запуск окна по WinExist/WinActivate по Title]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=144083#p144083" />
			<content type="html"><![CDATA[<p>Скорее всего нужно <em>Google Drive</em> вместо <em>GoogleDrive</em>, если речь идёт о папке Гугл диска.</p>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2020-12-10T16:27:10Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=144083#p144083</id>
		</entry>
</feed>
