<?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=16670&amp;type=atom" />
	<updated>2021-10-22T06:56:38Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.script-coding.com/viewtopic.php?id=16670</id>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Замена запятой на точку и ввод "і" и "ї" из русской раскладки.]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=150188#p150188" />
			<content type="html"><![CDATA[<p><strong>stuermer</strong>, в некотором роде. <br /></p><div class="quotebox"><blockquote><p>Если в скрипте нет горячих клавиш или горячих строк, процесс скрипта завершится на Exit или return из раздела автоматического выполнения. Эта директива предотвращает это.</p></blockquote></div>]]></content>
			<author>
				<name><![CDATA[Alexey_cake]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=42025</uri>
			</author>
			<updated>2021-10-22T06:56:38Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=150188#p150188</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Замена запятой на точку и ввод "і" и "ї" из русской раскладки.]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=150186#p150186" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>Alexey_cake пишет:</cite><blockquote><p>Цикл тоже был лишний, как оказалось, он тут не нужен.</p></blockquote></div><p>Директива <a href="https://ahk-wiki.ru/persistent">#Persistent</a> делает его цикличным, я правильно понимаю?</p>]]></content>
			<author>
				<name><![CDATA[stuermer]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=42062</uri>
			</author>
			<updated>2021-10-21T13:12:51Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=150186#p150186</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Замена запятой на точку и ввод "і" и "ї" из русской раскладки.]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=150180#p150180" />
			<content type="html"><![CDATA[<p><strong>stuermer</strong>, да, ты прав. Можно обойтись без условия для другого языка, так, как он не фигурирует нигде. Я просто скопировал старый шаблон. Удали просто эти строки, если хочешь.<br />Цикл тоже был лишний, как оказалось, он тут не нужен.</p><div class="quotebox"><blockquote><p>&quot;SendMode Input&quot; не помешает</p></blockquote></div><p>Можешь добавить, если хочешь.<br /></p><div class="quotebox"><blockquote><p>&quot;Send,&quot; можно писать без запятой.</p></blockquote></div><p>Можешь убрать запятую, если мешает.</p>]]></content>
			<author>
				<name><![CDATA[Alexey_cake]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=42025</uri>
			</author>
			<updated>2021-10-21T03:27:23Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=150180#p150180</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Замена запятой на точку и ввод "і" и "ї" из русской раскладки.]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=150155#p150155" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>Alexey_cake пишет:</cite><blockquote><p>А есть необходимость в первых двух строчках?</p></blockquote></div><p>&quot;SendMode Input&quot; <a href="https://ahk-wiki.ru/send">не помешает</a>,<br />&quot;Send,&quot; можно писать <a href="https://ahk-wiki.ru/send">без запятой</a>.</p>]]></content>
			<author>
				<name><![CDATA[stuermer]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=42062</uri>
			</author>
			<updated>2021-10-20T15:32:32Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=150155#p150155</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Замена запятой на точку и ввод "і" и "ї" из русской раскладки.]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=150153#p150153" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>Alexey_cake пишет:</cite><blockquote><p><strong>stuermer</strong>, пардон, не до конца внимательно прочитал, что именно нужно было. <br />Немного подправил - всё работает, как надо.<br /></p><div class="codebox"><pre><code>#Persistent

NumpadDot:: ; ввод точки вместо запятой на нампаде
Send, .
return

RU() ; Проверка языка ввода.
{
    WinID := WinExist(&quot;A&quot;)
    ThreadID := DllCall(&quot;GetWindowThreadProcessId&quot;, &quot;UInt&quot;, WinID, &quot;UInt&quot;, 0)
    InputLocaleID := DllCall(&quot;GetKeyboardLayout&quot;, &quot;UInt&quot;, ThreadID, &quot;UInt&quot;)
    If InputLocaleID = 0x4190419
        Return True
    Else
        Return False
}

      
    &lt;!sc1F::
        if RU() = 1
            Send, i ; если русский язык, то ввод i
        if RU() = 0
            Send, s ;если другой язык, то ввод s
    return
    
    &lt;!+sc1F:: 
        if RU() = 1
            Send, I ;если русский язык, то ввод I
        if RU() = 0
            Send, S ;если другой язык, то ввод S
    return
    
    &lt;!sc1B::
        if RU() = 1
            Send, ї ; если русский язык, то ввод i
        
    return
    &lt;!+sc1B:: 
        if RU() = 1
            Send, Ї ;если русский язык, то ввод I
        
    return</code></pre></div></blockquote></div><p>Ок, а почему для i есть латинский кейс, а для ї - нет?<br />Еще непонятно, почему цикла нет. Он же закончится после одного нажатия.</p>]]></content>
			<author>
				<name><![CDATA[stuermer]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=42062</uri>
			</author>
			<updated>2021-10-20T13:17:54Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=150153#p150153</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Замена запятой на точку и ввод "і" и "ї" из русской раскладки.]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=150152#p150152" />
			<content type="html"><![CDATA[<p><strong>Alexey_cake</strong> Понял, спасибо.</p>]]></content>
			<author>
				<name><![CDATA[stuermer]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=42062</uri>
			</author>
			<updated>2021-10-20T13:06:51Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=150152#p150152</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Замена запятой на точку и ввод "і" и "ї" из русской раскладки.]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=150151#p150151" />
			<content type="html"><![CDATA[<p>А есть необходимость в первых двух строчках?</p><p>- &quot;Встретились два одиночества&quot;.<br />Над нами сейчас &quot;тутошние&quot; гуру надорвут живот.</p><div class="codebox"><pre><code>NumpadDot:: ; тут просто создается бинд на клавишу
Send, . ; тут не ищется запятая, вообще ничего не ищется. Просто при нажатии клавиши вставляется необходимый символ, то есть точка.
return</code></pre></div>]]></content>
			<author>
				<name><![CDATA[Alexey_cake]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=42025</uri>
			</author>
			<updated>2021-10-20T11:40:33Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=150151#p150151</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Замена запятой на точку и ввод "і" и "ї" из русской раскладки.]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=150150#p150150" />
			<content type="html"><![CDATA[<p><strong>stuermer</strong>, пардон, не до конца внимательно прочитал, что именно нужно было. <br />Немного подправил - всё работает, как надо.<br /></p><div class="codebox"><pre><code>#Persistent

NumpadDot:: ; ввод точки вместо запятой на нампаде
Send, .
return

RU() ; Проверка языка ввода.
{
    WinID := WinExist(&quot;A&quot;)
    ThreadID := DllCall(&quot;GetWindowThreadProcessId&quot;, &quot;UInt&quot;, WinID, &quot;UInt&quot;, 0)
    InputLocaleID := DllCall(&quot;GetKeyboardLayout&quot;, &quot;UInt&quot;, ThreadID, &quot;UInt&quot;)
    If InputLocaleID = 0x4190419
        Return True
    Else
        Return False
}

      
    &lt;!sc1F::
        if RU() = 1
            Send, i ; если русский язык, то ввод i
        if RU() = 0
            Send, s ;если другой язык, то ввод s
    return
    
    &lt;!+sc1F:: 
        if RU() = 1
            Send, I ;если русский язык, то ввод I
        if RU() = 0
            Send, S ;если другой язык, то ввод S
    return
    
    &lt;!sc1B::
        if RU() = 1
            Send, ї ; если русский язык, то ввод i
        
    return
    &lt;!+sc1B:: 
        if RU() = 1
            Send, Ї ;если русский язык, то ввод I
        
    return</code></pre></div>]]></content>
			<author>
				<name><![CDATA[Alexey_cake]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=42025</uri>
			</author>
			<updated>2021-10-20T11:38:16Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=150150#p150150</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Замена запятой на точку и ввод "і" и "ї" из русской раскладки.]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=150148#p150148" />
			<content type="html"><![CDATA[<p><strong>Alexey_cake</strong><br />Не программист, но хочу понять логику этого синтаксиса. В этой <a href="https://webtous.ru/poleznye-sovety/kak-pomenyat-raskladku-klaviatury-nazhatiem-vsego-odnoj-klavishi.html">статье</a> написано:</p><div class="codebox"><pre><code>;Создадим макрос для смены раскладки клавиатуры при нажатии Caps Lock. Он будет выглядеть следующим образом:

SendMode Input
SetWorkingDir %A_ScriptDir%

CapsLock::Send, {Alt Down}{Shift Down}{Shift Up}{Alt Up}</code></pre></div><p>Тут есть директива &quot;Send,&quot; с запятой. У тебя она тоже есть с запятой. Тогда как у тебя скрипт находит символ запятой? И почему у тебя нет первых двух строчек?</p>]]></content>
			<author>
				<name><![CDATA[stuermer]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=42062</uri>
			</author>
			<updated>2021-10-20T11:24:12Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=150148#p150148</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Замена запятой на точку и ввод "і" и "ї" из русской раскладки.]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=150147#p150147" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>Alexey_cake пишет:</cite><blockquote><p><strong>stuermer</strong>, здравствуй. Я тоже не программист, но кое-что получилось сделать:</p></blockquote></div><p>Здравствуй, спасибо, попробую!</p>]]></content>
			<author>
				<name><![CDATA[stuermer]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=42062</uri>
			</author>
			<updated>2021-10-20T11:00:43Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=150147#p150147</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Замена запятой на точку и ввод "і" и "ї" из русской раскладки.]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=150146#p150146" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>teadrinker пишет:</cite><blockquote><p>не торопитесь отвечать до внесения автором исправлений.</p></blockquote></div><p>Хорошо, исправлюсь.</p>]]></content>
			<author>
				<name><![CDATA[Alexey_cake]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=42025</uri>
			</author>
			<updated>2021-10-20T10:29:01Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=150146#p150146</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Замена запятой на точку и ввод "і" и "ї" из русской раскладки.]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=150145#p150145" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>stuermer пишет:</cite><blockquote><p>Где точки нет и буквы маленькие??</p></blockquote></div><div class="quotebox"><cite>stuermer пишет:</cite><blockquote><p>я не программист</p></blockquote></div><p>Где здесь заглавная буква и точка, не подскажете? Если думаете, что орфографию нужно соблюдать только в первом посте, то это не так.<br /><strong>Alexey_cake</strong>, на будущее, если было сделано замечание по оформлению, не торопитесь отвечать до внесения автором исправлений.</p>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2021-10-20T10:27:18Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=150145#p150145</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Замена запятой на точку и ввод "і" и "ї" из русской раскладки.]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=150144#p150144" />
			<content type="html"><![CDATA[<p><strong>stuermer</strong>, здравствуй. Я тоже не программист, но кое-что получилось сделать:<br /></p><div class="codebox"><pre><code>#Persistent

NumpadDot:: ; ввод точки вместо запятой на нампаде
Send, .
return

RU() ; Проверка языка ввода.
{
    WinID := WinExist(&quot;A&quot;)
    ThreadID := DllCall(&quot;GetWindowThreadProcessId&quot;, &quot;UInt&quot;, WinID, &quot;UInt&quot;, 0)
    InputLocaleID := DllCall(&quot;GetKeyboardLayout&quot;, &quot;UInt&quot;, ThreadID, &quot;UInt&quot;)
    If InputLocaleID = 0x4190419
        Return True
    Else
        Return False
}

loop
{
    sleep 100
      
    &lt;!s::
        if RU() = 1
            Send, i ; если русский язык, то ввод i
        if RU() = 0
            Send, s ;если другой язык, то ввод s
    return
    &lt;!+s:: 
        if RU() = 1
            Send, I ;если русский язык, то ввод I
        if RU() = 0
            Send, S ;если другой язык, то ввод S
    return

}

</code></pre></div>]]></content>
			<author>
				<name><![CDATA[Alexey_cake]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=42025</uri>
			</author>
			<updated>2021-10-20T09:54:02Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=150144#p150144</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Замена запятой на точку и ввод "і" и "ї" из русской раскладки.]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=150143#p150143" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>teadrinker пишет:</cite><blockquote><p>Обратите внимание на&nbsp; заглавные буквы в начале и точки в конце предложений.</p></blockquote></div><p>Где точки нет и буквы маленькие??</p>]]></content>
			<author>
				<name><![CDATA[stuermer]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=42062</uri>
			</author>
			<updated>2021-10-20T08:40:43Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=150143#p150143</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Замена запятой на точку и ввод "і" и "ї" из русской раскладки.]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=150140#p150140" />
			<content type="html"><![CDATA[<p>Тогда сначала придётся ознакомиться с <a href="https://forum.script-coding.com/misc.php?action=rules">правилами</a> и отредактировать свой пост. Обратите внимание на&nbsp; заглавные <a href="https://forum.script-coding.com/misc.php?action=rules#literacy">буквы</a> в начале и точки в конце предложений.<br />Потом подумайте, насколько оно вам нужно, и создайте пост в коммерческом разделе.</p>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2021-10-19T16:46:59Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=150140#p150140</id>
		</entry>
</feed>
