<?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="http://forum.script-coding.com/extern.php?action=feed&amp;tid=5108&amp;type=atom" />
	<updated>2016-11-17T08:50:51Z</updated>
	<generator>PunBB</generator>
	<id>http://forum.script-coding.com/viewtopic.php?id=5108</id>
		<entry>
			<title type="html"><![CDATA[Re: AHK: изменение курсора в зависимости от языка ввода]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=109202#p109202" />
			<content type="html"><![CDATA[<p>Спасибо большое. Это мне как раз и нужно, я пишу свой скрипт для ввода спецсимволов.<br />По поводу этой проблемы, у меня win10x64 и скрипт неверно отображает состояние локали в edge и chrome, это такая &quot;нерешаемая&quot; проблема, или это только у меня такая ситуация?</p>]]></content>
			<author>
				<name><![CDATA[upsi_daezium]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=34120</uri>
			</author>
			<updated>2016-11-17T08:50:51Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=109202#p109202</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: изменение курсора в зависимости от языка ввода]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=109188#p109188" />
			<content type="html"><![CDATA[<p>На самом деле я делал скрипт для удобства ввода греческих букв и спецсимволов. Давно это было. <img src="//forum.script-coding.com/img/smilies/smile.png" width="15" height="15" /><br />Конечно выложу, только редактируйте его самостоятельно.</p>]]></content>
			<author>
				<name><![CDATA[ypppu]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=5974</uri>
			</author>
			<updated>2016-11-16T20:56:37Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=109188#p109188</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: изменение курсора в зависимости от языка ввода]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=109175#p109175" />
			<content type="html"><![CDATA[<p><strong>ypppu</strong>, а можете выложить еще и ваш вариант этого скрипта.<br />Кстати, у меня win10x64 и скрипт неверно отображает состояние локали в edge и chrome.</p>]]></content>
			<author>
				<name><![CDATA[upsi_daezium]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=34120</uri>
			</author>
			<updated>2016-11-16T19:18:18Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=109175#p109175</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: изменение курсора в зависимости от языка ввода]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=109097#p109097" />
			<content type="html"><![CDATA[<p>Благодарю.</p>]]></content>
			<author>
				<name><![CDATA[upsi_daezium]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=34120</uri>
			</author>
			<updated>2016-11-12T13:31:30Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=109097#p109097</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: изменение курсора в зависимости от языка ввода]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=109069#p109069" />
			<content type="html"><![CDATA[<p>У меня такие курсоры.</p>]]></content>
			<author>
				<name><![CDATA[ypppu]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=5974</uri>
			</author>
			<updated>2016-11-11T06:07:12Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=109069#p109069</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: изменение курсора в зависимости от языка ввода]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=109051#p109051" />
			<content type="html"><![CDATA[<p>Неужели ни у кого нет??<br />Тогда вспомните хоть как это выглядело, курсоры я сам нарисую и выложу.</p>]]></content>
			<author>
				<name><![CDATA[upsi_daezium]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=34120</uri>
			</author>
			<updated>2016-11-10T11:29:23Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=109051#p109051</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: изменение курсора в зависимости от языка ввода]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=108765#p108765" />
			<content type="html"><![CDATA[<p>Можете перевыложить cursor.rar, а то по ссылке нельзя скачать.</p>]]></content>
			<author>
				<name><![CDATA[upsi_daezium]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=34120</uri>
			</author>
			<updated>2016-11-03T12:50:58Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=108765#p108765</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: изменение курсора в зависимости от языка ввода]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=41856#p41856" />
			<content type="html"><![CDATA[<p>А как упаковать (добавить) курсоры и прописать третий язык? Файлы прилагаю.<br />Кроме того интересует почему (модификация под Корел) при попадании курсора в область самого графического файла, курсоры опять становяться другими. Я так понимаю из за того что внутри программы и внутри файла курсоры разные (ну инструменты для рисования там). Можно ли так изменить скрипт что бы он работал имено внутри рабочей области графического файла, потому что имено в этом нашел полезность скрипта для себя и других дизайнеров.</p><p><a href="http://letitfile.com/download/id123064">Скачать с LetitFile.com</a><br />Подумал может класс окна выяснить и прописать, но так тоже не работает.<br /><a href="http://imagepost.ru/?v=299/WinInfo.JPG"><span class="postimg"><img src="http://imagepost.ru/thumbs/299/WinInfo.JPG" alt="http://imagepost.ru/thumbs/299/WinInfo.JPG" /></span></a></p>]]></content>
			<author>
				<name><![CDATA[0meg@]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=25256</uri>
			</author>
			<updated>2010-11-17T16:33:07Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=41856#p41856</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: изменение курсора в зависимости от языка ввода]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=41652#p41652" />
			<content type="html"><![CDATA[<p>Попробуй так<br /><em><strong>ahk_class MozillaUIWindowClass</strong></em> заменишь на окно корела</p><div class="codebox"><pre><code>#NoEnv
#SingleInstance force
#Persistent
LIST=32512,32513,32514,32515,32516,32642,32643,32644,32645,32646,32648,32649,32650,32651
OCR_IBEAM := 32513, OCR_NORMAL := 32512, OCR_APPSTARTING := 32650
OnExit, Exit

SetWorkingDir, %A_ScriptDir%/cursors
Loop, parse, LIST, CSV
{
    Extension := (A_LoopField=32514 or A_LoopField=32650) ? &quot;.ani&quot; : &quot;.cur&quot;
    If !FileExist(A_LoopField . Extension)
    {
      MsgBox, 48,, Не найден следующий файл:`n%A_LoopField%%Extension%
      ExitApp
    }    
    hCur := DllCall(&quot;LoadCursorFromFile&quot;, Str, A_LoopField . Extension)
    DllCall(&quot;SetSystemCursor&quot;, UInt, hCur, Int, A_LoopField)
}

SetWorkingDir, %A_ScriptDir%
If !FileExist(&quot;EN_ARROW.cur&quot;) || !FileExist(&quot;RU_ARROW.cur&quot;)
|| !FileExist(&quot;EN_IBEAM.cur&quot;) || !FileExist(&quot;RU_IBEAM.cur&quot;)
|| !FileExist(&quot;EN_APPSTARTING.ani&quot;) || !FileExist(&quot;RU_APPSTARTING.ani&quot;)
{
    MsgBox, 48,, Нет соответствующих курсоров в папке скрипта!
    ExitApp
}
   
SetTimer, LocaleWatch, 100

LocaleWatch:
If winactive(&quot;ahk_class MozillaUIWindowClass&quot;)
{
   DllCall(&quot;SystemParametersInfo&quot;, UInt, &quot;0x57&quot;, UInt, 0, UInt, 0, UInt, 0) ; возвпащаем обычные курсоры
   window=corel
   return
}
   MouseGetPos,,, WinID
   ThreadID := DllCall(&quot;GetWindowThreadProcessId&quot;, UInt, WinID, UInt, 0)
   InputLocaleID := DllCall(&quot;GetKeyboardLayout&quot;, UInt, ThreadID)
   if (InputLocaleID = Prev_InputLocaleID) and (window = &quot;other&quot;)
      Return

   bool := (InputLocaleID = 0x4090409)
   hArrow := DllCall(&quot;LoadCursorFromFile&quot;, Str, (bool ? &quot;EN&quot; : &quot;RU&quot;) . &quot;_ARROW.cur&quot;)
   hIbeam := DllCall(&quot;LoadCursorFromFile&quot;, Str, (bool ? &quot;EN&quot; : &quot;RU&quot;) . &quot;_IBEAM.cur&quot;)
   hAPPSTARTING := DllCall(&quot;LoadCursorFromFile&quot;, Str, (bool ? &quot;EN&quot; : &quot;RU&quot;) . &quot;_APPSTARTING.ani&quot;)
   DllCall(&quot;SetSystemCursor&quot;, UInt, hArrow, Int, OCR_NORMAL)
   DllCall(&quot;SetSystemCursor&quot;, UInt, hIbeam, Int, OCR_IBEAM)
   DllCall(&quot;SetSystemCursor&quot;, UInt, hAPPSTARTING, Int, OCR_APPSTARTING)
   Prev_InputLocaleID := InputLocaleID
   window=other
   Return
   
Exit:
   DllCall(&quot;SystemParametersInfo&quot;, UInt, &quot;0x57&quot;, UInt, 0, UInt, 0, UInt, 0)
   ExitApp</code></pre></div>]]></content>
			<author>
				<name><![CDATA[InFlames]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=24849</uri>
			</author>
			<updated>2010-11-14T06:33:36Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=41652#p41652</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: изменение курсора в зависимости от языка ввода]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=41651#p41651" />
			<content type="html"><![CDATA[<p>teadrinker Работая в окне Corel&#039;а курсоры меняються на стандартные системные, и скажем при вводе текста все остаеться так же как и было до скрипта.</p>]]></content>
			<author>
				<name><![CDATA[0meg@]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=25256</uri>
			</author>
			<updated>2010-11-14T05:34:53Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=41651#p41651</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: изменение курсора в зависимости от языка ввода]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=41586#p41586" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>0meg@ пишет:</cite><blockquote><p>Вопрос, а возможно ли сделать так что бы курсор менялся и в определенных программах, скажем я часто работаю в Corel Draw X4.</p></blockquote></div><p>А каким образом и при каких условиях он должен меняться?</p>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2010-11-13T14:12:36Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=41586#p41586</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: изменение курсора в зависимости от языка ввода]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=41563#p41563" />
			<content type="html"><![CDATA[<p>Между строками<br /></p><div class="codebox"><pre><code>LocaleWatch:
   MouseGetPos,,, WinID</code></pre></div><p>вписать код<br /></p><div class="codebox"><pre><code>If winactive(&quot;тут вписать название окна корела&quot;)
{
   DllCall(&quot;SystemParametersInfo&quot;, UInt, &quot;0x57&quot;, UInt, 0, UInt, 0, UInt, 0) ; возвпащаем обычные курсоры
   return
}</code></pre></div><p>Если требуется наоборот, загружать курсоры для корела, то так<br /></p><div class="codebox"><pre><code>If !winactive(&quot;тут вписать название окна корела&quot;)
{
   DllCall(&quot;SystemParametersInfo&quot;, UInt, &quot;0x57&quot;, UInt, 0, UInt, 0, UInt, 0) ; возвпащаем обычные курсоры
   return
}</code></pre></div>]]></content>
			<author>
				<name><![CDATA[InFlames]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=24849</uri>
			</author>
			<updated>2010-11-13T03:52:51Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=41563#p41563</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: изменение курсора в зависимости от языка ввода]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=41562#p41562" />
			<content type="html"><![CDATA[<p>Вопрос, а возможно ли сделать так что бы курсор менялся и в определенных программах, скажем я часто работаю в Corel Draw X4.</p>]]></content>
			<author>
				<name><![CDATA[0meg@]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=25256</uri>
			</author>
			<updated>2010-11-13T03:28:17Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=41562#p41562</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: изменение курсора в зависимости от языка ввода]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=41422#p41422" />
			<content type="html"><![CDATA[<p>На любой версии Windows работает.</p>]]></content>
			<author>
				<name><![CDATA[InFlames]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=24849</uri>
			</author>
			<updated>2010-11-10T03:53:31Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=41422#p41422</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: изменение курсора в зависимости от языка ввода]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=41419#p41419" />
			<content type="html"><![CDATA[<p>Это скрипт работает только для Windows 7 или на XP такое тоже возможно?</p>]]></content>
			<author>
				<name><![CDATA[0meg@]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=25256</uri>
			</author>
			<updated>2010-11-10T03:09:09Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=41419#p41419</id>
		</entry>
</feed>
