<?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=6177&amp;type=atom" />
	<updated>2011-09-05T08:22:44Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.script-coding.com/viewtopic.php?id=6177</id>
		<entry>
			<title type="html"><![CDATA[Re: AHK: при изменении раскладки меняется вид каретки]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=51213#p51213" />
			<content type="html"><![CDATA[<p>Моя ошибка - напутал в терминалогии. Задача стояла изменить внешний вид текстового курсора.<br />У каретки, насколько я понимаю, можно изменить только частоту моргания, что не работает, увы, <br />в FF, так что основной смысл теряется. Я задал вопрос в поддержке FF, и вот что мне ответили:</p><p><a href="https://support.mozilla.com/ru/questions/870784#answers">https://support.mozilla.com/ru/questions/870784#answers</a></p>]]></content>
			<author>
				<name><![CDATA[Kamagi]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=27024</uri>
			</author>
			<updated>2011-09-05T08:22:44Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=51213#p51213</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: при изменении раскладки меняется вид каретки]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=51196#p51196" />
			<content type="html"><![CDATA[<p>Честно говоря, про каретку там не нашёл, там есть про курсор <em>Ibeam</em>. Курсор и каретка — не одно и то же.</p>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2011-09-04T20:07:30Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=51196#p51196</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: при изменении раскладки меняется вид каретки]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=51137#p51137" />
			<content type="html"><![CDATA[<p>Нашел решение. Стоило поискать подольше и вот оно, здесь, на форуме.</p><p><a href="http://forum.script-coding.com/viewtopic.php?id=5108">http://forum.script-coding.com/viewtopic.php?id=5108</a></p><p>ID для текстового курсора - 32513</p><p>Можно, пожалуй, даже шлёпнуть тему.</p>]]></content>
			<author>
				<name><![CDATA[Kamagi]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=27024</uri>
			</author>
			<updated>2011-09-03T17:03:03Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=51137#p51137</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: при изменении раскладки меняется вид каретки]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=51136#p51136" />
			<content type="html"><![CDATA[<p>Ну а теперь прошу прощения :)</p>]]></content>
			<author>
				<name><![CDATA[Kamagi]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=27024</uri>
			</author>
			<updated>2011-09-03T15:50:00Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=51136#p51136</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: при изменении раскладки меняется вид каретки]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=51123#p51123" />
			<content type="html"><![CDATA[<p><span style="color: green"><strong>Kamagi</strong>, в заголовке темы замени &quot; Прошу помочь - &quot; на &quot;AHK: &quot;. <a href="http://forum.script-coding.com/viewtopic.php?pid=44437#p44437">Как правильно называть темы.</a></span></p>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2011-09-03T06:16:47Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=51123#p51123</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[AHK: при изменении раскладки меняется вид каретки]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=51122#p51122" />
			<content type="html"><![CDATA[<p>Приветствую! </p><p>Для изменения раскладки клавиатуры я использую скрипт, который еще и меняет внешний вид курсора<br />(ножка стрелки закрашивается черным - не режет глаз, привычно и сразу понятно, какая раскладка). <br />Это полезно и удобно, но если бы менялся внешний вид каретки (выглядит как заглавная англ &quot;и&quot; - I), <br />было бы просто шикарно. </p><p>Насколько я понимаю, принцип тот же, что и при смене курсора - <br />стандартный виндусовый файл с курсором меняется на мой. <br />Часть скрипта, меняющая вид курсора взял отсюда - <a href="http://www.autohotkey.com/forum/topic35600.html&amp;highlight=caret">http://www.autohotkey.com/forum/topic35 … ight=caret</a><br />Но про каретку там ничего. Идеи?</p><div class="codebox"><pre><code>RCtrl::
  SetFormat, Integer, H
  Locale1=0x4090409  ; Английский (американский).
  Locale2=0x4190419  ; Русский.
  WinGet, WinID,, A
  ThreadID:=DllCall(&quot;GetWindowThreadProcessId&quot;, &quot;Int&quot;, WinID, &quot;Int&quot;, &quot;0&quot;)
  InputLocaleID:=DllCall(&quot;GetKeyboardLayout&quot;, &quot;Int&quot;, ThreadID)
  if(InputLocaleID=Locale1)
{
    SendMessage, 0x50,, % Locale2,, A
    Cursor = %A_ScriptDir%\1.cur
    CursorHandle := DllCall( &quot;LoadCursorFromFile&quot;, Str,Cursor )
    Cursors = 32512,32513,32514,32515,32516,32640,32641,32642,32643,32644,32645,32646,32648,32649,32650,32651
    Loop, Parse, Cursors, `,
        {
    DllCall( &quot;SetSystemCursor&quot;, Uint,CursorHandle, Int,A_Loopfield )
        }
    Return
}
  else if(InputLocaleID=Locale2)
{
    SendMessage, 0x50,, % Locale1,, A
    SPI_SETCURSORS := 0x57
    DllCall( &quot;SystemParametersInfo&quot;, UInt,SPI_SETCURSORS, UInt,0, UInt,0, UInt,0 )
}

Return</code></pre></div>]]></content>
			<author>
				<name><![CDATA[Kamagi]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=27024</uri>
			</author>
			<updated>2011-09-03T05:38:06Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=51122#p51122</id>
		</entry>
</feed>
